Documentation
¶
Index ¶
- Variables
- func RangesInvalidErr() error
- func RangesNotMeet(message string, reqs ...Request) string
- func RangesNotMeetError(message string, reqs ...Request) error
- func RangesNotSupportedFor(message string, requests ...Request) error
- func RangesOnlySupportedFor(message string, requests ...Request) error
- func RangesString(joiner string, requests ...Request) string
- func RangesStringDefaultJoiner(requests ...Request) string
- func RangesStrings(requests ...Request) []string
- type Request
- func (it Request) AllNameValues() []string
- func (it Request) AsActionTyper() enuminf.ActionTyper
- func (it Request) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
- func (it Request) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
- func (it Request) AsCrudTyper() enuminf.CrudTyper
- func (it Request) AsHttpMethodTyper() enuminf.HttpMethodTyper
- func (it *Request) AsJsonMarshaller() corejson.JsonMarshaller
- func (it Request) AsOverwriteOrRideOrEnforcer() enuminf.OverwriteOrRideOrEnforcer
- func (it Request) CurrentNotImpl(reference interface{}, messages ...string) error
- func (it Request) EnumType() enuminf.EnumTyper
- func (it Request) Format(format string) (compiled string)
- func (it Request) GetInBetweenStatus(start, end Request) *ResultStatus
- func (it Request) GetStatusAnyOf(reqs ...Request) *ResultStatus
- func (it Request) IntegerEnumRanges() []int
- func (it Request) IsAnyAction() bool
- func (it Request) IsAnyApplyOnExist() bool
- func (it Request) IsAnyCreate() bool
- func (it Request) IsAnyDrop() bool
- func (it *Request) IsAnyEnumsEqual(enums ...enuminf.BasicEnumer) bool
- func (it Request) IsAnyHttp() bool
- func (it Request) IsAnyHttpMethod(methodNames ...string) bool
- func (it Request) IsAnyNamesOf(names ...string) bool
- func (it Request) IsAnyOf(checkingItems ...byte) bool
- func (it Request) IsAnyOfReqs(reqs ...Request) bool
- func (it Request) IsAnySkipOnExist() bool
- func (it Request) IsAnyValuesEqual(anyByteValues ...byte) bool
- func (it Request) IsAppend() bool
- func (it Request) IsAppendByCompare() bool
- func (it Request) IsAppendByCompareWhereCommentFound() bool
- func (it Request) IsAppendLines() bool
- func (it Request) IsAppendLinesByCompare() bool
- func (it Request) IsByteValueEqual(value byte) bool
- func (it Request) IsChange() bool
- func (it Request) IsCreate() bool
- func (it Request) IsCreateLogically() bool
- func (it Request) IsCreateOrAppend() bool
- func (it Request) IsCreateOrPrepend() bool
- func (it Request) IsCreateOrSkipOnExist() bool
- func (it Request) IsCreateOrUpdate() bool
- func (it Request) IsCreateOrUpdateLogically() bool
- func (it Request) IsCrud() bool
- func (it Request) IsCrudOnlyLogically() bool
- func (it Request) IsCrudOrSkip() bool
- func (it Request) IsCrudSkip() bool
- func (it Request) IsDelete() bool
- func (it Request) IsDeleteHttp() bool
- func (it Request) IsDeleteOrSkipOnNonExist() bool
- func (it Request) IsDrop() bool
- func (it Request) IsDropCreate() bool
- func (it Request) IsDropLogically() bool
- func (it Request) IsDropOnExist() bool
- func (it Request) IsDropOrSkipOnNonExist() bool
- func (it Request) IsDropSafe() bool
- func (it Request) IsEditOrUpdateLogically() bool
- func (it Request) IsEnforce() bool
- func (it Request) IsEnumEqual(enum enuminf.BasicEnumer) bool
- func (it Request) IsExistCheck() bool
- func (it Request) IsGetHttp() bool
- func (it Request) IsInBetween(start, end Request) bool
- func (it Request) IsInheritOnly() bool
- func (it Request) IsInheritPlusOverride() bool
- func (it Request) IsInvalid() bool
- func (it Request) IsMerge() bool
- func (it Request) IsMergeLines() bool
- func (it Request) IsNameEqual(name string) bool
- func (it Request) IsNone() bool
- func (it Request) IsNotAnyAction() bool
- func (it Request) IsNotAnyOfReqs(reqs ...Request) bool
- func (it Request) IsNotCrudOnlyLogically() bool
- func (it Request) IsNotHttpMethod() bool
- func (it Request) IsNotOverrideOrOverwriteOrEnforce() bool
- func (it Request) IsOnExistCheckLogically() bool
- func (it Request) IsOnExistOrSkipOnNonExistLogically() bool
- func (it Request) IsOverride() bool
- func (it Request) IsOverrideOrOverwriteOrEnforce() bool
- func (it Request) IsOverwrite() bool
- func (it Request) IsPatchHttp() bool
- func (it Request) IsPause() bool
- func (it Request) IsPostHttp() bool
- func (it Request) IsPrepend() bool
- func (it Request) IsPrependLines() bool
- func (it Request) IsPutHttp() bool
- func (it Request) IsRead() bool
- func (it Request) IsReadOrEditLogically() bool
- func (it Request) IsReadOrUpdateLogically() bool
- func (it Request) IsReload() bool
- func (it Request) IsRename() bool
- func (it Request) IsRestart() bool
- func (it Request) IsRestartOrReload() bool
- func (it Request) IsResumed() bool
- func (it Request) IsSkipOnExist() bool
- func (it Request) IsStart() bool
- func (it Request) IsStop() bool
- func (it Request) IsStopDisable() bool
- func (it Request) IsStopEnableStart() bool
- func (it Request) IsStopSleepStart() bool
- func (it Request) IsSuspend() bool
- func (it Request) IsTouch() bool
- func (it Request) IsTryRestart3Times() bool
- func (it Request) IsTryRestart5Times() bool
- func (it Request) IsTryStart3Times() bool
- func (it Request) IsTryStart5Times() bool
- func (it Request) IsTryStop3Times() bool
- func (it Request) IsTryStop5Times() bool
- func (it Request) IsUndefined() bool
- func (it Request) IsUninitialized() bool
- func (it Request) IsUpdate() bool
- func (it Request) IsUpdateOnExist() bool
- func (it Request) IsUpdateOrRemoveLogically() bool
- func (it Request) IsUpdateOrSkipOnNonExist() bool
- func (it Request) IsValid() bool
- func (it Request) IsValidRange() bool
- func (it Request) IsValueEqual(value byte) bool
- func (it Request) MarshalJSON() ([]byte, error)
- func (it Request) MaxByte() byte
- func (it Request) MaxInt() int
- func (it Request) MaxValueString() string
- func (it Request) MinByte() byte
- func (it Request) MinInt() int
- func (it Request) MinMaxAny() (min, max interface{})
- func (it Request) MinValueString() string
- func (it Request) Name() string
- func (it Request) NameValue() string
- func (it Request) NotSupportedErr(message string, reference interface{}) error
- func (it Request) OnlySupportedErr(names ...string) error
- func (it Request) OnlySupportedMsgErr(message string, names ...string) error
- func (it Request) RangeNamesCsv() string
- func (it Request) RangesByte() []byte
- func (it Request) RangesDynamicMap() map[string]interface{}
- func (it Request) String() string
- func (it Request) ToNumberString() string
- func (it Request) ToPtr() *Request
- func (it *Request) ToSimple() Request
- func (it Request) TypeName() string
- func (it *Request) UnmarshalJSON(data []byte) error
- func (it Request) UnmarshallEnumToValue(jsonUnmarshallingValue []byte) (byte, error)
- func (it Request) Value() byte
- func (it Request) ValueByte() byte
- func (it Request) ValueInt() int
- func (it Request) ValueInt16() int16
- func (it Request) ValueInt32() int32
- func (it Request) ValueInt8() int8
- func (it Request) ValueString() string
- func (it Request) ValueUInt16() uint16
- type ResultStatus
Constants ¶
This section is empty.
Variables ¶
var ( Ranges = [...]string{ Invalid: "Invalid", Create: "CreateUsingAliasMap", Read: "Read", Update: "Update", Delete: "Delete", Drop: "Drop", CreateOrUpdate: "CreateOrUpdate", ExistCheck: "ExistCheck", SkipOnExist: "SkipOnExist", CreateOrSkipOnExist: "CreateOrSkipOnExist", UpdateOrSkipOnNonExist: "UpdateOrSkipOnNonExist", DeleteOrSkipOnNonExist: "DeleteOrSkipOnNonExist", DropOrSkipOnNonExist: "DropOrSkipOnNonExist", UpdateOnExist: "UpdateOnExist", DropOnExist: "DropOnExist", DropCreate: "DropCreate", Append: "Append", AppendByCompare: "AppendByCompare", AppendByCompareWhereCommentFound: "AppendByCompareWhereCommentFound", AppendLinesByCompare: "AppendLinesByCompare", AppendLines: "AppendLines", CreateOrAppend: "CreateOrAppend", Prepend: "Prepend", CreateOrPrepend: "CreateOrPrepend", PrependLines: "PrependLines", Rename: "Rename", Change: "Change", Merge: "Merge", MergeLines: "MergeLines", GetHttp: "GetHttp", PutHttp: "PutHttp", PostHttp: "PostHttp", DeleteHttp: "DeleteHttp", PatchHttp: "PatchHttp", Touch: "Touch", Start: "Start", Stop: "Stop", Restart: "Restart", Reload: "Reload", StopSleepStart: "StopSleepStart", Suspend: "Suspend", Pause: "Pause", Resumed: "Resumed", TryRestart3Times: "TryRestart3Times", TryRestart5Times: "TryRestart5Times", TryStart3Times: "TryStart3Times", TryStart5Times: "TryStart5Times", TryStop3Times: "TryStop3Times", TryStop5Times: "TryStop5Times", InheritOnly: "InheritOnly", InheritPlusOverride: "InheritPlusOverride", DynamicAction: "DynamicAction", Override: "Override", Overwrite: "Overwrite", Enforce: "Enforce", } RangesMap = map[string]Request{ "Invalid": Invalid, "CreateUsingAliasMap": Create, "Read": Read, "Update": Update, "Delete": Delete, "Drop": Drop, "CreateOrUpdate": CreateOrUpdate, "ExistCheck": ExistCheck, "SkipOnExist": SkipOnExist, "CreateOrSkipOnExist": CreateOrSkipOnExist, "UpdateOrSkipOnNonExist": UpdateOrSkipOnNonExist, "DeleteOrSkipOnNonExist": DeleteOrSkipOnNonExist, "DropOrSkipOnNonExist": DropOrSkipOnNonExist, "UpdateOnExist": UpdateOnExist, "DropOnExist": DropOnExist, "DropCreate": DropCreate, "Append": Append, "AppendByCompare": AppendByCompare, "AppendByCompareWhereCommentFound": AppendByCompareWhereCommentFound, "AppendLinesByCompare": AppendLinesByCompare, "AppendLines": AppendLines, "CreateOrAppend": CreateOrAppend, "Prepend": Prepend, "CreateOrPrepend": CreateOrPrepend, "PrependLines": PrependLines, "Rename": Rename, "Change": Change, "Merge": Merge, "MergeLines": MergeLines, "GetHttp": GetHttp, "PutHttp": PutHttp, "PostHttp": PostHttp, "DeleteHttp": DeleteHttp, "PatchHttp": PatchHttp, "Touch": Touch, "Start": Start, "Stop": Stop, "Restart": Restart, "Reload": Reload, "StopSleepStart": StopSleepStart, "Suspend": Suspend, "Pause": Pause, "Resumed": Resumed, "TryRestart3Times": TryRestart3Times, "TryRestart5Times": TryRestart5Times, "TryStart3Times": TryStart3Times, "TryStart5Times": TryStart5Times, "TryStop3Times": TryStop3Times, "TryStop5Times": TryStop5Times, "InheritOnly": InheritOnly, "InheritPlusOverride": InheritPlusOverride, "DynamicAction": DynamicAction, "Overwrite": Overwrite, "Override": Override, "Enforce": Enforce, } BasicEnumImpl = enumimpl.New.BasicByte.UsingTypeSlice( reflectinternal.TypeName(Invalid), Ranges[:]) )
Functions ¶
func RangesInvalidErr ¶ added in v0.5.0
func RangesInvalidErr() error
func RangesNotMeet ¶
func RangesNotMeetError ¶
func RangesNotSupportedFor ¶ added in v0.5.6
func RangesOnlySupportedFor ¶ added in v0.7.5
func RangesString ¶ added in v0.5.6
func RangesStringDefaultJoiner ¶ added in v0.5.6
func RangesStrings ¶ added in v0.5.6
Types ¶
type Request ¶
type Request byte
const ( Invalid Request = iota Create Read Update Delete Drop CreateOrUpdate ExistCheck SkipOnExist CreateOrSkipOnExist UpdateOrSkipOnNonExist DeleteOrSkipOnNonExist DropOrSkipOnNonExist UpdateOnExist DropOnExist DropCreate Append AppendByCompare AppendByCompareWhereCommentFound AppendLinesByCompare AppendLines CreateOrAppend Prepend CreateOrPrepend PrependLines Rename Change Merge MergeLines GetHttp PutHttp PostHttp DeleteHttp PatchHttp Touch Start Stop Restart Reload StopSleepStart Suspend Pause Resumed TryRestart3Times TryRestart5Times TryStart3Times TryStart5Times TryStop3Times TryStop5Times InheritOnly InheritPlusOverride DynamicAction Overwrite Override Enforce )
func RangesInBetween ¶
func (Request) AllNameValues ¶ added in v1.2.16
func (Request) AsActionTyper ¶ added in v1.2.4
func (it Request) AsActionTyper() enuminf.ActionTyper
func (Request) AsBasicByteEnumContractsBinder ¶
func (it Request) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
func (Request) AsBasicEnumContractsBinder ¶
func (it Request) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
func (Request) AsCrudTyper ¶ added in v1.2.1
func (Request) AsHttpMethodTyper ¶ added in v1.2.4
func (it Request) AsHttpMethodTyper() enuminf.HttpMethodTyper
func (*Request) AsJsonMarshaller ¶
func (it *Request) AsJsonMarshaller() corejson.JsonMarshaller
func (Request) AsOverwriteOrRideOrEnforcer ¶ added in v1.2.4
func (it Request) AsOverwriteOrRideOrEnforcer() enuminf.OverwriteOrRideOrEnforcer
func (Request) CurrentNotImpl ¶
func (Request) GetInBetweenStatus ¶
func (it Request) GetInBetweenStatus(start, end Request) *ResultStatus
GetInBetweenStatus edge case including the start, end
func (Request) GetStatusAnyOf ¶
func (it Request) GetStatusAnyOf(reqs ...Request) *ResultStatus
GetStatusAnyOf returns status success true if current one is any of the given values.
func (Request) IntegerEnumRanges ¶ added in v1.2.16
func (Request) IsAnyAction ¶ added in v1.2.4
func (Request) IsAnyApplyOnExist ¶ added in v0.7.6
IsAnyApplyOnExist => IsUpdateOnExist, IsDropOnExist,
func (Request) IsAnyCreate ¶
IsAnyCreate
returns true if IsCreate, IsCreateOrUpdate, IsCreateOrAppend, IsCreateOrPrepend, IsCreateOrSkipOnExist, IsDropCreate
func (Request) IsAnyDrop ¶
IsAnyDrop
returns true if IsDrop, IsDelete, IsDeleteOrSkipOnNonExist, IsDropOnExist, IsDropCreate, IsDropOrSkipOnNonExist
func (*Request) IsAnyEnumsEqual ¶ added in v1.1.9
func (it *Request) IsAnyEnumsEqual(enums ...enuminf.BasicEnumer) bool
func (Request) IsAnyHttp ¶ added in v1.2.4
IsAnyHttp
returns true if IsGetHttp, IsPostHttp, IsPutHttp, IsDeleteHttp, IsPatchHttp
func (Request) IsAnyHttpMethod ¶ added in v1.2.4
func (Request) IsAnyNamesOf ¶ added in v1.2.3
func (Request) IsAnyOfReqs ¶
IsAnyOfReqs returns true if current one is matching with any of it
func (Request) IsAnySkipOnExist ¶ added in v0.7.6
IsAnySkipOnExist => IsSkipOnExist, IsCreateOrSkipOnExist, IsUpdateOrSkipOnNonExist, IsDeleteOrSkipOnNonExist, IsDeleteOrSkipOnNonExist, IsDropOrSkipOnNonExist
func (Request) IsAnyValuesEqual ¶ added in v1.1.9
func (Request) IsAppendByCompare ¶
func (Request) IsAppendByCompareWhereCommentFound ¶
func (Request) IsAppendLines ¶
func (Request) IsAppendLinesByCompare ¶
func (Request) IsByteValueEqual ¶ added in v1.2.1
func (Request) IsCreateLogically ¶ added in v1.2.1
func (Request) IsCreateOrAppend ¶
func (Request) IsCreateOrPrepend ¶
func (Request) IsCreateOrSkipOnExist ¶
func (Request) IsCreateOrUpdate ¶
func (Request) IsCreateOrUpdateLogically ¶ added in v1.2.1
func (Request) IsCrudOnlyLogically ¶ added in v1.2.1
func (Request) IsCrudSkip ¶
IsCrudSkip
returns true if IsCreateOrSkipOnExist, IsUpdateOrSkipOnNonExist, IsDeleteOrSkipOnNonExist, IsDropOnExist, IsDropOrSkipOnNonExist,
func (Request) IsDeleteHttp ¶
func (Request) IsDeleteOrSkipOnNonExist ¶
func (Request) IsDropCreate ¶
func (Request) IsDropLogically ¶ added in v1.2.1
func (Request) IsDropOnExist ¶
func (Request) IsDropOrSkipOnNonExist ¶
func (Request) IsDropSafe ¶
IsDropSafe
returns true if IsDeleteOrSkipOnNonExist, IsDropOnExist, IsDropOrSkipOnNonExist
func (Request) IsEditOrUpdateLogically ¶ added in v1.2.1
func (Request) IsEnumEqual ¶ added in v1.1.9
func (it Request) IsEnumEqual(enum enuminf.BasicEnumer) bool
func (Request) IsExistCheck ¶
func (Request) IsInBetween ¶
IsInBetween edge case including the start, end
func (Request) IsInheritOnly ¶
func (Request) IsInheritPlusOverride ¶
func (Request) IsMergeLines ¶
func (Request) IsNameEqual ¶ added in v1.1.9
func (Request) IsNotAnyAction ¶ added in v1.2.4
func (Request) IsNotAnyOfReqs ¶ added in v0.7.5
IsNotAnyOfReqs returns true only if none of these matches
func (Request) IsNotCrudOnlyLogically ¶ added in v1.2.1
func (Request) IsNotHttpMethod ¶ added in v1.2.4
func (Request) IsNotOverrideOrOverwriteOrEnforce ¶ added in v1.2.4
func (Request) IsOnExistCheckLogically ¶ added in v1.2.1
func (Request) IsOnExistOrSkipOnNonExistLogically ¶ added in v1.2.1
func (Request) IsOverride ¶ added in v1.2.4
func (Request) IsOverrideOrOverwriteOrEnforce ¶ added in v1.2.4
func (Request) IsOverwrite ¶ added in v1.2.4
func (Request) IsPatchHttp ¶
func (Request) IsPostHttp ¶
func (Request) IsPrependLines ¶
func (Request) IsReadOrEditLogically ¶ added in v1.2.1
func (Request) IsReadOrUpdateLogically ¶ added in v1.2.1
func (Request) IsRestartOrReload ¶ added in v0.5.6
IsRestartOrReload
Request. IsRestart() || Request. IsReload()