protocol

package
v0.0.0-...-e0fb3b4 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package protocol contains the specification and implementation of the GueaaS protocol.

This package contains the implementation of the generic handshake between the GueaaS client and the GueaaS server. During the handshake, the specific protocol to be used for the connection is negotiated between server and client.

The specific protocols are specified and implemented in sub-packages of this package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	Protocol    Protocol    `msg:"p"`
	MessageType MessageType `msg:"t"`
}

func (*Header) DecodeMsg

func (z *Header) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (Header) EncodeMsg

func (z Header) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (Header) MarshalMsg

func (z Header) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Header) MarshalTo

func (h *Header) MarshalTo(msg *mangos.Message) error

func (Header) Msgsize

func (z Header) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Header) UnmarshalFrom

func (h *Header) UnmarshalFrom(msg *mangos.Message) error

func (*Header) UnmarshalMsg

func (z *Header) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type MessageType

type MessageType uint64

func (*MessageType) DecodeMsg

func (z *MessageType) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (MessageType) EncodeMsg

func (z MessageType) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (MessageType) MarshalMsg

func (z MessageType) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (MessageType) Msgsize

func (z MessageType) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*MessageType) UnmarshalMsg

func (z *MessageType) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Protocol

type Protocol string
const (
	ProtocolV1 Protocol = "v1"
)

func (*Protocol) DecodeMsg

func (z *Protocol) DecodeMsg(dc *msgp.Reader) (err error)

DecodeMsg implements msgp.Decodable

func (Protocol) EncodeMsg

func (z Protocol) EncodeMsg(en *msgp.Writer) (err error)

EncodeMsg implements msgp.Encodable

func (Protocol) MarshalMsg

func (z Protocol) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (Protocol) Msgsize

func (z Protocol) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Protocol) UnmarshalMsg

func (z *Protocol) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

Directories

Path Synopsis
Package common contains data structures and message parts not specific to a single protocol.
Package common contains data structures and message parts not specific to a single protocol.
Package v1 contains the GueaaS v1 protocol implementation.
Package v1 contains the GueaaS v1 protocol implementation.

Jump to

Keyboard shortcuts

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