Versions in this module Expand all Collapse all v0 v0.1.0 Sep 26, 2023 Changes in this version + type BadRequest struct + Code string + Detail *string + Meta *map[string]interface{} + Status int32 + Title string + 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 Forbidden struct + Code string + Detail *string + Status int32 + Title string + type Included struct + func (c *Included) Add(includes ...Resource) + func (c *Included) MustModule(key Key) *Module + func (c *Included) MustPositions(key Key) *Positions + func (c *Included) MustUser(key Key) *User + func (c *Included) UnmarshalJSON(data []byte) error + func (c Included) MarshalJSON() ([]byte, error) + type InternalError struct + Code string + Detail *string + Status int32 + Title string + 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 NotFound struct + Code string + Detail *string + Status int32 + Title string + type Positions struct + Attributes PositionsAttributes + type PositionsAttributes struct + Positions []string + type PositionsListResponse struct + Data []Positions + Included Included + Links *Links + type PositionsResponse struct + Data Positions + 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 POSITIONS + const USER + type User struct + Attributes UserAttributes + type UserAttributes struct + Name string + Position string + Surname string + Telegram *string + type UserListResponse struct + Data []User + Included Included + Links *Links + type UserResponse struct + Data User + Included Included