Versions in this module Expand all Collapse all v0 v0.1.0 Sep 22, 2023 Changes in this version + type Details json.RawMessage + func (d *Details) UnmarshalJSON(data []byte) error + func (d Details) MarshalJSON() ([]byte, error) + func (d Details) String() string + func (r *Details) Scan(src interface{}) error + func (r Details) Value() (driver.Value, error) + type Flag struct + Name string + Value int32 + type Flagger interface + IsFlag func() bool + type Flags struct + Mask int32 + Values []Flag + func FlagsFromMask(mask int32, allFlags map[int32]string) Flags + type Included struct + func (c *Included) Add(includes ...Resource) + func (c *Included) MustModule(key Key) *Module + func (c *Included) MustUser(key Key) *User + func (c *Included) UnmarshalJSON(data []byte) error + func (c Included) MarshalJSON() ([]byte, error) + type Key struct + ID string + Type ResourceType + func NewKeyInt64(id int64, resourceType ResourceType) Key + func (r *Key) GetKey() Key + func (r Key) AsRelation() *Relation + func (r Key) GetKeyP() *Key + type Links struct + First string + Last string + Next string + Prev string + Self string + type Module struct + Attributes ModuleAttributes + type ModuleAttributes struct + IsModule bool + Link string + Name string + Prefix string + Title string + Topic string + type ModuleListResponse struct + Data []Module + Included Included + Links *Links + type ModuleResponse struct + Data Module + Included Included + type Relation struct + Data *Key + Links *Links + type RelationCollection struct + Data []Key + Links *Links + func (r RelationCollection) MarshalJSON() ([]byte, error) + type Resource interface + GetKey func() Key + type ResourceType string + const MODULES + const USER + type User struct + Attributes UserAttributes + type UserAttributes struct + CreatedAt time.Time + Email *string + Module []string + ModuleId string + Name *string + Phone *string + Submodule []string + Username *string + type UserListResponse struct + Data []User + Included Included + Links *Links + type UserResponse struct + Data User + Included Included