gitlab.com/evatix-go/core@v1.3.55/internal/internalinterface/all-getters.go (about) 1 package internalinterface 2 3 type IdentifierGetter interface { 4 Identifier() string 5 } 6 7 type IdStringGetter interface { 8 Id() string 9 } 10 11 type IntegerIdGetter interface { 12 Id() int 13 } 14 15 type IdUnsignedIntegerGetter interface { 16 Id() uint 17 } 18 19 type IdStringerWithNamer interface { 20 IdAsStringer 21 ToNamer 22 } 23 24 type IdAsStringer interface { 25 IdString() string 26 } 27 28 type IdentifierIntegerGetter interface { 29 IdentifierInt() int 30 } 31 32 type IdIntegerGetter interface { 33 IdInteger() int 34 } 35 36 type UsernameGetter interface { 37 Username() string 38 } 39 40 type CategoryNameGetter interface { 41 CategoryName() string 42 } 43 44 type TypeNameGetter interface { 45 TypeName() string 46 } 47 48 type TypenameStringGetter interface { 49 TypenameString() string 50 } 51 52 type ErrorGetter interface { 53 Error() error 54 } 55 56 type AnyValueGetter interface { 57 Value() interface{} 58 } 59 60 type AnyAttributesGetter interface { 61 AnyAttributes() interface{} 62 } 63 64 type AnyAttributesReflectSetter interface { 65 ReflectSetAttributes(toPointer interface{}) error 66 } 67 68 type RawPayloadsGetter interface { 69 RawPayloads() (payloads []byte, err error) 70 RawPayloadsMust() (payloads []byte) 71 } 72 73 type ValueInt64Getter interface { 74 Value() int64 75 } 76 77 type ValueIntegerGetter interface { 78 Value() int 79 } 80 81 type ValueReflectSetter interface { 82 ValueReflectSet(setterPtr interface{}) error 83 } 84 85 type ValueStringGetter interface { 86 Value() string 87 } 88 89 type ValueStringsGetter interface { 90 Value() []string 91 } 92 93 type ErrorValueGetter interface { 94 Value() error 95 } 96 97 type CompiledStackTracesStringGetter interface { 98 CompiledStackTracesString() string 99 } 100 101 type CompiledErrorWithStackTracesGetter interface { 102 CompiledErrorWithStackTraces() error 103 } 104 105 // CompiledJsonErrorWithStackTracesGetter 106 // 107 // returns error in json format with stack traces 108 type CompiledJsonErrorWithStackTracesGetter interface { 109 CompiledJsonErrorWithStackTraces() error 110 } 111 112 // CompiledJsonStringWithStackTracesGetter 113 // 114 // returns error in json format with stack traces 115 type CompiledJsonStringWithStackTracesGetter interface { 116 CompiledJsonStringWithStackTraces() (jsonString string) 117 } 118 119 type FullStringWithTracesGetter interface { 120 FullStringWithTraces() string 121 } 122 123 // FullStringWithTracesIfGetter 124 // 125 // Returns full string with stack traces if given as true 126 // Or, else just FullString returns 127 type FullStringWithTracesIfGetter interface { 128 // FullStringWithTracesIf 129 // 130 // Returns full string with stack traces if given as true 131 // Or, else just FullString returns 132 FullStringWithTracesIf(isStackTraces bool) string 133 } 134 135 type JsonModelAnyGetter interface { 136 JsonModelAny() interface{} 137 } 138 139 type CompiledErrorGetter interface { 140 CompiledError() error 141 }