coreinterface

package
v1.3.55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 5 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcceptRejectOrSkipper added in v1.1.9

type AcceptRejectOrSkipper interface {
	internalinterface.AcceptRejectOrSkipper
}

type AllKeysSortedStringer added in v0.9.5

type AllKeysSortedStringer interface {
	AllKeysSorted() []string
}

type AllKeysStringer added in v0.9.5

type AllKeysStringer interface {
	AllKeys() []string
}

type AllSerializer added in v1.3.3

type AllSerializer interface {
	Serializer
	MustSerializer
}

type AllValuesIntegersGetter added in v1.3.7

type AllValuesIntegersGetter interface {
	AllValuesIntegers() []int
}

type AllValuesStringsGetter added in v1.3.7

type AllValuesStringsGetter interface {
	AllValuesStrings() []string
}

type AnyAttributesGetter added in v1.1.9

type AnyAttributesGetter interface {
	internalinterface.AnyAttributesGetter
}

type BasicMapper added in v0.4.4

type BasicMapper interface {
	BasicSlicer
}

type BasicSlicerContractsBinder

type BasicSlicerContractsBinder interface {
	BasicSlicer
	AsBasicSliceContractsBinder() BasicSlicerContractsBinder
}

type BooleanChecker

type BooleanChecker interface {
	IsAnyByOrder(booleans ...bool) bool
	HasAll(searchTerms ...string) bool
	HasAny(searchTerms ...string) bool
	HasItemsWithoutIssues() bool
}

type BooleanDisposer added in v0.9.4

type BooleanDisposer interface {
	Dispose() (isSuccess bool)
}

type BuildStringer added in v1.1.9

type BuildStringer interface {
	Build() string
}

type ByteIdentifier added in v1.0.8

type ByteIdentifier interface {
	IdByte() byte
}

type ByteIsAnyOfChecker added in v0.4.6

type ByteIsAnyOfChecker interface {
	IsAnyOf(value byte, checkingItems ...byte) bool
}

type ByteToStringer

type ByteToStringer interface {
	String(input byte) string
}

type CategoryNameGetter added in v1.1.9

type CategoryNameGetter interface {
	CategoryName() string
}

type CategoryNamer added in v1.1.9

type CategoryNamer interface {
	CategoryName() string
}

type CategoryRevealer added in v1.3.3

type CategoryRevealer interface {
	CategoryNamer
	FilterTextGetter
	EntityTypeNamer
}

type CategoryRevealerGetter added in v1.3.3

type CategoryRevealerGetter interface {
	CategoryRevealer() CategoryRevealer
}

type ChangeAccepter added in v1.1.9

type ChangeAccepter interface {
	AcceptChanges() error
	AcceptChangesMust()
}

type ChangeRejecter added in v1.1.9

type ChangeRejecter interface {
	RejectChanges() error
	RejectChangesMust()
}

type ChangesCommitter added in v1.1.9

type ChangesCommitter interface {
	HasChangesChecker
	ChangeAccepter
	ChangeRejecter
	RemindLaterChangeSkipper
	Commit(option AcceptRejectOrSkipper) error
	CommitMust(option AcceptRejectOrSkipper)
}

type ChangesLogger added in v1.1.9

type ChangesLogger interface {
	internalinterface.ChangesLogger
}

type Clearer added in v0.9.8

type Clearer interface {
	Clear()
}

type CombinedValidationChecker added in v1.1.9

type CommonSliceDefiner added in v1.1.9

type CommonSliceDefiner interface {
	internalinterface.CommonSliceDefiner
}

type CoreDefiner added in v1.3.3

type CoreDefiner interface {
	corejson.Jsoner
	AllSerializer

	fmt.Stringer
}

type CountGetter

type CountGetter interface {
	Count() int
}

type CountStateTracker added in v1.1.9

type CountStateTracker interface {
	internalinterface.CountStateTracker
}

type CountStateTrackerBinder added in v1.1.9

type CountStateTrackerBinder interface {
	CountStateTracker
	AsCountStateTrackerBinder() CountStateTrackerBinder
}

type CsvLiner

type CsvLiner interface {
	CsvLines() *[]string
	CsvLinesOptions(isSkipQuoteOnlyOnExistence bool) *[]string
}

type Csver

type Csver interface {
	Csv() string
	CsvOptions(isSkipQuoteOnlyOnExistence bool) string
}

type Disposer added in v0.9.4

type Disposer interface {
	Dispose()
}

type DyanmicLinqer added in v1.3.3

type DyanmicLinqer interface {
	internalinterface.DyanmicLinqer
}

type DynamicAdder

type DynamicAdder interface {
	AddDynamic(addingItem interface{}) (isSuccess bool)
	AddDynamicMany(addingItem ...interface{}) (isSuccess bool)
}

type DynamicChangeStateDetector added in v1.1.9

type DynamicChangeStateDetector interface {
	internalinterface.DynamicChangeStateDetector
}

type DynamicDataHasChecker

type DynamicDataHasChecker interface {
	HasDynamic(searchItem interface{}) bool
	HasDynamicAll(searchTerms ...interface{}) bool
	HasDynamicAny(searchTerms ...interface{}) bool
}

type DynamicDiffChangesGetter added in v1.1.9

type DynamicDiffChangesGetter interface {
	internalinterface.DynamicDiffChangesGetter
}

type DynamicLinq

type DynamicLinq interface {
	CountGetter
	LengthGetter
	FirstDynamic() interface{}
	LastDynamic() interface{}
	FirstOrDefaultDynamic() interface{}
	LastOrDefaultDynamic() interface{}
	SkipDynamic(skippingItemsCount int) interface{}
	TakeDynamic(takeDynamicItems int) interface{}
	// LimitDynamic alias for TakeDynamic
	LimitDynamic(limit int) interface{}
}

type DynamicLinqContractsBinder

type DynamicLinqContractsBinder interface {
	DynamicLinq
	AsDynamicLinqContractsBinder() DynamicLinqContractsBinder
}

type DynamicLinqWithPaging

type DynamicLinqWithPaging interface {
	DynamicLinq
	SlicePager
	DynamicPageItemsGetter
}

type DynamicLinqWithPagingContractsBinder

type DynamicLinqWithPagingContractsBinder interface {
	DynamicLinqWithPaging
	AsDynamicLinqWithPagingContractsBinder() DynamicLinqWithPagingContractsBinder
}

type DynamicPageItemsGetter

type DynamicPageItemsGetter interface {
	// GetDynamicPagedItems returns items for the paged collection.
	GetDynamicPagedItems(perPageItems int, pageIndex int) interface{}
}

DynamicPageItemsGetter Paging items related methods

type DynamicStructMethodInvoker

type DynamicStructMethodInvoker interface {
	DynamicMethodInvoke(structInput interface{}, args ...interface{}) *coredynamic.SimpleResult
}

type EmptyChecker

type EmptyChecker interface {
	IsEmpty() bool
	HasAnyItemChecker
}

type EnhanceYesNoAcceptRejecter added in v1.3.35

type EnhanceYesNoAcceptRejecter interface {
	YesNoAcceptRejecter
	IsAcceptOrReject() bool
	IsNotAcceptOrReject() bool
	IsDefinedAccepted() bool
}

type EntityTypeNameGetter added in v1.1.9

type EntityTypeNameGetter interface {
	EntityTypeName() string
}

type EntityTypeNamer added in v1.1.9

type EntityTypeNamer interface {
	EntityTypeName() string
}

type ErrorGetter

type ErrorGetter interface {
	Error() error
}

type ErrorHandler

type ErrorHandler interface {
	// HandleError
	//
	// Only call panic
	// if it has any error
	HandleError()
}

type ErrorMessageHandler added in v0.9.8

type ErrorMessageHandler interface {
	HandleErrorWithMsg(newMessage string)
	HandleErrorWithRefs(
		newMessage string,
		refVar,
		refVal interface{},
	)
}

type ErrorRefMessageHandler added in v0.9.8

type ErrorRefMessageHandler interface {
	HandleErrorWithRefs(
		newMessage string,
		refVar,
		refVal interface{},
	)
}

type ErrorWithMessagesHandler

type ErrorWithMessagesHandler interface {
	HandleErrorWith(messages ...string)
}

type ExplicitValueStringGetter added in v1.3.3

type ExplicitValueStringGetter interface {
	ValueString() string
}

type FilterTextGetter added in v1.3.3

type FilterTextGetter interface {
	FilterText() string
}

type FromToNameGetter added in v1.3.13

type FromToNameGetter interface {
	ToName() string
	FromName() string
	String() string
}

type FromToNameSetter added in v1.3.13

type FromToNameSetter interface {
	SetToName(to string)
	SetFromName(form string)
}

type FromToer added in v1.3.13

type FromToer interface {
	IsNull() bool
	IsFromEmpty() bool
	IsToEmpty() bool
	FromToNameSetter
	FromToNameGetter
}

type FullStringWithTracer added in v0.9.8

type FullStringWithTracer interface {
	FullStringWithTraces() string
}

type FullStringer added in v0.9.8

type FullStringer interface {
	FullString() string
}

type GetStringser added in v0.9.8

type GetStringser interface {
	GetStrings() []string
}

type HasAllKeysChecker added in v1.3.7

type HasAllKeysChecker interface {
	HasAllKeys(keys ...string) bool
}

type HasAnyIssueChecker added in v0.9.5

type HasAnyIssueChecker interface {
	HasAnyIssues() bool
}

type HasAnyItemChecker

type HasAnyItemChecker interface {
	HasAnyItem() bool
}

type HasAnyKeysChecker added in v1.3.7

type HasAnyKeysChecker interface {
	HasAnyKeys(keys ...string) bool
}

type HasChangesChecker added in v1.1.9

type HasChangesChecker interface {
	internalinterface.HasChangesChecker
}

type HasErrorChecker added in v0.9.8

type HasErrorChecker interface {
	HasError() bool
}

type HasFlagByNameChecker added in v1.3.3

type HasFlagByNameChecker interface {
	HasFlagByName(flagName string) bool
}

type HasIndexChecker

type HasIndexChecker interface {
	HasIndex(index int) bool
}

type HasIssueChecker

type HasIssueChecker interface {
	HasAnyItemChecker
	HasIssues() bool
	IsEmptyOrIssues() bool
	// HasValidItems Has items and there is no issues
	HasValidItems() bool
}

type HasIssuesOrEmptyChecker added in v0.7.7

type HasIssuesOrEmptyChecker interface {
	HasIssuesOrEmpty() bool
}

type HasItemAtChecker

type HasItemAtChecker interface {
	HasItemAt(index int) bool
}

type HasKeyChecker added in v1.3.3

type HasKeyChecker interface {
	HasKey(key string) bool
}

type HasSafeItemsChecker added in v0.9.8

type HasSafeItemsChecker interface {
	// HasSafeItems
	//
	// returns true if has valid item or items and no error
	HasSafeItems() bool
}

type HashmapGetter added in v1.3.3

type HashmapGetter interface {
	Hashmap() map[string]string
}

type IdentifierGetter added in v1.0.8

type IdentifierGetter interface {
	Identifier() string
}

type Int16IsAnyOfChecker added in v0.4.6

type Int16IsAnyOfChecker interface {
	IsAnyOf(value int16, checkingItems ...int16) bool
}

type IntRangeLengthGetter

type IntRangeLengthGetter interface {
	RangeLength() int
}

type IntRangesGetter

type IntRangesGetter interface {
	RangesInt() []int
	Ranges() []int
}

type IntegerIdentifier added in v1.0.8

type IntegerIdentifier interface {
	internalinterface.IntegerIdGetter
}

type Inter

type Inter interface {
	Int() int
}

type InvalidDirectErrorGetter

type InvalidDirectErrorGetter interface {
	GetInvalidDirectError() error
}

type InvalidErrorGetter

type InvalidErrorGetter interface {
	// InvalidError get invalid message error
	InvalidError() error
}

type InvalidMessageGetter

type InvalidMessageGetter interface {
	// InvalidMessage get invalid message
	InvalidMessage() string
}

type IsAnyByOrder

type IsAnyByOrder interface {
	IsAnyByOrder(booleans ...bool) bool
}

type IsAnyNullChecker added in v0.9.8

type IsAnyNullChecker interface {
	// IsAnyNull
	//
	// Returns true if self is null or values is null
	// Values have to be null to have true return.
	// False: Any empty slice will return false.
	IsAnyNull() bool
}

IsAnyNullChecker

Returns true if self is null or values is null Values have to be null to have true return. False: Any empty slice will return false.

type IsApplyFuncBinder added in v1.1.0

type IsApplyFuncBinder interface {
	IsApply() (isSuccess bool)
}

type IsByteValidRangeUsingArgsChecker

type IsByteValidRangeUsingArgsChecker interface {
	IsByteValidRange(val byte) bool
}

type IsByteValueValidChecker

type IsByteValueValidChecker interface {
	IsByteValueValid(value byte) bool
}

type IsCompletedChecker added in v1.3.3

type IsCompletedChecker interface {
	IsCompleted() bool
}

type IsCompletedLockChecker added in v1.3.3

type IsCompletedLockChecker interface {
	IsCompletedLock() bool
}

type IsCompletedLockUnlockChecker added in v1.3.3

type IsCompletedLockUnlockChecker interface {
	IsCompletedChecker
	IsCompletedLockChecker
}

type IsDefinedChecker added in v1.3.10

type IsDefinedChecker interface {
	IsDefined() bool
}

type IsDisableAllChecker added in v1.3.3

type IsDisableAllChecker interface {
	IsDisableAll() bool
}

type IsDisableAnyByNamesChecker added in v1.3.3

type IsDisableAnyByNamesChecker interface {
	IsDisableAnyByNames(disabledNames ...string) bool
}

type IsDisableAnyChecker added in v1.3.3

type IsDisableAnyChecker interface {
	IsDisableAny() bool
}

type IsDisabledChecker added in v1.3.9

type IsDisabledChecker interface {
	IsDisabled() bool
}

type IsDynamicContainsChecker

type IsDynamicContainsChecker interface {
	IsDynamicContains(item interface{}) bool
}

type IsDynamicContainsInCollectionChecker

type IsDynamicContainsInCollectionChecker interface {
	IsDynamicContainsInCollection(collection, item interface{}) bool
}

type IsDynamicItemValidChecker

type IsDynamicItemValidChecker interface {
	IsDynamicItemValid(item interface{}) bool
	IsDynamicItemsValid(items ...interface{}) bool
}

type IsDynamicNullChecker

type IsDynamicNullChecker interface {
	// IsDynamicNull may check using reflection that data is nil.
	IsDynamicNull(dynamic interface{}) bool
}

type IsDynamicValidRangeUsingArgsChecker

type IsDynamicValidRangeUsingArgsChecker interface {
	IsDynamicValidRange(val, max, min interface{}) bool
}

type IsDynamicValueValidChecker

type IsDynamicValueValidChecker interface {
	IsDynamicValueValid(value interface{}) bool
}

type IsEmptyChecker

type IsEmptyChecker interface {
	internalinterface.IsEmptyChecker
}

type IsEmptyErrorChecker added in v0.9.8

type IsEmptyErrorChecker interface {
	IsEmptyError() bool
}

type IsEmptyOrWhitespaceChecker

type IsEmptyOrWhitespaceChecker interface {
	IsEmptyOrWhitespace() bool
}

type IsEnableAllChecker added in v1.3.3

type IsEnableAllChecker interface {
	IsEnableAll() bool
}

type IsEnableAnyByNamesChecker added in v1.3.3

type IsEnableAnyByNamesChecker interface {
	IsEnableAnyByNames(enabledNames ...string) bool
}

type IsEnableAnyChecker added in v1.3.3

type IsEnableAnyChecker interface {
	IsEnableAny() bool
}

type IsEnabledChecker added in v1.3.9

type IsEnabledChecker interface {
	IsEnabled() bool
}

type IsFailedChecker added in v0.9.8

type IsFailedChecker interface {
	// IsFailed has error or any other issues, or alias for HasIssues or HasError
	IsFailed() bool
}

type IsFlagsDisabledByNamesChecker added in v1.3.3

type IsFlagsDisabledByNamesChecker interface {
	IsFlagsDisabledByNames(disabledNames ...string) bool
}

type IsFlagsEnabledByNamesChecker added in v1.3.3

type IsFlagsEnabledByNamesChecker interface {
	IsFlagsEnabledByNames(enabledNames ...string) bool
}

type IsInt16ValidRangeUsingArgsChecker

type IsInt16ValidRangeUsingArgsChecker interface {
	IsInt16ValidRange(val int16) bool
}

type IsInt16ValueValidChecker

type IsInt16ValueValidChecker interface {
	IsInt16ValueValid(value int16) bool
}

type IsInt32ValidRangeUsingArgsChecker

type IsInt32ValidRangeUsingArgsChecker interface {
	IsInt32ValidRange(val int32) bool
}

type IsInt32ValueValidChecker

type IsInt32ValueValidChecker interface {
	IsInt32ValueValid(value int32) bool
}

type IsInt64ValueValidChecker

type IsInt64ValueValidChecker interface {
	IsInt64ValueValid(value int64) bool
}

type IsInt8ValidRangeUsingArgsChecker

type IsInt8ValidRangeUsingArgsChecker interface {
	IsInt8ValidRange(val int8) bool
}

type IsInt8ValueValidChecker

type IsInt8ValueValidChecker interface {
	IsInt8ValueValid(value int8) bool
}

type IsIntValidRangeUsingArgsChecker

type IsIntValidRangeUsingArgsChecker interface {
	IsIntValidRange(val int) bool
}

type IsInvalidChecker

type IsInvalidChecker interface {
	IsInvalid() bool
}

type IsInvalidValueByteChecker

type IsInvalidValueByteChecker interface {
	// IsInvalidValue delegates and acts as !IsWithinRange(value)
	IsInvalidValue(value byte) bool
}

type IsInvalidValueInt16Checker

type IsInvalidValueInt16Checker interface {
	// IsInvalidValue delegates and acts as !IsWithinRange(value)
	IsInvalidValue(value int16) bool
}

type IsInvalidValueInt32Checker

type IsInvalidValueInt32Checker interface {
	// IsInvalidValue delegates and acts as !IsWithinRange(value)
	IsInvalidValue(value int32) bool
}

type IsInvalidValueInt8Checker

type IsInvalidValueInt8Checker interface {
	// IsInvalidValue delegates and acts as !IsWithinRange(value)
	IsInvalidValue(value int8) bool
}

type IsInvalidValueIntChecker

type IsInvalidValueIntChecker interface {
	// IsInvalidValue delegates and acts as !IsWithinRange(value)
	IsInvalidValue(value int) bool
}

type IsKeyMissingChecker added in v1.3.3

type IsKeyMissingChecker interface {
	IsMissingKey(key string) bool
}

type IsMissingKeyChecker added in v1.3.7

type IsMissingKeyChecker interface {
	IsMissingKey(key string) bool
}

type IsNilChecker added in v1.1.0

type IsNilChecker interface {
	IsNil() bool
}

type IsNullChecker

type IsNullChecker interface {
	IsNull() bool
}

type IsNullOrEmptyChecker

type IsNullOrEmptyChecker interface {
	IsNullOrEmpty() bool
}

type IsOutOfRangeByteChecker

type IsOutOfRangeByteChecker interface {
	IsOutOfRange(n byte)
}

type IsPointerChecker

type IsPointerChecker interface {
	IsPointer() bool
}

type IsReflectKindChecker

type IsReflectKindChecker interface {
	IsReflectKind(checkingKind reflect.Kind) bool
}

type IsReflectTypeOfChecker

type IsReflectTypeOfChecker interface {
	IsReflectTypeOf(typeRequest reflect.Type) bool
}

type IsReflectionTypeChecker

type IsReflectionTypeChecker interface {
	IsManyReflectionOfType(typeOf reflect.Type, dynamicItems ...interface{}) bool
	IsReflectionOfType(dynamic interface{}, typeOf reflect.Type) bool
	IsReflectionOfTypeName(dynamic interface{}, typeOfName string) bool
}

type IsReviewChecker added in v1.3.35

type IsReviewChecker interface {
	IsReview() bool
}

type IsStringContainsChecker

type IsStringContainsChecker interface {
	IsContains(contains string) bool
}

type IsStringEqualChecker

type IsStringEqualChecker interface {
	IsEqual(equalString string) bool
}

type IsStringValidRangeUsingArgsChecker

type IsStringValidRangeUsingArgsChecker interface {
	IsStringValidRange(val, max, min string) bool
}

type IsSuccessChecker added in v0.9.8

type IsSuccessChecker interface {
	// IsSuccess No error
	IsSuccess() bool
}

type IsSuccessValidator added in v0.9.8

type IsSuccessValidator interface {
	IsValidChecker
	IsSuccessChecker
	IsFailedChecker
}

type IsValidChecker

type IsValidChecker interface {
	// IsValid similar or alias for IsSuccessChecker
	IsValid() bool
}

type IsValidInvalidChecker added in v1.1.9

type IsValidInvalidChecker interface {
	IsValidChecker
	IsInvalidChecker
}

type IsValueStringChecker added in v1.3.7

type IsValueStringChecker interface {
	IsValueString() bool
}

type IsValueTypeOfChecker added in v1.3.7

type IsValueTypeOfChecker interface {
	IsValueTypeOf(rfType reflect.Type) bool
}

type IsWithinRangeByteChecker

type IsWithinRangeByteChecker interface {
	// IsWithinRange r.Min >= value && value <= r.Max
	//
	// Or, r.Start >= value && value <= r.End
	IsWithinRange(value byte) bool
}

type IsWithinRangeInt16Checker

type IsWithinRangeInt16Checker interface {
	// IsWithinRange r.Min >= value && value <= r.Max
	//
	// Or, r.Start >= value && value <= r.End
	IsWithinRange(value int16) bool
}

type IsWithinRangeInt32Checker

type IsWithinRangeInt32Checker interface {
	// IsWithinRange r.Min >= value && value <= r.Max
	//
	// Or, r.Start >= value && value <= r.End
	IsWithinRange(value int32) bool
}

type IsWithinRangeInt8Checker

type IsWithinRangeInt8Checker interface {
	// IsWithinRange r.Min >= value && value <= r.Max
	//
	// Or, r.Start >= value && value <= r.End
	IsWithinRange(value int8) bool
}

type IsWithinRangeIntChecker

type IsWithinRangeIntChecker interface {
	// IsWithinRange r.Min >= value && value <= r.Max
	//
	// Or, r.Start >= value && value <= r.End
	IsWithinRange(value int) bool
}

type ItemAtRemover

type ItemAtRemover interface {
	RemoveAt(index int) (isSuccess bool)
}

type JsonByter

type JsonByter interface {
	JsonBytesPtr() (jsonBytesPtr *[]byte, err error)
	JsonBytes() (jsonBytes []byte, err error)
}

type JsonBytesStringerContractsBinder

type JsonBytesStringerContractsBinder interface {
	JsonByter
	JsonCombineStringer
	AsJsonBytesStringerContractsBinder() JsonBytesStringerContractsBinder
}

type JsonCombineStringer

type JsonCombineStringer interface {
	JsonStringer
	// MustJsonStringer panic if any error
	MustJsonStringer
}

type JsonErrorBytesGetter added in v1.3.3

type JsonErrorBytesGetter interface {
	JsonErrorBytes() []byte
}

type JsonStringer added in v0.8.3

type JsonStringer interface {
	JsonString() string
}

type KeyAnyValueDefiner added in v1.3.3

type KeyAnyValueDefiner interface {
	KeyStringNameGetter
	VariableNameStringGetter
	ValueAnyGetter
	ExplicitValueStringGetter
	IsVariableNameEqual(name string) bool
	IsAnyValueEqual(right interface{}) bool
	IsEqualKeyAnyValueDefiner(right KeyAnyValueDefiner) bool

	CoreDefiner
	StringCompiler
}

type KeyAnyValueDefinerBinder added in v1.3.7

type KeyAnyValueDefinerBinder interface {
	KeyAnyValueDefiner
	AsKeyAnyValueDefinerBinder() KeyAnyValueDefinerBinder
}

type KeyAnyValuesCollectionDefiner added in v1.3.3

type KeyAnyValuesCollectionDefiner interface {
	KeyValueStringDefiners() []KeyAnyValueDefiner

	AllKeysStringer
	AllKeysSortedStringer

	HashmapGetter
	KeysHashsetGetter
	StringsGetter
	MapStringAnyGetter
	HasKeyChecker
	ValueOfKey(key string) (valInf interface{})
	ValueOfKeys(keys ...string) (valuesAnyItems []interface{})

	IsEqualKeyAnyValuesCollectionDefiner(
		right KeyAnyValuesCollectionDefiner,
	) bool

	CoreDefiner
	StringCompiler
}

type KeyAnyValuesCollectionDefinerBinder added in v1.3.7

type KeyAnyValuesCollectionDefinerBinder interface {
	KeyAnyValuesCollectionDefiner
	AsKeyAnyValuesCollectionDefinerBinder() KeyAnyValuesCollectionDefinerBinder
}

type KeyStringNameGetter added in v1.3.7

type KeyStringNameGetter interface {
	KeyName() string
}

type KeyStringValuesCollectionDefiner added in v1.3.3

type KeyStringValuesCollectionDefiner interface {
	KeyValueStringDefiners() []KeyValueStringDefiner

	AllKeysStringer
	AllKeysSortedStringer

	HashmapGetter
	KeysHashsetGetter
	StringsGetter
	HasKeyChecker

	ValueOfKey(key string) (val string)
	ValueOfKeys(keys ...string) (values []string)

	IsEqualKeyStringValuesCollectionDefiner(
		right KeyStringValuesCollectionDefiner,
	) bool
	CoreDefiner
	StringCompiler
}

type KeyStringValuesCollectionDefinerBinder added in v1.3.7

type KeyStringValuesCollectionDefinerBinder interface {
	KeyStringValuesCollectionDefiner
	AsKeyStringValuesCollectionDefinerBinder() KeyStringValuesCollectionDefinerBinder
}

type KeyValueStringDefiner added in v1.3.3

type KeyValueStringDefiner interface {
	KeyStringNameGetter
	VariableNameStringGetter
	ExplicitValueStringGetter
	IsVariableNameEqual(name string) bool
	IsValueEqual(valueString string) bool
	IsEqualKeyValueStringDefiner(right KeyValueStringDefiner) bool

	CoreDefiner
	StringCompiler
}

type KeyValueStringDefinerBinder added in v1.3.7

type KeyValueStringDefinerBinder interface {
	KeyValueStringDefiner
	AsKeyValueStringDefinerBinder() KeyValueStringDefinerBinder
}

type KeysHashsetGetter added in v1.3.3

type KeysHashsetGetter interface {
	KeysHashset() map[string]bool
}

type LastIndexGetter

type LastIndexGetter interface {
	LastIndex() int
}

type LengthGetter

type LengthGetter interface {
	Length() int
}

type ListStringsGetter

type ListStringsGetter interface {
	ListStrings() []string
}

type MapStringAnyGetter added in v1.3.3

type MapStringAnyGetter interface {
	MapStringAny() map[string]interface{}
}

type MapStringAnyWithOrder added in v1.3.3

type MapStringAnyWithOrder interface {
	MapStringAnyGetter
	ValueTypeName() string
	AllKeysSorted() (sortedKeys []string)
	AllKeys() (keysUnsorted []string)
}

type MapStringErrorFuncGetter added in v1.3.13

type MapStringErrorFuncGetter interface {
	MapStringString() map[string]func() error
}

type MapStringFuncGetter added in v1.3.13

type MapStringFuncGetter interface {
	MapStringString() map[string]func()
}

type MapStringStringGetter added in v1.3.13

type MapStringStringGetter interface {
	MapStringString() map[string]string
}

type MeaningFullErrorGetter added in v0.9.5

type MeaningFullErrorGetter interface {
	MeaningFullError() error
}

type MessageGetter added in v1.1.9

type MessageGetter interface {
	Message() string
}

type MetaGetter added in v1.1.8

type MetaGetter interface {
	Meta() string
}

type MustChangesLogger added in v1.1.9

type MustChangesLogger interface {
	internalinterface.MustChangesLogger
}

type MustJsonStringer added in v0.8.3

type MustJsonStringer interface {
	JsonStringMust() string
}

type MustReflectToSetter added in v1.3.12

type MustReflectToSetter interface {
	ReflectSetToMust(toPointer interface{})
}

type MustSerializer added in v1.1.8

type MustSerializer interface {
	SerializeMust() (jsonBytes []byte)
}

type NameGetter added in v1.1.8

type NameGetter interface {
	Name() string
}

type NameValueStringer added in v0.9.8

type NameValueStringer interface {
	NameValue() string
}

type NameValuer added in v0.9.5

type NameValuer interface {
	// NameValue
	//
	//   should be a combined string output using name[value]
	//
	// Sample :
	//  - "`EnumName[EnumValInteger]" -> `EnumName[2]`
	NameValue() string
}

NameValuer

should be a combined string output using name[value]

Sample :

  • "`EnumName[EnumValInteger]" -> `EnumName[2]`

type RangeValidateChecker

type RangeValidateChecker interface {
	// RangesInvalidMessage get invalid message
	RangesInvalidMessage() string
	// RangesInvalidErr get invalid message error
	RangesInvalidErr() error
	// IsValidRange Is with in the range as expected.
	IsValidRange() bool
	// IsInvalidRange Is out of the ranges expected.
	IsInvalidRange() bool
}

type RawMessageBytesGetter added in v1.1.9

type RawMessageBytesGetter interface {
	RawMessageBytes() []byte
}

type RawPayloadsGetter added in v1.1.8

type RawPayloadsGetter interface {
	internalinterface.RawPayloadsGetter
}

type ReflectKindGetter

type ReflectKindGetter interface {
	ReflectKind() reflect.Kind
}

type ReflectSetter added in v1.1.0

type ReflectSetter interface {
	// ReflectSetTo
	//
	// ReflectSetter
	//  sets current object to something else by casting,
	//  reflection, by unmarshalling or by marshalling
	//
	// Set any object from to toPointer object
	//
	// Valid Inputs or Supported (https://t.ly/1Lpt):
	//  - From, To: (null, null)                          -- do nothing
	//  - From, To: (sameTypePointer, sameTypePointer)    -- try reflection
	//  - From, To: (sameTypeNonPointer, sameTypePointer) -- try reflection
	//  - From, To: ([]byte or *[]byte, otherType)        -- try unmarshal, reflect
	//  - From, To: (otherType, *[]byte)                  -- try marshal, reflect
	//
	// Validations:
	//  - Check null, if both null no error return quickly.
	//  - NotSupported returns as error.
	//      - NotSupported: (from, to) - (..., not pointer)
	//      - NotSupported: (from, to) - (null, notNull)
	//      - NotSupported: (from, to) - (notNull, null)
	//      - NotSupported: (from, to) - not same type and not bytes on any
	//  - `From` null or nil is not supported and will return error.
	//
	// Reference:
	//  - Reflection String Set Example : https://go.dev/play/p/fySLYuOvoRK.go?download=true
	//  - Method document screenshot    : https://prnt.sc/26dmf5g
	ReflectSetTo(toPointer interface{}) error
}

ReflectSetter

ReflectSetTo

sets current object to something else by casting,
reflection, by unmarshalling or by marshalling

Set any object from to toPointer object

Valid Inputs or Supported (https://t.ly/1Lpt):

  • From, To: (null, null) -- do nothing
  • From, To: (sameTypePointer, sameTypePointer) -- try reflection
  • From, To: (sameTypeNonPointer, sameTypePointer) -- try reflection
  • From, To: ([]byte or *[]byte, otherType) -- try unmarshal, reflect
  • From, To: (otherType, *[]byte) -- try marshal, reflect

Validations:

  • Check null, if both null no error return quickly.
  • NotSupported returns as error.
  • NotSupported: (from, to) - (..., not pointer)
  • NotSupported: (from, to) - (null, notNull)
  • NotSupported: (from, to) - (notNull, null)
  • NotSupported: (from, to) - not same type and not bytes on any
  • `From` null or nil is not supported and will return error.

Reference:

type ReflectTypeGetter

type ReflectTypeGetter interface {
	ReflectType() reflect.Type
	GetErrorOnTypeMismatch(
		typeMatch reflect.Type,
		isIncludeInvalidMessage bool,
	) error
}

type ReflectValueGetter

type ReflectValueGetter interface {
	ReflectValue() *reflect.Value
}

type RemindLaterChangeSkipper added in v1.1.9

type RemindLaterChangeSkipper interface {
	SkipChangesRemindLater() error
	SkipChangesRemindLaterMust()
}

type SafeBytesGetter added in v0.9.8

type SafeBytesGetter interface {
	SafeBytes() []byte
}

type SafeBytesPointerGetter added in v0.9.8

type SafeBytesPointerGetter interface {
	SafeBytesPtr() *[]byte
}

type SafeStringRemover added in v1.0.8

type SafeStringRemover interface {
	SafeRemove(key string) (isSuccess bool)
}

type SafeStringer added in v0.9.8

type SafeStringer interface {
	SafeString() string
}

type SafeStringsGetter added in v0.9.8

type SafeStringsGetter interface {
	SafeStrings() []string
}

type Serializer added in v1.0.8

type Serializer interface {
	Serialize() ([]byte, error)
}

type SetEnabler added in v1.3.3

type SetEnabler interface {
	SetEnable()
}

type SetEnablerReturnsError added in v1.3.3

type SetEnablerReturnsError interface {
	SetEnable() error
}

type SetFlager added in v1.3.3

type SetFlager interface {
	SetFlag(flagName string) error
}

type SimpleDynamicDataConverter

type SimpleDynamicDataConverter interface {
	// GetConvertTo convert `type` from, to
	GetConvertTo(from interface{}) (to interface{}, err error)
	// Convert convert `type` from, to
	Convert(from, to interface{}) error
	// ConvertPointers convert `*type` from, to
	ConvertPointers(from, to interface{}) error
}

type SimpleValidInvalidChecker

type SimpleValidInvalidChecker interface {
	IsValidChecker
	IsInvalidChecker
	InvalidMessageGetter
}

type SimpleValidInvalidCheckerContractsBinder

type SimpleValidInvalidCheckerContractsBinder interface {
	SimpleValidInvalidChecker
	AsSimpleValidInvalidChecker() SimpleValidInvalidChecker
}

type SliceByter added in v0.9.4

type SliceByter interface {
	Bytes() []byte
}

type SlicePager

type SlicePager interface {
	GetPagesCount(perPageItems int) int
	// HasPageAt returns true if page count is less than the page count
	HasPageAt(perPageItems int, pageIndex int) bool
}

SlicePager Paging count related methods

type SpecificTypeWriter added in v1.1.9

type SpecificTypeWriter interface {
	SpecificTypeWrite(typeName string, content string) error
	SpecificTypeWriteMust(typeName string, content string)
}

type StackTracesBytesGetter added in v1.3.3

type StackTracesBytesGetter interface {
	StackTracesBytes() []byte
}

type StandardSlicerContractsBinder

type StandardSlicerContractsBinder interface {
	StandardSlicer
	AsStandardSlicerContractsBinder() StandardSlicerContractsBinder
}

type StringCompiler added in v1.1.9

type StringCompiler interface {
	Compile() string
}

type StringHasAllChecker

type StringHasAllChecker interface {
	HasAll(searchTerms ...string) bool
}

type StringHasAnyChecker

type StringHasAnyChecker interface {
	HasAny(searchTerms ...string) bool
}

type StringHasChecker

type StringHasChecker interface {
	Has(search string) bool
}

type StringIdentifier added in v0.4.7

type StringIdentifier interface {
	IdString() string
}

type StringIsAnyOfChecker added in v0.4.6

type StringIsAnyOfChecker interface {
	IsAnyOf(value string, checkingItems ...string) bool
}

type StringRangeNamesCsvGetter

type StringRangeNamesCsvGetter interface {
	RangeNamesCsv() string
}

type StringRangeNamesGetter

type StringRangeNamesGetter interface {
	StringRangeNames() []string
}

type StringRangesGetter

type StringRangesGetter interface {
	StringRangesPtr() *[]string
	StringRanges() []string
}

type StringRemover added in v1.0.8

type StringRemover interface {
	Remove(key string) (isSuccess bool)
}

type StringUniqueMapper

type StringUniqueMapper interface {
	UniqueMap() map[string]bool
}

type Stringer

type Stringer interface {
	String() string
}

type StringsGetter added in v0.9.8

type StringsGetter interface {
	Strings() []string
}

type StringsLinesGetter added in v0.9.8

type StringsLinesGetter interface {
	Lines() []string
}

type TableNamer added in v1.1.9

type TableNamer interface {
	TableName() string
}

type ToNamer added in v0.4.6

type ToNamer interface {
	Name() string
}

type ToNumberStringer added in v0.4.6

type ToNumberStringer interface {
	// ToNumberString
	//
	//  It returns string number value.
	//
	// Examples:
	//  - ToNumberString() -> "1"  if the value is 1
	//  - ToNumberString() -> "10" if the value is 10
	ToNumberString() string
}

ToNumberStringer

It returns string number value.

Examples:

  • ToNumberString() -> "1" if the value is 1
  • ToNumberString() -> "10" if the value is 10

type ToValueStringer

type ToValueStringer interface {
	Value() string
}

type TypeNameGetter added in v1.1.8

type TypeNameGetter interface {
	TypeName() string
}

type TypeNameWithRangeNamesCsvGetter added in v0.8.0

type TypeNameWithRangeNamesCsvGetter interface {
	StringRangeNamesCsvGetter
	TypeNameGetter
}

type TypeWriter added in v1.1.9

type TypeWriter interface {
	TypeWrite(typeNameGetter TypeNameGetter, content string) error
	TypeWriteMust(typeNameGetter TypeNameGetter, content string)
}

type TypenameStringGetter added in v1.1.2

type TypenameStringGetter interface {
	TypenameString() string
}

type UintUserIdGetter added in v1.0.8

type UintUserIdGetter interface {
	UserId() uint
}

type UserIdGetter added in v1.0.8

type UserIdGetter interface {
	UserId() int
}

type UsernameGetter added in v1.0.8

type UsernameGetter interface {
	Username() string
}

type ValidationCheckerWithStringer added in v1.1.9

type ValidationCheckerWithStringer interface {
	Stringer
	IsInvalidChecker
	IsValidChecker
}

type ValidationErrorGetter added in v1.1.8

type ValidationErrorGetter interface {
	// ValidationError
	//
	//  Returns validation related error
	//  only
	ValidationError() error
}

ValidationErrorGetter

Returns validation related error
only

type ValidationMessageGetter added in v1.1.8

type ValidationMessageGetter interface {
	ValidationMessage() string
}

type ValueAnyGetter added in v1.3.3

type ValueAnyGetter interface {
	ValueAny() interface{}
}

type ValueAnyItemGetter added in v0.9.8

type ValueAnyItemGetter interface {
	Value() interface{}
}

type ValueByteGetter added in v0.9.8

type ValueByteGetter interface {
	Value() byte
}

type ValueErrorGetter added in v0.9.8

type ValueErrorGetter interface {
	Value() error
}

type ValueFloat32Getter added in v0.9.8

type ValueFloat32Getter interface {
	Value() float32
}

type ValueFloat64Getter added in v0.9.8

type ValueFloat64Getter interface {
	Value() float64
}

type ValueGetter

type ValueGetter interface {
	ValueDynamic() interface{}
}

type ValueInt16Getter added in v0.9.8

type ValueInt16Getter interface {
	Value() int16
}

type ValueInt32Getter added in v0.9.8

type ValueInt32Getter interface {
	Value() int32
}

type ValueInt64Getter added in v0.9.8

type ValueInt64Getter interface {
	Value() int64
}

type ValueIntegerGetter added in v0.9.8

type ValueIntegerGetter interface {
	Value() int
}

type ValueReflectSetter added in v1.0.8

type ValueReflectSetter interface {
	ValueReflectSet(setterPtr interface{}) error
}

type ValueStringGetter added in v0.9.8

type ValueStringGetter interface {
	Value() string
}

type ValueStringsGetter added in v0.9.8

type ValueStringsGetter interface {
	Value() []string
}

type VariableNameAnyGetter added in v1.3.3

type VariableNameAnyGetter interface {
	VariableNameAny() interface{}
}

type VariableNameStringGetter added in v1.3.3

type VariableNameStringGetter interface {
	VariableName() string
}

type YesNoAcceptRejecter added in v1.1.9

type YesNoAcceptRejecter interface {
	internalinterface.YesNoAcceptRejecter
}

type YesNoAsker added in v1.1.9

type YesNoAsker interface {
	internalinterface.YesNoAsker
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL