cbor

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 NewCoder

func NewCoder() *Coder

NewCoder returns a new CBOR erializer instance.

func (*Coder) DecodeDocument

func (s *Coder) DecodeDocument(r io.Reader) (document.Object, error)

DecodeDocument returns the decorded object from the specified reader if available, otherwise returns an error.

func (*Coder) EncodeDocument

func (s *Coder) EncodeDocument(w io.Writer, obj document.Object) error

EncodeDocument writes the specified object to the specified writer.

func (*Coder) ServiceName

func (s *Coder) ServiceName() string

ServiceName returns the plug-ing service name.

func (*Coder) ServiceType

func (s *Coder) ServiceType() plugins.ServiceType

ServiceType returns the plug-ing service type.

func (*Coder) Start

func (s *Coder) Start() error

Start starts this coder.

func (Coder) Stop

func (s Coder) Stop() error

Stop stops this coder.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL