controlproto

package
v0.18.4 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 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)
	DecodeSubscribe([]byte) (*controlpb.Subscribe, error)
	DecodeUnsubscribe([]byte) (*controlpb.Unsubscribe, error)
	DecodeDisconnect([]byte) (*controlpb.Disconnect, error)
	DecodeSurveyRequest([]byte) (*controlpb.SurveyRequest, error)
	DecodeSurveyResponse([]byte) (*controlpb.SurveyResponse, error)
	DecodeNotification([]byte) (*controlpb.Notification, error)
	DecodeRefresh([]byte) (*controlpb.Refresh, error)
}

Decoder ...

type Encoder

type Encoder interface {
	EncodeCommand(*controlpb.Command) ([]byte, error)
	EncodeNode(*controlpb.Node) ([]byte, error)
	EncodeSubscribe(*controlpb.Subscribe) ([]byte, error)
	EncodeUnsubscribe(*controlpb.Unsubscribe) ([]byte, error)
	EncodeDisconnect(*controlpb.Disconnect) ([]byte, error)
	EncodeSurveyRequest(request *controlpb.SurveyRequest) ([]byte, error)
	EncodeSurveyResponse(request *controlpb.SurveyResponse) ([]byte, error)
	EncodeNotification(request *controlpb.Notification) ([]byte, error)
	EncodeRefresh(refresh *controlpb.Refresh) ([]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) DecodeNotification added in v0.17.0

func (e *ProtobufDecoder) DecodeNotification(data []byte) (*controlpb.Notification, error)

DecodeNotification ...

func (*ProtobufDecoder) DecodeRefresh added in v0.18.0

func (e *ProtobufDecoder) DecodeRefresh(data []byte) (*controlpb.Refresh, error)

DecodeRefresh ...

func (*ProtobufDecoder) DecodeSubscribe added in v0.16.0

func (e *ProtobufDecoder) DecodeSubscribe(data []byte) (*controlpb.Subscribe, error)

DecodeUnsubscribe ...

func (*ProtobufDecoder) DecodeSurveyRequest added in v0.15.0

func (e *ProtobufDecoder) DecodeSurveyRequest(data []byte) (*controlpb.SurveyRequest, error)

DecodeSurveyRequest ...

func (*ProtobufDecoder) DecodeSurveyResponse added in v0.15.0

func (e *ProtobufDecoder) DecodeSurveyResponse(data []byte) (*controlpb.SurveyResponse, error)

DecodeSurveyResponse ...

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) EncodeNotification added in v0.17.0

func (e *ProtobufEncoder) EncodeNotification(cmd *controlpb.Notification) ([]byte, error)

EncodeNotification ...

func (*ProtobufEncoder) EncodeRefresh added in v0.18.0

func (e *ProtobufEncoder) EncodeRefresh(cmd *controlpb.Refresh) ([]byte, error)

EncodeRefresh ...

func (*ProtobufEncoder) EncodeSubscribe added in v0.16.0

func (e *ProtobufEncoder) EncodeSubscribe(cmd *controlpb.Subscribe) ([]byte, error)

EncodeSubscribe ...

func (*ProtobufEncoder) EncodeSurveyRequest added in v0.15.0

func (e *ProtobufEncoder) EncodeSurveyRequest(cmd *controlpb.SurveyRequest) ([]byte, error)

EncodeSurveyRequest ...

func (*ProtobufEncoder) EncodeSurveyResponse added in v0.15.0

func (e *ProtobufEncoder) EncodeSurveyResponse(cmd *controlpb.SurveyResponse) ([]byte, error)

EncodeSurveyRequest ...

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