controlproto

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	DecodeCommand([]byte) (*controlpb.Command, error)
	DecodeNode([]byte) (*controlpb.Node, error)
	DecodeUnsubscribe([]byte) (*controlpb.Unsubscribe, error)
	DecodeDisconnect([]byte) (*controlpb.Disconnect, error)
}

Decoder ...

type Encoder

type Encoder interface {
	EncodeCommand(*controlpb.Command) ([]byte, error)
	EncodeNode(*controlpb.Node) ([]byte, error)
	EncodeUnsubscribe(*controlpb.Unsubscribe) ([]byte, error)
	EncodeDisconnect(*controlpb.Disconnect) ([]byte, error)
}

Encoder ...

type ProtobufDecoder

type ProtobufDecoder struct {
}

ProtobufDecoder ...

func NewProtobufDecoder

func NewProtobufDecoder() *ProtobufDecoder

NewProtobufDecoder ...

func (*ProtobufDecoder) DecodeCommand

func (e *ProtobufDecoder) DecodeCommand(data []byte) (*controlpb.Command, error)

DecodeCommand ...

func (*ProtobufDecoder) DecodeDisconnect

func (e *ProtobufDecoder) DecodeDisconnect(data []byte) (*controlpb.Disconnect, error)

DecodeDisconnect ...

func (*ProtobufDecoder) DecodeNode

func (e *ProtobufDecoder) DecodeNode(data []byte) (*controlpb.Node, error)

DecodeNode ...

func (*ProtobufDecoder) DecodeUnsubscribe

func (e *ProtobufDecoder) DecodeUnsubscribe(data []byte) (*controlpb.Unsubscribe, error)

DecodeUnsubscribe ...

type ProtobufEncoder

type ProtobufEncoder struct {
}

ProtobufEncoder ...

func NewProtobufEncoder

func NewProtobufEncoder() *ProtobufEncoder

NewProtobufEncoder ...

func (*ProtobufEncoder) EncodeCommand

func (e *ProtobufEncoder) EncodeCommand(cmd *controlpb.Command) ([]byte, error)

EncodeCommand ...

func (*ProtobufEncoder) EncodeDisconnect

func (e *ProtobufEncoder) EncodeDisconnect(cmd *controlpb.Disconnect) ([]byte, error)

EncodeDisconnect ...

func (*ProtobufEncoder) EncodeNode

func (e *ProtobufEncoder) EncodeNode(cmd *controlpb.Node) ([]byte, error)

EncodeNode ...

func (*ProtobufEncoder) EncodeUnsubscribe

func (e *ProtobufEncoder) EncodeUnsubscribe(cmd *controlpb.Unsubscribe) ([]byte, error)

EncodeUnsubscribe ...

Jump to

Keyboard shortcuts

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