types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec interface {
	Type() arhatgopb.CodecType
	NewEncoder(w io.Writer) Encoder
	NewDecoder(r io.Reader) Decoder
}

type Decoder

type Decoder interface {
	Decode(out interface{}) error
}

type Encoder

type Encoder interface {
	Encode(any interface{}) error
}

type Handler

type Handler interface {
	HandleCmd(id uint64, kind arhatgopb.CmdType, payload []byte) (proto.Marshaler, error)
}

Jump to

Keyboard shortcuts

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