util

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertTLSConfigToDTLSConfig

func ConvertTLSConfigToDTLSConfig(tlsConfig *tls.Config) *dtls.Config

func GetBytesBuf added in v0.3.0

func GetBytesBuf(size int) []byte

func GetMsgType added in v0.3.0

func GetMsgType(m interface{}) arhatgopb.MsgType

func NewCmd added in v0.3.0

func NewCmd(
	marshal types.MarshalFunc,
	kind arhatgopb.CmdType,
	id, seq uint64, body interface{},
) (*arhatgopb.Cmd, error)

func NewMsg added in v0.3.0

func NewMsg(
	marshal types.MarshalFunc,
	kind arhatgopb.MsgType,
	id, ack uint64, body interface{},
) (*arhatgopb.Msg, error)

func PutBytesBuf added in v0.3.0

func PutBytesBuf(b *([]byte))

Types

This section is empty.

Jump to

Keyboard shortcuts

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