gitlab.com/evatix-go/core@v1.3.55/coreinterface/enuminf/all-enumers.go (about) 1 package enuminf 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 ValueUInt16() uint16 18 ValueInt32() int32 19 // ValueString 20 // 21 // alias for ToNumberStringer 22 // returns the value number as string format (no name) 23 // 24 // Example: 25 // - "1", "2" NOT "Name" 26 ValueString() string // value in string format 27 } 28 29 type BasicByteEnumer interface { 30 UnmarshallEnumToValueByter 31 MaxByte() byte 32 MinByte() byte 33 ValueByte() byte 34 RangesByte() []byte 35 } 36 37 type BasicInt32Enumer interface { 38 UnmarshallEnumToValueInt32(jsonUnmarshallingValue []byte) (int32, error) 39 MaxInt32() int32 40 MinInt32() int32 41 ValueInt32() int32 42 RangesInt32() []int32 43 ToEnumString(input int32) string 44 } 45 46 type BasicInt16Enumer interface { 47 UnmarshallEnumToValueInt16(jsonUnmarshallingValue []byte) (int16, error) 48 MaxInt16() int16 49 MinInt16() int16 50 ValueInt16() int16 51 RangesInt16() []int16 52 ToEnumString(input int16) string 53 } 54 55 type BasicInt8Enumer interface { 56 UnmarshallEnumToValueInt8(jsonUnmarshallingValue []byte) (int8, error) 57 MaxInt8() int8 58 MinInt8() int8 59 ValueInt8() int8 60 RangesInt8() []int8 61 ToEnumString(input int8) string 62 } 63 64 type BasicIntEnumer interface { 65 MaxInt() int 66 MinInt() int 67 ValueInt() int 68 RangesInt() []int 69 ToEnumString(input int) string 70 } 71 72 type BasicInt64Enumer interface { 73 MaxInt64() int64 74 MinInt64() int64 75 ValueInt64() int64 76 RangesInt64() []int64 77 }