Documentation
¶
Index ¶
- type Serializer
- func (s *Serializer) GetActions() schema.SerializerInterface
- func (s *Serializer) Register()
- func (s *Serializer) Scan(ctx c.Context, field *schema.Field, dst reflect.Value, dbValue interface{}) (err error)
- func (s *Serializer) Value(ctx c.Context, field *schema.Field, dst reflect.Value, fieldValue interface{}) (out interface{}, err error)
- type Serializers
- type Storage
- func (ps *Storage) Clear(ctx c.Context, where string) (err error)
- func (ps *Storage) ClearAll(ctx c.Context) (err error)
- func (ps *Storage) Read(ctx c.Context, where string, items interface{}) (err error)
- func (ps *Storage) Remove(ctx c.Context, where string, item interface{}) (err error)
- func (ps *Storage) Store(ctx c.Context, where string, item interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Serializer ¶
type Serializer struct {
// contains filtered or unexported fields
}
func New ¶
func New(name string, si schema.SerializerInterface) *Serializer
func (*Serializer) GetActions ¶
func (s *Serializer) GetActions() schema.SerializerInterface
func (*Serializer) Register ¶
func (s *Serializer) Register()
type Serializers ¶
type Serializers []*Serializer
func NewSerializers ¶
func NewSerializers() Serializers
func (Serializers) RegisterAll ¶
func (ss Serializers) RegisterAll()
func (Serializers) Set ¶
func (ss Serializers) Set(serializers ...*Serializer)
Click to show internal directories.
Click to hide internal directories.