gitlab.com/evatix-go/core@v1.3.55/internal/internalinterface/internalenuminf/all-enumers.go (about)

     1  package internalenuminf
     2  
     3  import "gitlab.com/evatix-go/core/coredata/corejson"
     4  
     5  type StandardEnumer interface {
     6  	BasicEnumer
     7  	StringRangesGetter
     8  	RangeValidateChecker
     9  	corejson.JsonContractsBinder
    10  }
    11  
    12  type BasicEnumValuer interface {
    13  	ValueByte() byte
    14  	ValueInt() int
    15  	ValueInt8() int8
    16  	ValueInt16() int16
    17  	ValueInt32() int32
    18  	ValueString() string // value in string format
    19  }
    20  
    21  type BasicByteEnumer interface {
    22  	UnmarshallEnumToValueByter
    23  	MaxByte() byte
    24  	MinByte() byte
    25  	ValueByte() byte
    26  	RangesByte() []byte
    27  }
    28  
    29  type BasicInt32Enumer interface {
    30  	UnmarshallEnumToValueInt32(jsonUnmarshallingValue []byte) (int32, error)
    31  	MaxInt32() int32
    32  	MinInt32() int32
    33  	ValueInt32() int32
    34  	RangesInt32() []int32
    35  	ToEnumString(input int32) string
    36  }
    37  
    38  type BasicInt16Enumer interface {
    39  	UnmarshallEnumToValueInt16(jsonUnmarshallingValue []byte) (int16, error)
    40  	MaxInt16() int16
    41  	MinInt16() int16
    42  	ValueInt16() int16
    43  	RangesInt16() []int16
    44  	ToEnumString(input int16) string
    45  }
    46  
    47  type BasicInt8Enumer interface {
    48  	UnmarshallEnumToValueInt8(jsonUnmarshallingValue []byte) (int8, error)
    49  	MaxInt8() int8
    50  	MinInt8() int8
    51  	ValueInt8() int8
    52  	RangesInt8() []int8
    53  	ToEnumString(input int8) string
    54  }
    55  
    56  type BasicIntEnumer interface {
    57  	MaxInt() int
    58  	MinInt() int
    59  	ValueInt() int
    60  	RangesInt() []int
    61  	ToEnumString(input int) string
    62  }
    63  
    64  type BasicInt64Enumer interface {
    65  	MaxInt64() int64
    66  	MinInt64() int64
    67  	ValueInt64() int64
    68  	RangesInt64() []int64
    69  }