Documentation ¶
Index ¶
- type ActionTyper
- type AddCmdTyper
- type ApplyDefaultChmodCmdTyper
- type ApplyDefaultConfigureCmdTyper
- type ApplyInstallFixCmdTyper
- type BackupCmdTyper
- type BaseCmdTyper
- type BaseEnumer
- type BasicByteContractsEnumer
- type BasicByteEnumContractsBinder
- type BasicByteEnumContractsDelegateBinder
- type BasicByteEnumer
- type BasicContractsEnumer
- type BasicEnumContractsBinder
- type BasicEnumValuer
- type BasicEnumWithComparer
- type BasicEnumer
- type BasicEnumerGetter
- type BasicInt16ContractsEnumer
- type BasicInt16EnumContractsBinder
- type BasicInt16Enumer
- type BasicInt32ContractsEnumer
- type BasicInt32EnumContractsBinder
- type BasicInt32Enumer
- type BasicInt64Enumer
- type BasicInt8ContractsEnumer
- type BasicInt8EnumContractsBinder
- type BasicInt8Enumer
- type BasicIntEnumer
- type ByteEnumNamer
- type ByteEnumValuer
- type ByteToEnumStringer
- type ByteTypeEnumGetter
- type ChangeDirCmdTyper
- type ChangePortCmdTyper
- type CleanupCmdTyper
- type CompareBasicEnumer
- type CompareByteEnumer
- type CompareInt16Enumer
- type CompareInt32Enumer
- type CompareInt8Enumer
- type CompareIntegerEnumer
- type CompareMethodsTyper
- type CompletionStateTyper
- type CompressCmdTyper
- type CreateCmdTyper
- type CrudTyper
- type DecompressCmdTyper
- type DownloadCmdTyper
- type DownloadDecompressCmdTyper
- type EnumFormatter
- type EnumTypeChecker
- type EnumTyper
- type EnvironmentFlagTyper
- type EnvironmentOptioner
- type EnvironmentTyper
- type ErrorStringGetter
- type EventTyper
- type EventTyperGetter
- type ExportCmdTyper
- type HelpCmdTyper
- type HistoriesCmdTyper
- type HttpMethodTyper
- type ImportCmdTyper
- type ImportExportBackupCmdTyper
- type InstallCmdTyper
- type Int16EnumNamer
- type Int16ToEnumStringer
- type Int32EnumNamer
- type Int32ToEnumStringer
- type Int8EnumNamer
- type Int8ToEnumStringer
- type IntToEnumStringer
- type IntegerEnumRangesGetter
- type IsAnyEnumsEqualer
- type IsAnyNameOfChecker
- type IsAnyValueByteEqualer
- type IsAnyValueInteger16Equaler
- type IsAnyValueInteger32Equaler
- type IsAnyValueInteger8Equaler
- type IsAnyValueIntegerEqualer
- type IsBothEnumEqualer
- type IsEndChecker
- type IsEnumEqualer
- type IsInvalidChecker
- type IsNameEqualer
- type IsStartChecker
- type IsStartEndChecker
- type IsValidChecker
- type IsValidInvalidChecker
- type IsValueByteEqualer
- type IsValueInteger16Equaler
- type IsValueInteger32Equaler
- type IsValueInteger8Equaler
- type IsValueIntegerEqualer
- type LinuxTyper
- type ListCmdTyper
- type LogCmdTyper
- type LogLevelTyper
- type LoggerTyper
- type LoggerTyperGetter
- type NameValuer
- type Namer
- type OnOffLater
- type OnlySupportedNamesErrorer
- type OverwriteOrRideOrEnforcer
- type PatternsSplitter
- type PrivilegeTyper
- type RangeNamesCsvGetter
- type RangeValidateChecker
- type RangesDynamicMapGetter
- type RangesIntegerStringMapGetter
- type ReinstallCmdTyper
- type RemoveCmdTyper
- type RevertCmdTyper
- type SimpleEnumer
- type SplitNameValueByteGetter
- type SplitNameValueInteger16Getter
- type SplitNameValueInteger32Getter
- type SplitNameValueInteger8Getter
- type SplitNameValueIntegerGetter
- type StandardEnumer
- type StandardEnumerContractsBinder
- type StatusCmdTyper
- type StringCompareTyper
- type StringRangeNamesCsvGetter
- type StringRangesGetter
- type SwitchOrChangePortCmdTyper
- type SwitchPortCmdTyper
- type SyncCmdTyper
- type ToNameLower
- type ToNumberStringer
- type TypeNameGetter
- type TypeNameWithRangeNamesCsvGetter
- type UninstallCmdTyper
- type UnmarshallEnumToValueByter
- type UnmarshallToValueByter
- type UnmarshallToValueInt16er
- type UnmarshallToValueInt8er
- type UnmarshallToValueInter
- type WhichPortCmdTyper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionTyper ¶
type ActionTyper interface { BasicEnumer internalenuminf.ActionTyper }
type AddCmdTyper ¶
type AddCmdTyper interface { BasicEnumer internalenuminf.AddCmdTyper }
type ApplyDefaultChmodCmdTyper ¶
type ApplyDefaultChmodCmdTyper interface { BasicEnumer internalenuminf.ApplyDefaultChmodCmdTyper }
type ApplyDefaultConfigureCmdTyper ¶
type ApplyDefaultConfigureCmdTyper interface { BasicEnumer internalenuminf.ApplyDefaultConfigureCmdTyper }
type ApplyInstallFixCmdTyper ¶
type ApplyInstallFixCmdTyper interface { BasicEnumer internalenuminf.ApplyInstallFixCmdTyper }
type BackupCmdTyper ¶
type BackupCmdTyper interface { BasicEnumer internalenuminf.BackupCmdTyper }
type BaseCmdTyper ¶
type BaseCmdTyper interface { BasicEnumer internalenuminf.BaseCmdTyper }
type BaseEnumer ¶
type BaseEnumer interface { SimpleEnumer NameValuer IsNameEqualer IsAnyNameOfChecker ToNumberStringer IsValidInvalidChecker BasicEnumValuer RangeNamesCsvGetter corejson.JsonMarshaller // contains filtered or unexported methods }
type BasicByteContractsEnumer ¶
type BasicByteContractsEnumer interface { BasicContractsEnumer IsValueByteEqualer IsAnyValueByteEqualer BasicByteEnumer }
type BasicByteEnumContractsBinder ¶
type BasicByteEnumContractsBinder interface { BasicByteContractsEnumer AsBasicByteEnumContractsBinder() BasicByteEnumContractsBinder }
type BasicByteEnumContractsDelegateBinder ¶
type BasicByteEnumContractsDelegateBinder interface {
AsBasicByteEnumContractsDelegateBinder() BasicByteEnumContractsDelegateBinder
}
type BasicByteEnumer ¶
type BasicByteEnumer interface { UnmarshallEnumToValueByter MaxByte() byte MinByte() byte ValueByte() byte RangesByte() []byte }
type BasicContractsEnumer ¶
type BasicContractsEnumer interface { BasicEnumer TypeNameWithRangeNamesCsvGetter }
type BasicEnumContractsBinder ¶
type BasicEnumContractsBinder interface { BasicContractsEnumer AsBasicEnumContractsBinder() BasicEnumContractsBinder }
type BasicEnumValuer ¶
type BasicEnumValuer interface { ValueByte() byte ValueInt() int ValueInt8() int8 ValueInt16() int16 ValueUInt16() uint16 ValueInt32() int32 // ValueString // // alias for ToNumberStringer // returns the value number as string format (no name) // // Example: // - "1", "2" NOT "Name" ValueString() string // value in string format }
type BasicEnumWithComparer ¶
type BasicEnumWithComparer interface { BasicEnumer IsBothEnumEqualer }
type BasicEnumer ¶
type BasicEnumer interface { BaseEnumer EnumFormatter MinMaxAny() (min, max interface{}) MinValueString() string MaxValueString() string MaxInt() int MinInt() int RangesDynamicMapGetter AllNameValues() []string OnlySupportedNamesErrorer IntegerEnumRangesGetter EnumType() EnumTyper }
BasicEnumer
EnumFormatter:
Outputs name and value by given format.
sample-format :
- "Enum of {type-name} - {name} - {value}"
sample-format-output :
- "Enum of EnumFullName - Invalid - 0"
Key-Meaning :
- {type-name} : represents type-name string
- {name} : represents name string
- {value} : represents value string
type BasicEnumerGetter ¶
type BasicEnumerGetter interface {
TypeBasicEnum() BasicEnumer
}
type BasicInt16ContractsEnumer ¶
type BasicInt16ContractsEnumer interface { BasicContractsEnumer BasicInt16Enumer Int16ToEnumStringer IsValueInteger16Equaler IsAnyValueInteger16Equaler }
type BasicInt16EnumContractsBinder ¶
type BasicInt16EnumContractsBinder interface { BasicInt16ContractsEnumer AsBasicIn16EnumContractsBinder() BasicInt16ContractsEnumer }
type BasicInt16Enumer ¶
type BasicInt32ContractsEnumer ¶
type BasicInt32ContractsEnumer interface { BasicContractsEnumer BasicInt32Enumer Int32ToEnumStringer IsValueInteger32Equaler IsAnyValueInteger32Equaler }
type BasicInt32EnumContractsBinder ¶
type BasicInt32EnumContractsBinder interface { BasicInt32ContractsEnumer AsBasicInt32EnumContractsBinder() BasicInt32ContractsEnumer }
type BasicInt32Enumer ¶
type BasicInt64Enumer ¶
type BasicInt8ContractsEnumer ¶
type BasicInt8ContractsEnumer interface { BasicContractsEnumer BasicInt8Enumer Int8ToEnumStringer IsValueInteger8Equaler IsAnyValueInteger8Equaler }
type BasicInt8EnumContractsBinder ¶
type BasicInt8EnumContractsBinder interface { BasicInt8ContractsEnumer AsBasicInt8EnumContractsBinder() BasicInt8EnumContractsBinder }
type BasicInt8Enumer ¶
type BasicIntEnumer ¶
type ByteEnumNamer ¶
type ByteEnumNamer interface { ValueByte() byte // contains filtered or unexported methods }
type ByteEnumValuer ¶
type ByteEnumValuer interface {
ValueByte() byte
}
type ByteToEnumStringer ¶
type ByteTypeEnumGetter ¶
type ByteTypeEnumGetter interface {
TypeEnum() BasicByteEnumContractsBinder
}
type ChangeDirCmdTyper ¶
type ChangeDirCmdTyper interface { BasicEnumer internalenuminf.ChangeDirCmdTyper }
type ChangePortCmdTyper ¶
type ChangePortCmdTyper interface { BasicEnumer internalenuminf.ChangePortCmdTyper }
type CleanupCmdTyper ¶
type CleanupCmdTyper interface { BasicEnumer internalenuminf.CleanupCmdTyper }
type CompareBasicEnumer ¶
type CompareBasicEnumer interface { IsEqual(enum BasicEnumer) bool IsLess(enum BasicEnumer) bool IsLessEqual(enum BasicEnumer) bool IsGreater(enum BasicEnumer) bool IsGreaterEqual(enum BasicEnumer) bool IsNotEqual(enum BasicEnumer) bool }
type CompareByteEnumer ¶
type CompareInt16Enumer ¶
type CompareInt32Enumer ¶
type CompareInt8Enumer ¶
type CompareIntegerEnumer ¶
type CompareMethodsTyper ¶
type CompareMethodsTyper interface { BasicEnumer internalenuminf.CompareMethodsTyper }
type CompletionStateTyper ¶
type CompletionStateTyper interface { BasicEnumer internalenuminf.CompletionStateTyper }
type CompressCmdTyper ¶
type CompressCmdTyper interface { BasicEnumer internalenuminf.CompressCmdTyper }
type CreateCmdTyper ¶
type CreateCmdTyper interface { BasicEnumer internalenuminf.CreateCmdTyper }
type CrudTyper ¶
type CrudTyper interface { BasicEnumer internalenuminf.CrudTyper }
type DecompressCmdTyper ¶
type DecompressCmdTyper interface { BasicEnumer internalenuminf.DecompressCmdTyper }
type DownloadCmdTyper ¶
type DownloadCmdTyper interface { BasicEnumer internalenuminf.DownloadCmdTyper }
type DownloadDecompressCmdTyper ¶
type DownloadDecompressCmdTyper interface { BasicEnumer internalenuminf.DownloadDecompressCmdTyper }
type EnumFormatter ¶
type EnumFormatter interface { // Format // // Outputs name and // value by given format. // // sample-format : // - "Enum of {type-name} - {name} - {value}" // // sample-format-output : // - "Enum of EnumFullName - Invalid - 0" // // Key-Meaning : // - {type-name} : represents type-name string // - {name} : represents name string // - {value} : represents value string Format(format string) (compiled string) }
EnumFormatter
Outputs name and value by given format.
sample-format :
- "Enum of {type-name} - {name} - {value}"
sample-format-output :
- "Enum of EnumFullName - Invalid - 0"
Key-Meaning :
- {type-name} : represents type-name string
- {name} : represents name string
- {value} : represents value string
type EnumTypeChecker ¶
type EnumTypeChecker interface { IsBoolean() bool IsByte() bool IsUnsignedInteger16() bool IsUnsignedInteger32() bool IsUnsignedInteger64() bool IsInteger8() bool IsInteger16() bool IsInteger32() bool IsInteger64() bool IsInteger() bool IsString() bool // IsNumber // // Any number returns true IsNumber() bool IsAnyInteger() bool IsAnyUnsignedNumber() bool IsValidInvalidChecker }
type EnumTyper ¶
type EnumTyper interface { EnumTypeChecker NameValuer IsNameEqualer IsAnyNameOfChecker ValueByte() byte Value() byte ToNumberStringer // contains filtered or unexported methods }
type EnvironmentFlagTyper ¶
type EnvironmentFlagTyper interface { BasicEnumer internalenuminf.EnvironmentFlagTyper }
type EnvironmentOptioner ¶
type EnvironmentOptioner interface { EnvTyper() EnvironmentTyper FlagTyper() EnvironmentFlagTyper }
type EnvironmentTyper ¶
type EnvironmentTyper interface { BasicEnumer internalenuminf.EnvironmentTyper }
type ErrorStringGetter ¶
type ErrorStringGetter interface { internalinterface.ErrorStringGetter }
type EventTyper ¶
type EventTyper interface { BasicEnumer internalenuminf.EventTyper }
type EventTyperGetter ¶
type EventTyperGetter interface {
EventTyper() EventTyper
}
type ExportCmdTyper ¶
type ExportCmdTyper interface { BasicEnumer internalenuminf.ExportCmdTyper }
type HelpCmdTyper ¶
type HelpCmdTyper interface { BasicEnumer internalenuminf.HelpCmdTyper }
type HistoriesCmdTyper ¶
type HistoriesCmdTyper interface { BasicEnumer internalenuminf.HistoriesCmdTyper }
type HttpMethodTyper ¶
type HttpMethodTyper interface { BasicEnumer internalenuminf.HttpMethodTyper }
type ImportCmdTyper ¶
type ImportCmdTyper interface { BasicEnumer internalenuminf.ImportCmdTyper }
type ImportExportBackupCmdTyper ¶
type ImportExportBackupCmdTyper interface { BasicEnumer internalenuminf.ImportExportBackupCmdTyper }
type InstallCmdTyper ¶
type InstallCmdTyper interface { BasicEnumer internalenuminf.InstallCmdTyper }
type Int16EnumNamer ¶
type Int16EnumNamer interface { ValueInt16() int16 // contains filtered or unexported methods }
type Int16ToEnumStringer ¶
type Int32EnumNamer ¶
type Int32EnumNamer interface { ValueInt32() int32 // contains filtered or unexported methods }
type Int32ToEnumStringer ¶
type Int8EnumNamer ¶
type Int8EnumNamer interface { ValueInt8() int8 // contains filtered or unexported methods }
type Int8ToEnumStringer ¶
type IntToEnumStringer ¶
type IntegerEnumRangesGetter ¶
type IntegerEnumRangesGetter interface {
IntegerEnumRanges() []int
}
type IsAnyEnumsEqualer ¶
type IsAnyEnumsEqualer interface {
IsAnyEnumsEqual(enums ...BasicEnumer) bool
}
type IsAnyNameOfChecker ¶
type IsAnyNameOfChecker interface { // IsAnyNamesOf // // Returns true if any of the name matches. IsAnyNamesOf(names ...string) bool }
IsAnyNameOfChecker
Returns true if any of the name matches.
type IsAnyValueByteEqualer ¶
type IsBothEnumEqualer ¶
type IsBothEnumEqualer interface { IsEnumEqualer IsAnyEnumsEqualer }
type IsEndChecker ¶
type IsEndChecker interface {
IsEnd() bool
}
type IsEnumEqualer ¶
type IsEnumEqualer interface {
IsEnumEqual(enum BasicEnumer) bool
}
type IsInvalidChecker ¶
type IsInvalidChecker interface {
IsInvalid() bool
}
type IsNameEqualer ¶
type IsStartChecker ¶
type IsStartChecker interface {
IsStart() bool
}
type IsStartEndChecker ¶
type IsStartEndChecker interface { IsStartChecker IsEndChecker }
type IsValidChecker ¶
type IsValidChecker interface { // IsValid similar or alias for IsSuccessChecker IsValid() bool }
type IsValidInvalidChecker ¶
type IsValidInvalidChecker interface { IsValidChecker IsInvalidChecker }
type IsValueByteEqualer ¶
type IsValueInteger16Equaler ¶
type IsValueInteger32Equaler ¶
type IsValueInteger8Equaler ¶
type IsValueIntegerEqualer ¶
type LinuxTyper ¶
type LinuxTyper interface { BasicEnumer internalenuminf.LinuxTyper }
type ListCmdTyper ¶
type ListCmdTyper interface { BasicEnumer internalenuminf.ListCmdTyper }
type LogCmdTyper ¶
type LogCmdTyper interface { BasicEnumer internalenuminf.LogCmdTyper }
type LogLevelTyper ¶
type LogLevelTyper interface { BasicEnumer internalenuminf.LogLevelTyper }
type LoggerTyper ¶
type LoggerTyper interface { BasicEnumer internalinterface.LoggerTyper }
type LoggerTyperGetter ¶
type LoggerTyperGetter interface {
LoggerTyper() LoggerTyper
}
type NameValuer ¶
type NameValuer interface { // NameValue // // should be a combined string output using name[value] // // Sample : // - "`EnumName[EnumValInteger]" -> `EnumName[2]` NameValue() string }
NameValuer / NameValue
should be a combined string output using name[value]
Sample :
- "`EnumName[EnumValInteger]" -> `EnumName[2]`
type OnOffLater ¶
type OnOffLater interface { BasicEnumer internalenuminf.OnOffLater }
type OnlySupportedNamesErrorer ¶
type OnlySupportedNamesErrorer interface { internalenuminf.OnlySupportedNamesErrorer }
type OverwriteOrRideOrEnforcer ¶
type OverwriteOrRideOrEnforcer interface { BasicEnumer internalenuminf.OverwriteOrRideOrEnforcer }
type PatternsSplitter ¶
type PatternsSplitter interface { // PatternSplit // // based on pattern string it will split // and try to convert each string split to enum PatternSplit(splitter, format string) []BasicEnumer }
type PrivilegeTyper ¶
type PrivilegeTyper interface { BasicEnumer internalenuminf.PrivilegeTyper }
type RangeNamesCsvGetter ¶
type RangeNamesCsvGetter interface {
RangeNamesCsv() string
}
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 RangesDynamicMapGetter ¶
type RangesDynamicMapGetter interface {
RangesDynamicMap() map[string]interface{}
}
type ReinstallCmdTyper ¶
type ReinstallCmdTyper interface { BasicEnumer internalenuminf.ReinstallCmdTyper }
type RemoveCmdTyper ¶
type RemoveCmdTyper interface { BasicEnumer internalenuminf.RemoveCmdTyper }
type RevertCmdTyper ¶
type RevertCmdTyper interface { BasicEnumer internalenuminf.RevertCmdTyper }
type SimpleEnumer ¶
type SimpleEnumer interface { internalinterface.SimpleEnumer }
type SplitNameValueByteGetter ¶
type SplitNameValueByteGetter interface { Value() byte // contains filtered or unexported methods }
type SplitNameValueInteger16Getter ¶
type SplitNameValueInteger16Getter interface { Value() int16 // contains filtered or unexported methods }
type SplitNameValueInteger32Getter ¶
type SplitNameValueInteger32Getter interface { Value() int32 // contains filtered or unexported methods }
type SplitNameValueInteger8Getter ¶
type SplitNameValueInteger8Getter interface { Value() int8 // contains filtered or unexported methods }
type SplitNameValueIntegerGetter ¶
type SplitNameValueIntegerGetter interface { Value() int // contains filtered or unexported methods }
type StandardEnumer ¶
type StandardEnumer interface { BasicEnumer StringRangesGetter RangeValidateChecker corejson.JsonContractsBinder }
type StandardEnumerContractsBinder ¶
type StandardEnumerContractsBinder interface { StandardEnumer AsStandardEnumerContractsBinder() StandardEnumerContractsBinder }
type StatusCmdTyper ¶
type StatusCmdTyper interface { BasicEnumer internalenuminf.StatusCmdTyper }
type StringCompareTyper ¶
type StringCompareTyper interface { BasicEnumer internalenuminf.StringCompareTyper }
type StringRangeNamesCsvGetter ¶
type StringRangeNamesCsvGetter interface {
RangeNamesCsv() string
}
type StringRangesGetter ¶
type SwitchOrChangePortCmdTyper ¶
type SwitchOrChangePortCmdTyper interface { ChangePortCmdTyper SwitchPortCmdTyper }
type SwitchPortCmdTyper ¶
type SwitchPortCmdTyper interface { BasicEnumer internalenuminf.SwitchPortCmdTyper }
type SyncCmdTyper ¶
type SyncCmdTyper interface { BasicEnumer internalenuminf.SyncCmdTyper }
type ToNameLower ¶
type ToNameLower interface { internalenuminf.ToNameLower }
type ToNumberStringer ¶
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 TypeNameGetter ¶
type TypeNameGetter interface {
TypeName() string
}
type TypeNameWithRangeNamesCsvGetter ¶
type TypeNameWithRangeNamesCsvGetter interface { StringRangeNamesCsvGetter TypeNameGetter }
type UninstallCmdTyper ¶
type UninstallCmdTyper interface { BasicEnumer internalenuminf.CleanupCmdTyper }
type UnmarshallToValueByter ¶
type UnmarshallToValueInt8er ¶
type UnmarshallToValueInter ¶
type WhichPortCmdTyper ¶
type WhichPortCmdTyper interface { BasicEnumer internalenuminf.WhichPortCmdTyper }
Source Files ¶
- BaseEnumer.go
- BasicEnumWithComparer.go
- BasicEnumer.go
- ByteEnumValuer.go
- EnumFormatter.go
- EnumTypeChecker.go
- EnumTyper.go
- OnlySupportedNamesErrorer.go
- PatternsSplitter.go
- SimpleEnumer.go
- all-checkers.go
- all-cmd-typer.go
- all-common-types.go
- all-compare-enumer.go
- all-enumers.go
- all-equalers.go
- all-getters.go
- all-namers.go
- all-stringers.go
- all-unmarshal-values.go
- enum-contracts.go
Click to show internal directories.
Click to hide internal directories.