Documentation ¶
Index ¶
- type Categorizable
- type Category
- func (e Category[S, T]) Category() string
- func (e Category[S, T]) Deserialize(resp map[string]types.AttributeValue) (Category[S, T], error)
- func (e Category[S, T]) DeserializeList(resps []map[string]types.AttributeValue) ([]Category[S, T], error)
- func (e Category[S, T]) PK() string
- func (e Category[S, T]) ParseID(s string) string
- func (e Category[S, T]) SK(s *string) string
- func (e Category[S, T]) Serialize() (map[string]types.AttributeValue, error)
- func (e Category[S, T]) Type() string
- type Label
- type Nameable
- type Service
- type Typeable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Categorizable ¶
type Category ¶
type Category[S Categorizable, T Typeable] struct { ID string `json:"id" dynamodbav:"SK"` Name string `json:"name"` Val T `json:"item"` Public bool `json:"-" dynamodbav:"Public"` UserID string `json:"-" dynamodbav:"UserID"` }
func (Category[S, T]) Deserialize ¶
func (Category[S, T]) DeserializeList ¶
Click to show internal directories.
Click to hide internal directories.