Documentation ¶
Index ¶
- type Coder
- func (s *Coder) DecodeDocument(r io.Reader) (document.Object, error)
- func (s *Coder) EncodeDocument(w io.Writer, obj document.Object) 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 ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coder ¶
type Coder struct { }
Coder represents a CBOR erializer.
func (*Coder) DecodeDocument ¶
DecodeDocument returns the decorded object from the specified reader if available, otherwise returns an error.
func (*Coder) EncodeDocument ¶
EncodeDocument writes the specified object to the specified writer.
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.