Documentation ¶
Index ¶
- Variables
- type Coder
- func (s *Coder) DecodeKey(b []byte) (document.Key, error)
- func (s *Coder) EncodeKey(key document.Key) ([]byte, error)
- func (s *Coder) ServiceName() string
- func (s *Coder) ServiceType() plugins.ServiceType
- func (s *Coder) SetConfig(conf config.Config)
- func (s *Coder) Start() error
- func (s Coder) Stop() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupportedKeyType = errors.New("unsupported key type")
Functions ¶
This section is empty.
Types ¶
type Coder ¶
type Coder struct { }
Coder represents a CBOR erializer.
func (*Coder) DecodeKey ¶
DecodeKey returns the decoded key from the specified bytes if available, otherwise returns an error.
func (*Coder) EncodeKey ¶
EncodeKey returns the encoded bytes from the specified key if available, otherwise returns an error.
func (*Coder) ServiceName ¶
ServiceName returns the plug-in service name.
func (*Coder) ServiceType ¶
func (s *Coder) ServiceType() plugins.ServiceType
ServiceType returns the plug-in service type.
Click to show internal directories.
Click to hide internal directories.