corepayload

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: 20 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Empty = emptyCreator{}
	New   = newCreator{}
)

Functions

This section is empty.

Types

type Attributes

type Attributes struct {
	BasicErrWrapper  errcoreinf.BasicErrWrapper `json:"BasicErrWrapper,omitempty"`
	AuthInfo         *AuthInfo                  `json:"AuthInfo,omitempty"`
	PagingInfo       *PagingInfo                `json:"PagingInfo,omitempty"`
	KeyValuePairs    *corestr.Hashmap           `json:"KeyValuePairs,omitempty"`
	AnyKeyValuePairs *coredynamic.MapAnyItems   `json:"AnyKeyValuePairs,omitempty"`
	FromTo           *coreinstruction.FromTo    `json:"FromTo,omitempty"` // Invoker and Receiver Details
	DynamicPayloads  []byte                     `json:"DynamicPayloads,omitempty"`
}

func (*Attributes) AddNewAnyKeyValueOnly added in v1.3.13

func (it *Attributes) AddNewAnyKeyValueOnly(
	key string, value interface{},
) (isAdded bool)

func (*Attributes) AddNewStringKeyValueOnly added in v1.3.13

func (it *Attributes) AddNewStringKeyValueOnly(key, value string) (isAdded bool)

func (*Attributes) AddOrUpdateAnyItem

func (it *Attributes) AddOrUpdateAnyItem(
	key string,
	anyItem interface{},
) (isNewlyAdded bool)

func (*Attributes) AddOrUpdateString

func (it *Attributes) AddOrUpdateString(
	key, value string,
) (isNewlyAdded bool)

func (*Attributes) AnyKeyReflectSetTo added in v1.3.13

func (it *Attributes) AnyKeyReflectSetTo(
	key string,
	toPtr interface{},
) error

func (*Attributes) AnyKeyValMap added in v1.3.8

func (it *Attributes) AnyKeyValMap() map[string]interface{}

func (*Attributes) AnyKeyValuePairsLength

func (it *Attributes) AnyKeyValuePairsLength() int

func (Attributes) AsAttributesBinder added in v1.3.8

func (it Attributes) AsAttributesBinder() payloadinf.AttributesBinder

func (Attributes) AsJsonContractsBinder

func (it Attributes) AsJsonContractsBinder() corejson.JsonContractsBinder

func (*Attributes) AuthType added in v1.1.6

func (it *Attributes) AuthType() string

func (*Attributes) BasicErrorDeserializedTo added in v1.3.13

func (it *Attributes) BasicErrorDeserializedTo(
	toPtr interface{},
) error

BasicErrorDeserializedTo

Expectation Attributes.ErrorMessage needs to be in json format and toPtr should match reflection types

func (*Attributes) Capacity

func (it *Attributes) Capacity() int

func (*Attributes) Clear

func (it *Attributes) Clear()

func (*Attributes) Clone added in v1.1.3

func (it *Attributes) Clone(
	isDeepClone bool,
) (Attributes, error)

func (*Attributes) ClonePtr added in v1.1.3

func (it *Attributes) ClonePtr(
	isDeepClone bool,
) (*Attributes, error)

func (*Attributes) CompiledError added in v1.3.8

func (it *Attributes) CompiledError() error

func (*Attributes) Count

func (it *Attributes) Count() int

func (*Attributes) DeserializeDynamicPayloads

func (it *Attributes) DeserializeDynamicPayloads(
	toPtr interface{},
) error

func (*Attributes) DeserializeDynamicPayloadsMust

func (it *Attributes) DeserializeDynamicPayloadsMust(
	toPtr interface{},
)

func (*Attributes) DeserializeDynamicPayloadsToAttributes

func (it *Attributes) DeserializeDynamicPayloadsToAttributes() (
	newAttr *Attributes, err error,
)

func (*Attributes) DeserializeDynamicPayloadsToPayloadWrapper

func (it *Attributes) DeserializeDynamicPayloadsToPayloadWrapper() (
	payloadWrapper *PayloadWrapper, err error,
)

func (*Attributes) DeserializeDynamicPayloadsToPayloadWrappersCollection added in v1.1.4

func (it *Attributes) DeserializeDynamicPayloadsToPayloadWrappersCollection() (
	payloadsCollection *PayloadsCollection, err error,
)

func (*Attributes) Dispose

func (it *Attributes) Dispose()

func (*Attributes) DynamicBytesLength

func (it *Attributes) DynamicBytesLength() int

func (*Attributes) DynamicPayloadsDeserialize

func (it *Attributes) DynamicPayloadsDeserialize(
	unmarshallingPointer interface{},
) error

func (*Attributes) DynamicPayloadsDeserializeMust

func (it *Attributes) DynamicPayloadsDeserializeMust(
	unmarshallingPointer interface{},
)

func (*Attributes) Error

func (it *Attributes) Error() error

func (*Attributes) GetAnyKeyValue added in v1.3.13

func (it *Attributes) GetAnyKeyValue(
	key string,
) (valueAny interface{}, isFound bool)

func (*Attributes) GetStringKeyValue added in v1.3.13

func (it *Attributes) GetStringKeyValue(
	key string,
) (value string, isFound bool)

func (*Attributes) HandleErr

func (it *Attributes) HandleErr()

func (*Attributes) HandleError added in v1.3.13

func (it *Attributes) HandleError()

func (*Attributes) HasAnyItem

func (it *Attributes) HasAnyItem() bool

func (*Attributes) HasAnyKey added in v1.3.13

func (it *Attributes) HasAnyKey(key string) bool

func (*Attributes) HasAnyKeyValuePairs

func (it *Attributes) HasAnyKeyValuePairs() bool

func (*Attributes) HasAuthInfo added in v1.1.6

func (it *Attributes) HasAuthInfo() bool

func (*Attributes) HasDynamicPayloads

func (it *Attributes) HasDynamicPayloads() bool

func (*Attributes) HasError

func (it *Attributes) HasError() bool

func (*Attributes) HasFromTo added in v1.3.13

func (it *Attributes) HasFromTo() bool

func (*Attributes) HasIssuesOrEmpty added in v1.3.13

func (it *Attributes) HasIssuesOrEmpty() bool

func (*Attributes) HasItems

func (it *Attributes) HasItems() bool

func (*Attributes) HasKeyValuePairs

func (it *Attributes) HasKeyValuePairs() bool

func (*Attributes) HasPagingInfo

func (it *Attributes) HasPagingInfo() bool

func (*Attributes) HasSafeItems added in v1.3.13

func (it *Attributes) HasSafeItems() bool

func (*Attributes) HasSessionInfo added in v1.1.6

func (it *Attributes) HasSessionInfo() bool

func (*Attributes) HasStringKey added in v1.3.13

func (it *Attributes) HasStringKey(key string) bool

func (*Attributes) HasStringKeyValuePairs

func (it *Attributes) HasStringKeyValuePairs() bool

func (*Attributes) HasUserInfo added in v1.1.6

func (it *Attributes) HasUserInfo() bool

func (*Attributes) Hashmap added in v1.3.8

func (it *Attributes) Hashmap() map[string]string

func (*Attributes) IsAnyKeyValuePairsEmpty added in v1.1.6

func (it *Attributes) IsAnyKeyValuePairsEmpty() bool

func (*Attributes) IsAuthInfoEmpty added in v1.1.6

func (it *Attributes) IsAuthInfoEmpty() bool

func (*Attributes) IsEmpty

func (it *Attributes) IsEmpty() bool

func (*Attributes) IsEmptyError

func (it *Attributes) IsEmptyError() bool

func (*Attributes) IsEqual

func (it *Attributes) IsEqual(attributes *Attributes) bool

func (*Attributes) IsErrorDifferent added in v1.3.13

func (it *Attributes) IsErrorDifferent(basicErr errcoreinf.BasicErrWrapper) bool

func (*Attributes) IsErrorEqual added in v1.3.13

func (it *Attributes) IsErrorEqual(basicErr errcoreinf.BasicErrWrapper) bool

func (*Attributes) IsInvalid

func (it *Attributes) IsInvalid() bool

func (*Attributes) IsKeyValuePairsEmpty added in v1.1.6

func (it *Attributes) IsKeyValuePairsEmpty() bool

func (*Attributes) IsNull added in v1.3.13

func (it *Attributes) IsNull() bool

func (*Attributes) IsPagingInfoEmpty added in v1.1.6

func (it *Attributes) IsPagingInfoEmpty() bool

func (*Attributes) IsSafeValid added in v1.3.8

func (it *Attributes) IsSafeValid() bool

func (*Attributes) IsSessionInfoEmpty added in v1.1.6

func (it *Attributes) IsSessionInfoEmpty() bool

func (*Attributes) IsUserInfoEmpty added in v1.1.6

func (it *Attributes) IsUserInfoEmpty() bool

func (*Attributes) IsValid

func (it *Attributes) IsValid() bool

func (*Attributes) Json

func (it *Attributes) Json() corejson.Result

func (*Attributes) JsonModel

func (it *Attributes) JsonModel() *Attributes

func (*Attributes) JsonModelAny

func (it *Attributes) JsonModelAny() interface{}

func (*Attributes) JsonParseSelfInject

func (it *Attributes) JsonParseSelfInject(
	jsonResult *corejson.Result,
) error

func (*Attributes) JsonPtr

func (it *Attributes) JsonPtr() *corejson.Result

func (*Attributes) JsonString

func (it *Attributes) JsonString() string

func (*Attributes) JsonStringMust

func (it *Attributes) JsonStringMust() string

func (*Attributes) Length

func (it *Attributes) Length() int

func (*Attributes) MustBeEmptyError

func (it *Attributes) MustBeEmptyError()

func (Attributes) NonPtr added in v1.1.3

func (it Attributes) NonPtr() Attributes

func (*Attributes) ParseInjectUsingJson

func (it *Attributes) ParseInjectUsingJson(
	jsonResult *corejson.Result,
) (*Attributes, error)

func (*Attributes) ParseInjectUsingJsonMust

func (it *Attributes) ParseInjectUsingJsonMust(
	jsonResult *corejson.Result,
) *Attributes

ParseInjectUsingJsonMust Panic if error

func (*Attributes) Payloads added in v1.3.8

func (it *Attributes) Payloads() []byte

func (*Attributes) PayloadsJsonResult added in v1.3.34

func (it *Attributes) PayloadsJsonResult() *corejson.Result

func (*Attributes) PayloadsPrettyString added in v1.3.34

func (it *Attributes) PayloadsPrettyString() string

func (*Attributes) PayloadsString added in v1.3.34

func (it *Attributes) PayloadsString() string

func (*Attributes) PrettyJsonString added in v1.1.3

func (it *Attributes) PrettyJsonString() string

func (*Attributes) ReflectSetTo added in v1.3.13

func (it *Attributes) ReflectSetTo(
	toPointer interface{},
) error

func (*Attributes) ResourceName added in v1.1.6

func (it *Attributes) ResourceName() string

func (*Attributes) SessionInfo added in v1.1.6

func (it *Attributes) SessionInfo() *SessionInfo

func (*Attributes) SessionUser added in v1.1.6

func (it *Attributes) SessionUser() *User

func (*Attributes) SetAuthInfo added in v1.3.34

func (it *Attributes) SetAuthInfo(authInfo *AuthInfo) *Attributes

SetAuthInfo

On nil create new attributes

func (*Attributes) SetBasicErr added in v1.3.13

func (it *Attributes) SetBasicErr(
	basicErr errcoreinf.BasicErrWrapper,
) payloadinf.AttributesBinder

SetBasicErr

on nil creates and attach new error and returns the attributes

func (*Attributes) SetUserInfo added in v1.3.34

func (it *Attributes) SetUserInfo(
	userInfo *UserInfo,
) *Attributes

func (*Attributes) String added in v1.1.3

func (it *Attributes) String() string

func (*Attributes) StringKeyValuePairsLength

func (it *Attributes) StringKeyValuePairsLength() int

func (*Attributes) SystemUser added in v1.1.6

func (it *Attributes) SystemUser() *User

func (*Attributes) VirtualUser added in v1.1.6

func (it *Attributes) VirtualUser() *User

type AuthInfo added in v1.1.6

type AuthInfo struct {
	Identifier   string       `json:"Identifier,omitempty"`
	ActionType   string       `json:"ActionType,omitempty"`
	ResourceName string       `json:"ResourceName,omitempty"` // can be url or any name
	SessionInfo  *SessionInfo `json:"SessionInfo,omitempty"`
	UserInfo     *UserInfo    `json:"UserInfo,omitempty"`
}

func (*AuthInfo) Clone added in v1.1.6

func (it *AuthInfo) Clone() AuthInfo

func (*AuthInfo) ClonePtr added in v1.1.6

func (it *AuthInfo) ClonePtr() *AuthInfo

func (*AuthInfo) HasActionType added in v1.1.6

func (it *AuthInfo) HasActionType() bool

func (*AuthInfo) HasAnyItem added in v1.1.6

func (it *AuthInfo) HasAnyItem() bool

func (*AuthInfo) HasResourceName added in v1.1.6

func (it *AuthInfo) HasResourceName() bool

func (*AuthInfo) HasSessionInfo added in v1.1.6

func (it *AuthInfo) HasSessionInfo() bool

func (*AuthInfo) HasUserInfo added in v1.1.6

func (it *AuthInfo) HasUserInfo() bool

func (*AuthInfo) IdentifierInteger added in v1.1.6

func (it *AuthInfo) IdentifierInteger() int

IdentifierInteger

Invalid value returns constants.InvalidValue

func (*AuthInfo) IdentifierUnsignedInteger added in v1.1.6

func (it *AuthInfo) IdentifierUnsignedInteger() uint

IdentifierUnsignedInteger

Invalid value returns constants.Zero

func (*AuthInfo) IsActionTypeEmpty added in v1.1.6

func (it *AuthInfo) IsActionTypeEmpty() bool

func (*AuthInfo) IsEmpty added in v1.1.6

func (it *AuthInfo) IsEmpty() bool

func (*AuthInfo) IsResourceNameEmpty added in v1.1.6

func (it *AuthInfo) IsResourceNameEmpty() bool

func (*AuthInfo) IsSessionInfoEmpty added in v1.1.6

func (it *AuthInfo) IsSessionInfoEmpty() bool

func (*AuthInfo) IsUserInfoEmpty added in v1.1.6

func (it *AuthInfo) IsUserInfoEmpty() bool

func (*AuthInfo) IsValid added in v1.1.6

func (it *AuthInfo) IsValid() bool

func (*AuthInfo) Json added in v1.1.6

func (it *AuthInfo) Json() corejson.Result

func (*AuthInfo) JsonPtr added in v1.1.6

func (it *AuthInfo) JsonPtr() *corejson.Result

func (*AuthInfo) PrettyJsonString added in v1.1.6

func (it *AuthInfo) PrettyJsonString() string

func (AuthInfo) Ptr added in v1.1.6

func (it AuthInfo) Ptr() *AuthInfo

func (*AuthInfo) SetActionType added in v1.3.34

func (it *AuthInfo) SetActionType(
	actionType string,
) *AuthInfo

func (*AuthInfo) SetIdentifier added in v1.3.34

func (it *AuthInfo) SetIdentifier(
	identifier string,
) *AuthInfo

func (*AuthInfo) SetResourceName added in v1.3.34

func (it *AuthInfo) SetResourceName(
	resourceName string,
) *AuthInfo

func (*AuthInfo) SetSessionInfo added in v1.3.34

func (it *AuthInfo) SetSessionInfo(
	sessionInfo *SessionInfo,
) *AuthInfo

func (*AuthInfo) SetSystemUser added in v1.3.34

func (it *AuthInfo) SetSystemUser(
	systemUser *User,
) *AuthInfo

SetSystemUser

on null creates new

func (*AuthInfo) SetUser added in v1.3.34

func (it *AuthInfo) SetUser(
	user *User,
) *AuthInfo

SetUser

on null creates new

func (*AuthInfo) SetUserInfo added in v1.3.34

func (it *AuthInfo) SetUserInfo(
	userInfo *UserInfo,
) *AuthInfo

SetUserInfo

on null creates new

func (*AuthInfo) SetUserSystemUser added in v1.3.34

func (it *AuthInfo) SetUserSystemUser(
	user, systemUser *User,
) *AuthInfo

func (*AuthInfo) String added in v1.1.6

func (it *AuthInfo) String() string

type BytesCreateInstruction added in v1.1.1

type BytesCreateInstruction struct {
	Name, Identifier string
	TaskTypeName     string
	EntityType       string // for any type no need to entity type it will be collected by reflection.
	CategoryName     string
	HasManyRecords   bool
	Payloads         []byte
	Attributes       *Attributes
}

type BytesCreateInstructionStringer added in v1.1.6

type BytesCreateInstructionStringer struct {
	Name, Identifier string
	TaskTypeName     fmt.Stringer
	EntityType       string // for any type no need to entity type it will be collected by reflection.
	CategoryName     fmt.Stringer
	HasManyRecords   bool
	Payloads         []byte
	Attributes       *Attributes
}

type FilterFunc added in v1.1.4

type FilterFunc func(payloadWrapper *PayloadWrapper) (isTake, isBreak bool)

type Formatter added in v1.1.4

type Formatter func(payloadWrapper *PayloadWrapper) (out string)

type PagingInfo

type PagingInfo struct {
	CurrentPageIndex                     int // -- 1 based index
	TotalPages, PerPageItems, TotalItems int
}

func (PagingInfo) Clone added in v1.1.3

func (it PagingInfo) Clone() PagingInfo

func (*PagingInfo) ClonePtr added in v1.1.4

func (it *PagingInfo) ClonePtr() *PagingInfo

func (*PagingInfo) HasCurrentPageIndex added in v1.1.3

func (it *PagingInfo) HasCurrentPageIndex() bool

func (*PagingInfo) HasPerPageItems added in v1.1.3

func (it *PagingInfo) HasPerPageItems() bool

func (*PagingInfo) HasTotalItems added in v1.1.3

func (it *PagingInfo) HasTotalItems() bool

func (*PagingInfo) HasTotalPages added in v1.1.3

func (it *PagingInfo) HasTotalPages() bool

func (*PagingInfo) IsEmpty added in v1.1.6

func (it *PagingInfo) IsEmpty() bool

func (*PagingInfo) IsEqual

func (it *PagingInfo) IsEqual(right *PagingInfo) bool

func (*PagingInfo) IsInvalidCurrentPageIndex added in v1.1.4

func (it *PagingInfo) IsInvalidCurrentPageIndex() bool

func (*PagingInfo) IsInvalidPerPageItems added in v1.1.4

func (it *PagingInfo) IsInvalidPerPageItems() bool

func (*PagingInfo) IsInvalidTotalItems added in v1.1.4

func (it *PagingInfo) IsInvalidTotalItems() bool

func (*PagingInfo) IsInvalidTotalPages added in v1.1.4

func (it *PagingInfo) IsInvalidTotalPages() bool

type PayloadCreateInstruction

type PayloadCreateInstruction struct {
	Name, Identifier string
	TaskTypeName     string
	EntityType       string // for any type no need to entity type it will be collected by reflection.
	CategoryName     string
	HasManyRecords   bool
	Payloads         interface{} // for any type no need to entity type it will be collected by reflection.
	Attributes       *Attributes
}

type PayloadCreateInstructionTypeStringer added in v1.1.6

type PayloadCreateInstructionTypeStringer struct {
	Name, Identifier     string
	TaskTypeNameStringer fmt.Stringer
	CategoryNameStringer fmt.Stringer
	HasManyRecords       bool
	Payloads             interface{} // for any type no need to entity type it will be collected by reflection.
	Attributes           *Attributes
}

func (PayloadCreateInstructionTypeStringer) PayloadCreateInstruction added in v1.1.6

func (it PayloadCreateInstructionTypeStringer) PayloadCreateInstruction() *PayloadCreateInstruction

type PayloadTypeExpander added in v1.1.6

type PayloadTypeExpander struct {
	CategoryStringer fmt.Stringer
	TaskTypeStringer fmt.Stringer
}

type PayloadWrapper

type PayloadWrapper struct {
	Name           string      `json:"Name,omitempty"`
	Identifier     string      `json:"Identifier,omitempty"`
	TaskTypeName   string      `json:"TaskTypeName,omitempty"`
	EntityType     string      `json:"EntityType,omitempty"`
	CategoryName   string      `json:"CategoryName,omitempty"`
	HasManyRecords bool        `json:"HasManyRecords,omitempty"`
	Payloads       []byte      `json:"Payloads,omitempty"`
	Attributes     *Attributes `json:"AnyAttributes,omitempty"`
}

func (*PayloadWrapper) All added in v1.3.13

func (it *PayloadWrapper) All() (id, name, entity, category string, dynamicPayloads []byte)

func (*PayloadWrapper) AllSafe added in v1.3.13

func (it *PayloadWrapper) AllSafe() (id, name, entity, category string, dynamicPayloads []byte)

func (*PayloadWrapper) AnyAttributes added in v1.1.9

func (it *PayloadWrapper) AnyAttributes() interface{}

func (*PayloadWrapper) AsJsonContractsBinder

func (it *PayloadWrapper) AsJsonContractsBinder() corejson.JsonContractsBinder

func (PayloadWrapper) AsJsonMarshaller added in v1.3.34

func (it PayloadWrapper) AsJsonMarshaller() corejson.JsonMarshaller

func (PayloadWrapper) AsPayloadsBinder added in v1.3.13

func (it PayloadWrapper) AsPayloadsBinder() payloadinf.PayloadsBinder

func (PayloadWrapper) AsStandardTaskEntityDefinerContractsBinder added in v1.1.9

func (it PayloadWrapper) AsStandardTaskEntityDefinerContractsBinder() entityinf.StandardTaskEntityDefinerContractsBinder

func (*PayloadWrapper) AttrAsBinder added in v1.3.13

func (it *PayloadWrapper) AttrAsBinder() payloadinf.AttributesBinder

func (*PayloadWrapper) BasicError added in v1.3.13

func (it *PayloadWrapper) BasicError() errcoreinf.BasicErrWrapper

func (*PayloadWrapper) BytesConverter

func (it *PayloadWrapper) BytesConverter() *coredynamic.BytesConverter

func (*PayloadWrapper) Clear

func (it *PayloadWrapper) Clear()

func (*PayloadWrapper) Clone added in v1.1.3

func (it *PayloadWrapper) Clone(
	isDeepClone bool,
) (PayloadWrapper, error)

func (*PayloadWrapper) ClonePtr added in v1.1.3

func (it *PayloadWrapper) ClonePtr(
	isDeepClone bool,
) (*PayloadWrapper, error)

func (*PayloadWrapper) Count

func (it *PayloadWrapper) Count() int

func (*PayloadWrapper) Deserialize

func (it *PayloadWrapper) Deserialize(
	unmarshallingPointer interface{},
) error

func (*PayloadWrapper) DeserializeMust

func (it *PayloadWrapper) DeserializeMust(
	unmarshallingPointer interface{},
)

func (*PayloadWrapper) DeserializePayloadsToPayloadWrapper

func (it *PayloadWrapper) DeserializePayloadsToPayloadWrapper() (
	payloadWrapper *PayloadWrapper, err error,
)

func (*PayloadWrapper) DeserializePayloadsToPayloadWrapperMust

func (it *PayloadWrapper) DeserializePayloadsToPayloadWrapperMust() (
	payloadWrapper *PayloadWrapper,
)

func (*PayloadWrapper) DeserializePayloadsToPayloadsCollection added in v1.1.4

func (it *PayloadWrapper) DeserializePayloadsToPayloadsCollection() (
	payloadsCollection *PayloadsCollection, err error,
)

func (*PayloadWrapper) Dispose

func (it *PayloadWrapper) Dispose()

func (*PayloadWrapper) DynamicPayloads added in v1.3.13

func (it *PayloadWrapper) DynamicPayloads() []byte

func (*PayloadWrapper) Error added in v1.1.9

func (it *PayloadWrapper) Error() error

func (*PayloadWrapper) HandleError added in v1.3.13

func (it *PayloadWrapper) HandleError()

func (*PayloadWrapper) HasAnyItem

func (it *PayloadWrapper) HasAnyItem() bool

func (*PayloadWrapper) HasAnyNil

func (it *PayloadWrapper) HasAnyNil() bool

func (*PayloadWrapper) HasAttributes

func (it *PayloadWrapper) HasAttributes() bool

func (*PayloadWrapper) HasError

func (it *PayloadWrapper) HasError() bool

func (*PayloadWrapper) HasIssuesOrEmpty added in v1.1.4

func (it *PayloadWrapper) HasIssuesOrEmpty() bool

func (*PayloadWrapper) HasItems

func (it *PayloadWrapper) HasItems() bool

func (*PayloadWrapper) HasSafeItems added in v1.3.13

func (it *PayloadWrapper) HasSafeItems() bool

func (*PayloadWrapper) HasSingleRecord

func (it *PayloadWrapper) HasSingleRecord() bool

func (*PayloadWrapper) IdInteger added in v1.1.9

func (it *PayloadWrapper) IdInteger() int

func (*PayloadWrapper) IdString added in v1.1.9

func (it *PayloadWrapper) IdString() string

func (*PayloadWrapper) IdentifierInteger

func (it *PayloadWrapper) IdentifierInteger() int

IdentifierInteger

Invalid value returns constants.InvalidValue

func (*PayloadWrapper) IdentifierUnsignedInteger

func (it *PayloadWrapper) IdentifierUnsignedInteger() uint

IdentifierUnsignedInteger

Invalid value returns constants.Zero

func (*PayloadWrapper) InitializeAttributesOnNull added in v1.3.13

func (it *PayloadWrapper) InitializeAttributesOnNull() payloadinf.AttributesBinder

func (*PayloadWrapper) IsCategory

func (it *PayloadWrapper) IsCategory(category string) bool

func (*PayloadWrapper) IsCategoryNamer added in v1.3.34

func (it *PayloadWrapper) IsCategoryNamer(categoryNamer enuminf.Namer) bool

func (*PayloadWrapper) IsEmpty

func (it *PayloadWrapper) IsEmpty() bool

func (*PayloadWrapper) IsEmptyAttributes

func (it *PayloadWrapper) IsEmptyAttributes() bool

func (*PayloadWrapper) IsEmptyError

func (it *PayloadWrapper) IsEmptyError() bool

func (*PayloadWrapper) IsEntityType

func (it *PayloadWrapper) IsEntityType(entityType string) bool

func (*PayloadWrapper) IsEntityTypeNamer added in v1.3.34

func (it *PayloadWrapper) IsEntityTypeNamer(entityTyper enuminf.Namer) bool

func (*PayloadWrapper) IsEqual

func (it *PayloadWrapper) IsEqual(right *PayloadWrapper) bool

func (*PayloadWrapper) IsIdentifier

func (it *PayloadWrapper) IsIdentifier(id string) bool

func (*PayloadWrapper) IsName

func (it *PayloadWrapper) IsName(name string) bool

func (*PayloadWrapper) IsNull

func (it *PayloadWrapper) IsNull() bool

func (*PayloadWrapper) IsPayloadsEqual

func (it *PayloadWrapper) IsPayloadsEqual(nextPayloads []byte) bool

func (*PayloadWrapper) IsStandardTaskEntityEqual added in v1.1.9

func (it *PayloadWrapper) IsStandardTaskEntityEqual(
	entity entityinf.StandardTaskEntityDefiner,
) bool

func (*PayloadWrapper) IsTaskTypeName

func (it *PayloadWrapper) IsTaskTypeName(taskType string) bool

func (*PayloadWrapper) Json

func (it *PayloadWrapper) Json() corejson.Result

func (*PayloadWrapper) JsonModel

func (it *PayloadWrapper) JsonModel() PayloadWrapper

func (*PayloadWrapper) JsonModelAny

func (it *PayloadWrapper) JsonModelAny() interface{}

func (*PayloadWrapper) JsonParseSelfInject

func (it *PayloadWrapper) JsonParseSelfInject(
	jsonResult *corejson.Result,
) error

func (*PayloadWrapper) JsonPtr

func (it *PayloadWrapper) JsonPtr() *corejson.Result

func (*PayloadWrapper) JsonString

func (it *PayloadWrapper) JsonString() string

func (*PayloadWrapper) JsonStringMust

func (it *PayloadWrapper) JsonStringMust() string

func (*PayloadWrapper) Length

func (it *PayloadWrapper) Length() int

func (*PayloadWrapper) MarshalJSON added in v1.3.34

func (it *PayloadWrapper) MarshalJSON() (jsonBytes []byte, parsedErr error)

func (*PayloadWrapper) NonPtr added in v1.1.3

func (it *PayloadWrapper) NonPtr() PayloadWrapper

func (*PayloadWrapper) ParseInjectUsingJson

func (it *PayloadWrapper) ParseInjectUsingJson(
	jsonResult *corejson.Result,
) (*PayloadWrapper, error)

func (*PayloadWrapper) ParseInjectUsingJsonMust

func (it *PayloadWrapper) ParseInjectUsingJsonMust(
	jsonResult *corejson.Result,
) *PayloadWrapper

ParseInjectUsingJsonMust Panic if error

func (*PayloadWrapper) PayloadCategory added in v1.3.13

func (it *PayloadWrapper) PayloadCategory() string

func (*PayloadWrapper) PayloadDeserialize

func (it *PayloadWrapper) PayloadDeserialize(
	unmarshallingPointer interface{},
) error

func (*PayloadWrapper) PayloadDeserializeMust

func (it *PayloadWrapper) PayloadDeserializeMust(
	unmarshallingPointer interface{},
)

func (*PayloadWrapper) PayloadDeserializeToPayloadBinder added in v1.3.13

func (it *PayloadWrapper) PayloadDeserializeToPayloadBinder() (payloadinf.PayloadsBinder, error)

func (*PayloadWrapper) PayloadDynamic added in v1.3.13

func (it *PayloadWrapper) PayloadDynamic() []byte

func (*PayloadWrapper) PayloadEntityType added in v1.3.13

func (it *PayloadWrapper) PayloadEntityType() string

func (*PayloadWrapper) PayloadName added in v1.3.13

func (it *PayloadWrapper) PayloadName() string

func (*PayloadWrapper) PayloadProperties added in v1.3.13

func (it *PayloadWrapper) PayloadProperties() payloadinf.PayloadPropertiesDefiner

func (*PayloadWrapper) PayloadTaskType added in v1.3.13

func (it *PayloadWrapper) PayloadTaskType() string

func (*PayloadWrapper) PayloadsJsonResult added in v1.3.34

func (it *PayloadWrapper) PayloadsJsonResult() *corejson.Result

func (*PayloadWrapper) PayloadsPrettyString added in v1.3.34

func (it *PayloadWrapper) PayloadsPrettyString() string

func (*PayloadWrapper) PayloadsString added in v1.3.34

func (it *PayloadWrapper) PayloadsString() string

func (PayloadWrapper) PrettyJsonString added in v1.1.3

func (it PayloadWrapper) PrettyJsonString() string

func (*PayloadWrapper) ReCreateUsingJsonBytes added in v1.3.34

func (it *PayloadWrapper) ReCreateUsingJsonBytes(
	rawJsonBytes []byte,
) (payloadWrapper *PayloadWrapper, parsingErr error)

func (*PayloadWrapper) ReCreateUsingJsonResult added in v1.3.34

func (it *PayloadWrapper) ReCreateUsingJsonResult(
	jsonResult *corejson.Result,
) (payloadWrapper *PayloadWrapper, parsingErr error)

func (*PayloadWrapper) ReflectSetAttributes added in v1.1.9

func (it *PayloadWrapper) ReflectSetAttributes(
	toPointer interface{},
) error

func (*PayloadWrapper) ReflectSetTo added in v1.3.13

func (it *PayloadWrapper) ReflectSetTo(
	toPointer interface{},
) error

func (*PayloadWrapper) Serialize added in v1.1.9

func (it *PayloadWrapper) Serialize() ([]byte, error)

func (*PayloadWrapper) SerializeMust added in v1.1.9

func (it *PayloadWrapper) SerializeMust() []byte

func (*PayloadWrapper) SetAuthInfo added in v1.3.34

func (it *PayloadWrapper) SetAuthInfo(
	authInfo *AuthInfo,
) *PayloadWrapper

func (*PayloadWrapper) SetDynamicPayloads added in v1.3.13

func (it *PayloadWrapper) SetDynamicPayloads(payloads []byte) error

func (*PayloadWrapper) SetPayloadDynamic added in v1.3.34

func (it *PayloadWrapper) SetPayloadDynamic(
	dynamicPayload []byte,
) *PayloadWrapper

func (*PayloadWrapper) SetPayloadDynamicAny added in v1.3.34

func (it *PayloadWrapper) SetPayloadDynamicAny(
	dynamicPayloadAny interface{},
) (*PayloadWrapper, error)

SetPayloadDynamicAny

Casting happens: - self or self pointer returns directly - []Bytes to Result - string (json) to Result - Jsoner to Result - bytesSerializer to Result - error to Result - AnyItem

func (*PayloadWrapper) SetSysUser added in v1.3.34

func (it *PayloadWrapper) SetSysUser(
	sysUser *User,
) *PayloadWrapper

func (*PayloadWrapper) SetUser added in v1.3.34

func (it *PayloadWrapper) SetUser(
	user *User,
) *PayloadWrapper

func (*PayloadWrapper) SetUserInfo added in v1.3.34

func (it *PayloadWrapper) SetUserInfo(
	userInfo *UserInfo,
) *PayloadWrapper

func (PayloadWrapper) String added in v1.1.3

func (it PayloadWrapper) String() string

func (PayloadWrapper) ToPtr added in v1.3.31

func (it PayloadWrapper) ToPtr() *PayloadWrapper

ToPtr

can panic if nil

func (*PayloadWrapper) UnmarshalJSON added in v1.3.34

func (it *PayloadWrapper) UnmarshalJSON(rawJsonBytes []byte) error

func (*PayloadWrapper) Username added in v1.1.9

func (it *PayloadWrapper) Username() string

func (*PayloadWrapper) Value added in v1.1.9

func (it *PayloadWrapper) Value() interface{}

func (*PayloadWrapper) ValueReflectSet added in v1.1.9

func (it *PayloadWrapper) ValueReflectSet(
	setterPtr interface{},
) error

type PayloadsCollection added in v1.1.4

type PayloadsCollection struct {
	Items []*PayloadWrapper
}

func (*PayloadsCollection) Add added in v1.1.4

func (it *PayloadsCollection) Add(
	payloadWrapper PayloadWrapper,
) *PayloadsCollection

func (*PayloadsCollection) Adds added in v1.1.4

func (it *PayloadsCollection) Adds(
	payloadWrappers ...PayloadWrapper,
) *PayloadsCollection

func (*PayloadsCollection) AddsIf added in v1.1.4

func (it *PayloadsCollection) AddsIf(
	isAdd bool,
	payloadWrappers ...PayloadWrapper,
) *PayloadsCollection

func (*PayloadsCollection) AddsOptions added in v1.1.4

func (it *PayloadsCollection) AddsOptions(
	isSkipHasIssuedPayloads bool,
	payloadWrappers ...PayloadWrapper,
) *PayloadsCollection

func (*PayloadsCollection) AddsPtr added in v1.1.4

func (it *PayloadsCollection) AddsPtr(
	payloadWrappers ...*PayloadWrapper,
) *PayloadsCollection

func (*PayloadsCollection) AddsPtrOptions added in v1.1.4

func (it *PayloadsCollection) AddsPtrOptions(
	isSkipHasIssuedPayloads bool,
	payloadWrappers ...*PayloadWrapper,
) *PayloadsCollection

func (*PayloadsCollection) AsJsonContractsBinder added in v1.1.4

func (it *PayloadsCollection) AsJsonContractsBinder() corejson.JsonContractsBinder

func (*PayloadsCollection) AsJsonParseSelfInjector added in v1.1.4

func (it *PayloadsCollection) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector

func (*PayloadsCollection) AsJsoner added in v1.1.4

func (it *PayloadsCollection) AsJsoner() corejson.Jsoner

func (*PayloadsCollection) Clear added in v1.1.4

func (PayloadsCollection) Clone added in v1.1.4

func (*PayloadsCollection) ClonePtr added in v1.1.4

func (it *PayloadsCollection) ClonePtr() *PayloadsCollection

func (*PayloadsCollection) ConcatNew added in v1.1.4

func (it *PayloadsCollection) ConcatNew(
	additionalItems ...PayloadWrapper,
) *PayloadsCollection

func (*PayloadsCollection) ConcatNewPtr added in v1.1.4

func (it *PayloadsCollection) ConcatNewPtr(
	additionalItemsPtr ...*PayloadWrapper,
) *PayloadsCollection

func (*PayloadsCollection) Count added in v1.1.4

func (it *PayloadsCollection) Count() int

func (*PayloadsCollection) CsvStrings added in v1.1.4

func (it *PayloadsCollection) CsvStrings() []string

func (*PayloadsCollection) Dispose added in v1.1.4

func (it *PayloadsCollection) Dispose()

func (*PayloadsCollection) Filter added in v1.1.4

func (it *PayloadsCollection) Filter(
	filterFunc FilterFunc,
) []*PayloadWrapper

func (*PayloadsCollection) FilterCategoryCollection added in v1.1.4

func (it *PayloadsCollection) FilterCategoryCollection(
	categoryName string,
) *PayloadsCollection

func (*PayloadsCollection) FilterCollection added in v1.1.4

func (it *PayloadsCollection) FilterCollection(
	filterFunc FilterFunc,
) *PayloadsCollection

func (*PayloadsCollection) FilterCollectionByIds added in v1.1.4

func (it *PayloadsCollection) FilterCollectionByIds(
	ids ...string,
) *PayloadsCollection

func (*PayloadsCollection) FilterEntityTypeCollection added in v1.1.4

func (it *PayloadsCollection) FilterEntityTypeCollection(
	entityTypeName string,
) *PayloadsCollection

func (*PayloadsCollection) FilterNameCollection added in v1.1.4

func (it *PayloadsCollection) FilterNameCollection(
	name string,
) *PayloadsCollection

func (*PayloadsCollection) FilterTaskTypeCollection added in v1.1.4

func (it *PayloadsCollection) FilterTaskTypeCollection(
	taskType string,
) *PayloadsCollection

func (*PayloadsCollection) FilterWithLimit added in v1.1.4

func (it *PayloadsCollection) FilterWithLimit(
	limit int,
	filterFunc FilterFunc,
) []*PayloadWrapper

func (*PayloadsCollection) First added in v1.1.4

func (it *PayloadsCollection) First() *PayloadWrapper

func (*PayloadsCollection) FirstByCategory added in v1.1.5

func (it *PayloadsCollection) FirstByCategory(
	category string,
) *PayloadWrapper

func (*PayloadsCollection) FirstByEntityType added in v1.1.5

func (it *PayloadsCollection) FirstByEntityType(
	entityType string,
) *PayloadWrapper

func (*PayloadsCollection) FirstByFilter added in v1.1.5

func (it *PayloadsCollection) FirstByFilter(
	findByFunc func(payloadWrapper *PayloadWrapper) (isFound bool),
) *PayloadWrapper

func (*PayloadsCollection) FirstById added in v1.1.5

func (it *PayloadsCollection) FirstById(
	id string,
) *PayloadWrapper

func (*PayloadsCollection) FirstByTaskType added in v1.1.5

func (it *PayloadsCollection) FirstByTaskType(
	taskType string,
) *PayloadWrapper

func (*PayloadsCollection) FirstDynamic added in v1.1.4

func (it *PayloadsCollection) FirstDynamic() interface{}

func (*PayloadsCollection) FirstOrDefault added in v1.1.4

func (it *PayloadsCollection) FirstOrDefault() *PayloadWrapper

func (*PayloadsCollection) FirstOrDefaultDynamic added in v1.1.4

func (it *PayloadsCollection) FirstOrDefaultDynamic() interface{}

func (*PayloadsCollection) GetPagedCollection added in v1.1.4

func (it *PayloadsCollection) GetPagedCollection(
	eachPageSize int,
) []*PayloadsCollection

func (*PayloadsCollection) GetPagesSize added in v1.1.4

func (it *PayloadsCollection) GetPagesSize(
	eachPageSize int,
) int

func (*PayloadsCollection) GetSinglePageCollection added in v1.1.4

func (it *PayloadsCollection) GetSinglePageCollection(
	eachPageSize int,
	pageIndex int,
) *PayloadsCollection

GetSinglePageCollection PageIndex is one based index. Should be above or equal 1

func (*PayloadsCollection) HasAnyItem added in v1.1.4

func (it *PayloadsCollection) HasAnyItem() bool

func (*PayloadsCollection) HasIndex added in v1.1.4

func (it *PayloadsCollection) HasIndex(index int) bool

func (*PayloadsCollection) InsertAt added in v1.1.4

func (it *PayloadsCollection) InsertAt(
	index int,
	item PayloadWrapper,
) *PayloadsCollection

func (*PayloadsCollection) IsEmpty added in v1.1.4

func (it *PayloadsCollection) IsEmpty() bool

func (*PayloadsCollection) IsEqual added in v1.1.4

func (it *PayloadsCollection) IsEqual(another *PayloadsCollection) bool

func (*PayloadsCollection) IsEqualItems added in v1.1.4

func (it *PayloadsCollection) IsEqualItems(lines ...*PayloadWrapper) bool

func (*PayloadsCollection) Join added in v1.1.4

func (it *PayloadsCollection) Join(joiner string) string

func (*PayloadsCollection) JoinCsv added in v1.1.4

func (it *PayloadsCollection) JoinCsv() string

func (*PayloadsCollection) JoinCsvLine added in v1.1.4

func (it *PayloadsCollection) JoinCsvLine() string

func (*PayloadsCollection) JoinJsonStrings added in v1.1.4

func (it *PayloadsCollection) JoinJsonStrings(joiner string) string

func (*PayloadsCollection) JoinUsingFmt added in v1.1.4

func (it *PayloadsCollection) JoinUsingFmt(formatter Formatter, joiner string) string

func (PayloadsCollection) Json added in v1.1.4

func (*PayloadsCollection) JsonParseSelfInject added in v1.1.4

func (it *PayloadsCollection) JsonParseSelfInject(
	jsonResult *corejson.Result,
) error

func (PayloadsCollection) JsonPtr added in v1.1.4

func (it PayloadsCollection) JsonPtr() *corejson.Result

func (*PayloadsCollection) JsonString added in v1.1.4

func (it *PayloadsCollection) JsonString() string

func (*PayloadsCollection) JsonStrings added in v1.1.4

func (it *PayloadsCollection) JsonStrings() []string

func (*PayloadsCollection) Last added in v1.1.4

func (it *PayloadsCollection) Last() *PayloadWrapper

func (*PayloadsCollection) LastDynamic added in v1.1.4

func (it *PayloadsCollection) LastDynamic() interface{}

func (*PayloadsCollection) LastIndex added in v1.1.4

func (it *PayloadsCollection) LastIndex() int

func (*PayloadsCollection) LastOrDefault added in v1.1.4

func (it *PayloadsCollection) LastOrDefault() *PayloadWrapper

func (*PayloadsCollection) LastOrDefaultDynamic added in v1.1.4

func (it *PayloadsCollection) LastOrDefaultDynamic() interface{}

func (*PayloadsCollection) Length added in v1.1.4

func (it *PayloadsCollection) Length() int

func (*PayloadsCollection) Limit added in v1.1.4

func (it *PayloadsCollection) Limit(limit int) []*PayloadWrapper

func (*PayloadsCollection) LimitCollection added in v1.1.4

func (it *PayloadsCollection) LimitCollection(limit int) *PayloadsCollection

func (*PayloadsCollection) LimitDynamic added in v1.1.4

func (it *PayloadsCollection) LimitDynamic(limit int) interface{}

func (*PayloadsCollection) ParseInjectUsingJson added in v1.1.4

func (it *PayloadsCollection) ParseInjectUsingJson(
	jsonResult *corejson.Result,
) (*PayloadsCollection, error)

func (*PayloadsCollection) ParseInjectUsingJsonMust added in v1.1.4

func (it *PayloadsCollection) ParseInjectUsingJsonMust(
	jsonResult *corejson.Result,
) *PayloadsCollection

ParseInjectUsingJsonMust Panic if error

func (*PayloadsCollection) PrettyJsonString added in v1.1.4

func (it *PayloadsCollection) PrettyJsonString() string

func (*PayloadsCollection) Reverse added in v1.1.4

func (it *PayloadsCollection) Reverse() *PayloadsCollection

func (*PayloadsCollection) SafeLimitCollection added in v1.1.4

func (it *PayloadsCollection) SafeLimitCollection(limit int) *PayloadsCollection

func (*PayloadsCollection) Skip added in v1.1.4

func (it *PayloadsCollection) Skip(skippingItemsCount int) []*PayloadWrapper

func (*PayloadsCollection) SkipCollection added in v1.1.4

func (it *PayloadsCollection) SkipCollection(skippingItemsCount int) *PayloadsCollection

func (*PayloadsCollection) SkipDynamic added in v1.1.4

func (it *PayloadsCollection) SkipDynamic(skippingItemsCount int) interface{}

func (*PayloadsCollection) SkipFilterCollection added in v1.1.4

func (it *PayloadsCollection) SkipFilterCollection(
	skipFilterFunc SkipFilterFunc,
) *PayloadsCollection

func (*PayloadsCollection) String added in v1.1.4

func (it *PayloadsCollection) String() string

func (*PayloadsCollection) Strings added in v1.1.4

func (it *PayloadsCollection) Strings() []string

func (*PayloadsCollection) StringsUsingFmt added in v1.1.4

func (it *PayloadsCollection) StringsUsingFmt(formatter Formatter) []string

func (*PayloadsCollection) Take added in v1.1.4

func (it *PayloadsCollection) Take(takeDynamicItems int) []*PayloadWrapper

func (*PayloadsCollection) TakeCollection added in v1.1.4

func (it *PayloadsCollection) TakeCollection(takeDynamicItems int) *PayloadsCollection

func (*PayloadsCollection) TakeDynamic added in v1.1.4

func (it *PayloadsCollection) TakeDynamic(takeDynamicItems int) interface{}

type SessionInfo added in v1.1.6

type SessionInfo struct {
	Id          string `json:"Id,omitempty"`
	User        *User  `json:"User,omitempty"`
	SessionPath string `json:"SessionPath,omitempty"`
}

func (SessionInfo) Clone added in v1.1.6

func (it SessionInfo) Clone() SessionInfo

func (*SessionInfo) ClonePtr added in v1.1.6

func (it *SessionInfo) ClonePtr() *SessionInfo

func (*SessionInfo) HasUser added in v1.1.6

func (it *SessionInfo) HasUser() bool

func (*SessionInfo) IdentifierInteger added in v1.1.6

func (it *SessionInfo) IdentifierInteger() int

IdentifierInteger

Invalid value returns constants.InvalidValue

func (*SessionInfo) IdentifierUnsignedInteger added in v1.1.6

func (it *SessionInfo) IdentifierUnsignedInteger() uint

IdentifierUnsignedInteger

Invalid value returns constants.Zero

func (*SessionInfo) IsEmpty added in v1.1.6

func (it *SessionInfo) IsEmpty() bool

func (*SessionInfo) IsUserEmpty added in v1.1.6

func (it *SessionInfo) IsUserEmpty() bool

func (*SessionInfo) IsUserNameEmpty added in v1.1.6

func (it *SessionInfo) IsUserNameEmpty() bool

func (*SessionInfo) IsUsernameEqual added in v1.1.9

func (it *SessionInfo) IsUsernameEqual(
	name string,
) bool

func (*SessionInfo) IsValid added in v1.1.6

func (it *SessionInfo) IsValid() bool

func (SessionInfo) Ptr added in v1.1.6

func (it SessionInfo) Ptr() *SessionInfo

type SkipFilterFunc added in v1.1.4

type SkipFilterFunc func(payloadWrapper *PayloadWrapper) (isSkip, isBreak bool)

type User added in v1.1.6

type User struct {
	Identifier   string `json:"Identifier,omitempty"`
	Name         string `json:"Name,omitempty"`
	Type         string `json:"Type,omitempty"`
	AuthToken    string `json:"AuthToken,omitempty"`
	PasswordHash string `json:"PasswordHash,omitempty"`
	IsSystemUser bool   `json:"IsSystemUser"`
}

func (User) Clone added in v1.1.6

func (it User) Clone() User

func (*User) ClonePtr added in v1.1.6

func (it *User) ClonePtr() *User

func (*User) Deserialize added in v1.1.6

func (it *User) Deserialize(rawJsonBytes []byte) error

func (*User) HasAuthToken added in v1.1.6

func (it *User) HasAuthToken() bool

func (*User) HasPasswordHash added in v1.1.6

func (it *User) HasPasswordHash() bool

func (*User) HasType added in v1.1.6

func (it *User) HasType() bool

func (*User) IdentifierInteger added in v1.1.6

func (it *User) IdentifierInteger() int

IdentifierInteger

Invalid value returns constants.InvalidValue

func (*User) IdentifierUnsignedInteger added in v1.1.6

func (it *User) IdentifierUnsignedInteger() uint

IdentifierUnsignedInteger

Invalid value returns constants.Zero

func (*User) IsAuthTokenEmpty added in v1.1.6

func (it *User) IsAuthTokenEmpty() bool

func (*User) IsEmpty added in v1.1.6

func (it *User) IsEmpty() bool

func (*User) IsNameEmpty added in v1.1.6

func (it *User) IsNameEmpty() bool

func (*User) IsNameEqual added in v1.1.6

func (it *User) IsNameEqual(name string) bool

func (*User) IsNotSystemUser added in v1.1.6

func (it *User) IsNotSystemUser() bool

func (*User) IsPasswordHashEmpty added in v1.1.6

func (it *User) IsPasswordHashEmpty() bool

func (*User) IsTypeEmpty added in v1.1.6

func (it *User) IsTypeEmpty() bool

func (*User) IsValidUser added in v1.1.6

func (it *User) IsValidUser() bool

func (*User) IsVirtualUser added in v1.1.6

func (it *User) IsVirtualUser() bool

func (*User) Json added in v1.1.6

func (it *User) Json() corejson.Result

func (*User) JsonPtr added in v1.1.6

func (it *User) JsonPtr() *corejson.Result

func (*User) PrettyJsonString added in v1.1.6

func (it *User) PrettyJsonString() string

func (User) Ptr added in v1.1.6

func (it User) Ptr() *User

func (*User) Serialize added in v1.1.6

func (it *User) Serialize() ([]byte, error)

func (User) String added in v1.1.6

func (it User) String() string

type UserInfo added in v1.1.6

type UserInfo struct {
	User       *User `json:"User,omitempty"`       // refers to control panel or any kinds of virtual user
	SystemUser *User `json:"SystemUser,omitempty"` // System or OS user
}

func (*UserInfo) Clone added in v1.1.6

func (it *UserInfo) Clone() UserInfo

func (*UserInfo) ClonePtr added in v1.1.6

func (it *UserInfo) ClonePtr() *UserInfo

func (*UserInfo) HasSystemUser added in v1.1.6

func (it *UserInfo) HasSystemUser() bool

func (*UserInfo) HasUser added in v1.1.6

func (it *UserInfo) HasUser() bool

func (*UserInfo) IsEmpty added in v1.1.6

func (it *UserInfo) IsEmpty() bool

func (*UserInfo) IsSystemUserEmpty added in v1.1.6

func (it *UserInfo) IsSystemUserEmpty() bool

func (*UserInfo) IsUserEmpty added in v1.1.6

func (it *UserInfo) IsUserEmpty() bool

func (UserInfo) Ptr added in v1.1.6

func (it UserInfo) Ptr() *UserInfo

func (*UserInfo) SetSystemUser added in v1.3.34

func (it *UserInfo) SetSystemUser(
	systemUser *User,
) *UserInfo

SetSystemUser

on null creates new

func (*UserInfo) SetUser added in v1.3.34

func (it *UserInfo) SetUser(
	user *User,
) *UserInfo

SetUser

on null creates new

func (*UserInfo) SetUserSystemUser added in v1.3.34

func (it *UserInfo) SetUserSystemUser(
	user, systemUser *User,
) *UserInfo

func (*UserInfo) ToNonPtr added in v1.3.34

func (it *UserInfo) ToNonPtr() UserInfo

Jump to

Keyboard shortcuts

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