gitlab.com/evatix-go/core@v1.3.55/coreinterface/serializerinf/all-json-releated-methods.go (about) 1 package serializerinf 2 3 import "bytes" 4 5 type SafeBytesTypeNameGetter interface { 6 SafeBytesTypeName() string 7 } 8 9 type BytesTypeNameGetter interface { 10 BytesTypeName() string 11 } 12 13 type SafeStringGetter interface { 14 SafeString() string 15 } 16 17 type JsonStringGetter interface { 18 JsonString() string 19 } 20 21 type JsonStringPtrGetter interface { 22 JsonStringPtr() *string 23 } 24 25 type PrettyJsonBufferGetter interface { 26 PrettyJsonBuffer(prefix, indent string) (*bytes.Buffer, error) 27 } 28 29 type PrettyJsonStringGetter interface { 30 PrettyJsonString() string 31 } 32 33 type PrettyJsonStringOrErrStringGetter interface { 34 PrettyJsonStringOrErrString() string 35 } 36 37 type LengthGetter interface { 38 Length() int 39 } 40 41 type HasErrorChecker interface { 42 HasError() bool 43 } 44 45 type ErrorStringGetter interface { 46 ErrorString() string 47 } 48 49 type IsErrorEqualChecker interface { 50 IsErrorEqual(err error) bool 51 } 52 53 type SafeBytesGetter interface { 54 SafeBytes() []byte 55 } 56 57 type BytesValuesGetter interface { 58 Values() []byte 59 } 60 61 type SafeValuesGetter interface { 62 SafeValues() []byte 63 } 64 65 type SafeValuesPtrGetter interface { 66 SafeValuesPtr() *[]byte 67 } 68 69 type RawSerializeGetter interface { 70 Raw() ([]byte, error) 71 } 72 73 type MustRawSerializeGetter interface { 74 RawMust() []byte 75 } 76 77 type RawStringSerializeGetter interface { 78 RawString() (jsonString string, err error) 79 } 80 81 type MustRawStringSerializeGetter interface { 82 RawStringMust() (jsonString string) 83 } 84 85 type RawErrStringGetter interface { 86 RawErrString() (rawJsonBytes []byte, errorMsg string) 87 } 88 89 type RawPrettyStringGetter interface { 90 RawPrettyString() (jsonString string, err error) 91 } 92 93 type MeaningfulErrorMessageGetter interface { 94 MeaningfulErrorMessage() string 95 } 96 97 type MeaningfulErrorGetter interface { 98 MeaningfulError() error 99 } 100 101 type IsEmptyErrorChecker interface { 102 IsEmptyError() bool 103 } 104 105 type HasSafeItemsChecker interface { 106 HasSafeItems() bool 107 } 108 109 type IsAnyNullChecker interface { 110 IsAnyNull() bool 111 } 112 113 type HasIssuesOrEmptyChecker interface { 114 HasIssuesOrEmpty() bool 115 } 116 117 type ErrorHandler interface { 118 HandleError() 119 } 120 121 type MustBeSafer interface { 122 MustBeSafe() 123 } 124 125 type ErrorHandlerWithMessager interface { 126 HandleErrorWithMsg(msg string) 127 } 128 129 type HasBytesChecker interface { 130 HasBytes() bool 131 } 132 133 type HasJsonBytesChecker interface { 134 HasJsonBytes() bool 135 } 136 137 type IsEmptyJsonBytesChecker interface { 138 IsEmptyJsonBytes() bool 139 } 140 141 type IsEmptyChecker interface { 142 IsEmpty() bool 143 } 144 145 type HasAnyItemChecker interface { 146 HasAnyItem() bool 147 } 148 149 type IsEmptyJsonChecker interface { 150 IsEmptyJson() bool 151 } 152 153 type Deserializer interface { 154 Deserialize( 155 anyPointer interface{}, 156 ) error 157 } 158 159 type MustDeserializer interface { 160 DeserializeMust( 161 anyPointer interface{}, 162 ) 163 } 164 165 type MustUnmarshaler interface { 166 UnmarshalMust( 167 anyPointer interface{}, 168 ) 169 } 170 171 type Unmarshaler interface { 172 Unmarshal( 173 anyPointer interface{}, 174 ) error 175 } 176 177 type SkipExistingIssuesSerializer interface { 178 SerializeSkipExistingIssues() ( 179 []byte, error, 180 ) 181 } 182 183 type SelfSerializer interface { 184 Serialize() ([]byte, error) 185 } 186 187 type MustSelfSerializer interface { 188 SerializeMust() []byte 189 }