Documentation
¶
Index ¶
- type MarshalStrategy
- type TypeRegistry
- func (r *TypeRegistry) Marshal(marshal MarshalStrategy, value interface{}) (string, []byte, error)
- func (r *TypeRegistry) Name(value interface{}) (string, error)
- func (r *TypeRegistry) Register(name string, value interface{}) error
- func (r *TypeRegistry) Type(name string) (reflect.Type, error)
- func (r *TypeRegistry) Unmarshal(unmarshal UnmarshalStrategy, name string, data []byte) (interface{}, error)
- type UnmarshalStrategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MarshalStrategy ¶
type TypeRegistry ¶
type TypeRegistry struct {
// contains filtered or unexported fields
}
func NewTypeRegistry ¶
func NewTypeRegistry() *TypeRegistry
func (*TypeRegistry) Marshal ¶
func (r *TypeRegistry) Marshal(marshal MarshalStrategy, value interface{}) (string, []byte, error)
func (*TypeRegistry) Name ¶
func (r *TypeRegistry) Name(value interface{}) (string, error)
func (*TypeRegistry) Register ¶
func (r *TypeRegistry) Register(name string, value interface{}) error
func (*TypeRegistry) Unmarshal ¶
func (r *TypeRegistry) Unmarshal(unmarshal UnmarshalStrategy, name string, data []byte) (interface{}, error)
type UnmarshalStrategy ¶
Click to show internal directories.
Click to hide internal directories.