Documentation
¶
Index ¶
- func StatusSliceToJSON(in []Status) json.RawMessage
- func UserSliceToJSON(e []User) json.RawMessage
- func UserToJSON(e User) json.RawMessage
- func UserTypeSliceToJSON(in []UserType) json.RawMessage
- type Status
- type User
- func (e User) ArrayFieldIdentifierToType() map[string]types.FieldType
- func (e User) DependantFieldIdentifierToTypeMap() map[string]map[string]types.FieldType
- func (e User) EntityIdentifier() string
- func (e User) FieldIdentfierToTypeMap() map[string]types.FieldType
- func (e User) IsDependant() bool
- func (e User) PrimaryKeyIdentifier() string
- func (e User) PrimaryKeyValue() string
- func (e User) String() string
- func (e User) ToJSON() json.RawMessage
- type UserType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StatusSliceToJSON ¶
func StatusSliceToJSON(in []Status) json.RawMessage
func UserSliceToJSON ¶
func UserSliceToJSON(e []User) json.RawMessage
func UserToJSON ¶
func UserToJSON(e User) json.RawMessage
func UserTypeSliceToJSON ¶
func UserTypeSliceToJSON(in []UserType) json.RawMessage
Types ¶
type Status ¶
type Status int64
func JSONToStatusSlice ¶
func JSONToStatusSlice(in json.RawMessage) []Status
func StatusFromPointerString ¶
func StatusFromString ¶
type User ¶
type User struct { UUID uuid.UUID `json:"uuid"` Identifier string `json:"identifier"` Name string `json:"name"` LastName string `json:"last_name"` Email string `json:"email"` UserType UserType `json:"user_type"` CountryIos2 string `json:"country_ios2"` Locale string `json:"locale"` Metadata string `json:"metadata"` Status Status `json:"status"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
func NewUserWithRandomValues ¶
func NewUserWithRandomValues() User
func UserFromJSON ¶
func UserFromJSON(data json.RawMessage) User
func UserSliceFromJSON ¶
func UserSliceFromJSON(data json.RawMessage) []User
func (User) ArrayFieldIdentifierToType ¶
func (User) DependantFieldIdentifierToTypeMap ¶
func (User) EntityIdentifier ¶
func (User) FieldIdentfierToTypeMap ¶
func (User) IsDependant ¶
func (User) PrimaryKeyIdentifier ¶
func (User) PrimaryKeyValue ¶
func (User) ToJSON ¶
func (e User) ToJSON() json.RawMessage
type UserType ¶
type UserType int64
func JSONToUserTypeSlice ¶
func JSONToUserTypeSlice(in json.RawMessage) []UserType
func UserTypeFromString ¶
Click to show internal directories.
Click to hide internal directories.