gitlab.com/evatix-go/core@v1.3.55/coreinterface/all-getters.go (about)

     1  package coreinterface
     2  
     3  import (
     4  	"reflect"
     5  
     6  	"gitlab.com/evatix-go/core/internal/internalinterface"
     7  )
     8  
     9  type StringRangesGetter interface {
    10  	StringRangesPtr() *[]string
    11  	StringRanges() []string
    12  }
    13  
    14  type ReflectTypeGetter interface {
    15  	ReflectType() reflect.Type
    16  	GetErrorOnTypeMismatch(
    17  		typeMatch reflect.Type,
    18  		isIncludeInvalidMessage bool,
    19  	) error
    20  }
    21  
    22  type ErrorGetter interface {
    23  	Error() error
    24  }
    25  
    26  type MetaGetter interface {
    27  	Meta() string
    28  }
    29  
    30  type MessageGetter interface {
    31  	Message() string
    32  }
    33  
    34  type MeaningFullErrorGetter interface {
    35  	MeaningFullError() error
    36  }
    37  
    38  type RawPayloadsGetter interface {
    39  	internalinterface.RawPayloadsGetter
    40  }
    41  
    42  type ListStringsGetter interface {
    43  	ListStrings() []string
    44  }
    45  
    46  type LengthGetter interface {
    47  	Length() int
    48  }
    49  
    50  type EntityTypeNameGetter interface {
    51  	EntityTypeName() string
    52  }
    53  
    54  type TypeNameWithRangeNamesCsvGetter interface {
    55  	StringRangeNamesCsvGetter
    56  	TypeNameGetter
    57  }
    58  
    59  type CountGetter interface {
    60  	Count() int
    61  }
    62  
    63  type StringsGetter interface {
    64  	Strings() []string
    65  }
    66  
    67  type IdentifierGetter interface {
    68  	Identifier() string
    69  }
    70  
    71  type InvalidMessageGetter interface {
    72  	// InvalidMessage get invalid message
    73  	InvalidMessage() string
    74  }
    75  
    76  type TypeNameGetter interface {
    77  	TypeName() string
    78  }
    79  
    80  type TypenameStringGetter interface {
    81  	TypenameString() string
    82  }
    83  
    84  type StringsLinesGetter interface {
    85  	Lines() []string
    86  }
    87  
    88  type NameGetter interface {
    89  	Name() string
    90  }
    91  
    92  type CategoryNameGetter interface {
    93  	CategoryName() string
    94  }
    95  
    96  type AnyAttributesGetter interface {
    97  	internalinterface.AnyAttributesGetter
    98  }
    99  
   100  // DynamicPageItemsGetter Paging items related methods
   101  type DynamicPageItemsGetter interface {
   102  	// GetDynamicPagedItems returns items for the paged collection.
   103  	GetDynamicPagedItems(perPageItems int, pageIndex int) interface{}
   104  }
   105  
   106  type IntRangeLengthGetter interface {
   107  	RangeLength() int
   108  }
   109  
   110  type IntRangesGetter interface {
   111  	RangesInt() []int
   112  	Ranges() []int
   113  }
   114  
   115  type InvalidDirectErrorGetter interface {
   116  	GetInvalidDirectError() error
   117  }
   118  
   119  type InvalidErrorGetter interface {
   120  	// InvalidError get invalid message error
   121  	InvalidError() error
   122  }
   123  
   124  type LastIndexGetter interface {
   125  	LastIndex() int
   126  }
   127  
   128  type RawMessageBytesGetter interface {
   129  	RawMessageBytes() []byte
   130  }
   131  
   132  type ReflectKindGetter interface {
   133  	ReflectKind() reflect.Kind
   134  }
   135  
   136  type SafeBytesGetter interface {
   137  	SafeBytes() []byte
   138  }
   139  
   140  type SafeBytesPointerGetter interface {
   141  	SafeBytesPtr() *[]byte
   142  }
   143  
   144  type StringRangeNamesCsvGetter interface {
   145  	RangeNamesCsv() string
   146  }
   147  
   148  type ReflectValueGetter interface {
   149  	ReflectValue() *reflect.Value
   150  }
   151  
   152  type SafeStringsGetter interface {
   153  	SafeStrings() []string
   154  }
   155  
   156  type StringRangeNamesGetter interface {
   157  	StringRangeNames() []string
   158  }
   159  
   160  type UintUserIdGetter interface {
   161  	UserId() uint
   162  }
   163  
   164  type UserIdGetter interface {
   165  	UserId() int
   166  }
   167  
   168  type UsernameGetter interface {
   169  	Username() string
   170  }
   171  
   172  type ValidationMessageGetter interface {
   173  	ValidationMessage() string
   174  }
   175  
   176  // ValidationErrorGetter
   177  //
   178  //  Returns validation related error
   179  //  only
   180  type ValidationErrorGetter interface {
   181  	// ValidationError
   182  	//
   183  	//  Returns validation related error
   184  	//  only
   185  	ValidationError() error
   186  }
   187  
   188  type ValueAnyItemGetter interface {
   189  	Value() interface{}
   190  }
   191  
   192  type ValueByteGetter interface {
   193  	Value() byte
   194  }
   195  
   196  type ValueErrorGetter interface {
   197  	Value() error
   198  }
   199  
   200  type ValueFloat32Getter interface {
   201  	Value() float32
   202  }
   203  
   204  type ValueFloat64Getter interface {
   205  	Value() float64
   206  }
   207  
   208  type ValueGetter interface {
   209  	ValueDynamic() interface{}
   210  }
   211  
   212  type ValueInt16Getter interface {
   213  	Value() int16
   214  }
   215  
   216  type ValueInt32Getter interface {
   217  	Value() int32
   218  }
   219  
   220  type ValueInt64Getter interface {
   221  	Value() int64
   222  }
   223  
   224  type ValueIntegerGetter interface {
   225  	Value() int
   226  }
   227  
   228  type ValueReflectSetter interface {
   229  	ValueReflectSet(setterPtr interface{}) error
   230  }
   231  
   232  type ValueStringGetter interface {
   233  	Value() string
   234  }
   235  
   236  type ValueStringsGetter interface {
   237  	Value() []string
   238  }
   239  
   240  type FilterTextGetter interface {
   241  	FilterText() string
   242  }
   243  
   244  type CategoryRevealerGetter interface {
   245  	CategoryRevealer() CategoryRevealer
   246  }
   247  
   248  type StackTracesBytesGetter interface {
   249  	StackTracesBytes() []byte
   250  }
   251  
   252  type JsonErrorBytesGetter interface {
   253  	JsonErrorBytes() []byte
   254  }
   255  
   256  type MapStringAnyGetter interface {
   257  	MapStringAny() map[string]interface{}
   258  }
   259  
   260  type MapStringStringGetter interface {
   261  	MapStringString() map[string]string
   262  }
   263  
   264  type MapStringFuncGetter interface {
   265  	MapStringString() map[string]func()
   266  }
   267  
   268  type MapStringErrorFuncGetter interface {
   269  	MapStringString() map[string]func() error
   270  }
   271  
   272  type VariableNameStringGetter interface {
   273  	VariableName() string
   274  }
   275  
   276  type VariableNameAnyGetter interface {
   277  	VariableNameAny() interface{}
   278  }
   279  
   280  type ValueAnyGetter interface {
   281  	ValueAny() interface{}
   282  }
   283  
   284  type ExplicitValueStringGetter interface {
   285  	ValueString() string
   286  }
   287  
   288  type KeysHashsetGetter interface {
   289  	KeysHashset() map[string]bool
   290  }
   291  
   292  type HashmapGetter interface {
   293  	Hashmap() map[string]string
   294  }
   295  
   296  type AllValuesStringsGetter interface {
   297  	AllValuesStrings() []string
   298  }
   299  
   300  type AllValuesIntegersGetter interface {
   301  	AllValuesIntegers() []int
   302  }
   303  
   304  type KeyStringNameGetter interface {
   305  	KeyName() string
   306  }