utils

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorInvalidFrame = errors.New("invalid frame")
)

Functions

func DecodeFrame

func DecodeFrame(data []byte) ([]byte, error)

func EncodeFrame

func EncodeFrame(data []byte) []byte

func ExistFile

func ExistFile(path string) bool

func InitLogTransport

func InitLogTransport(name string) io.Writer

func InitStdTransport added in v0.4.0

func InitStdTransport(name string)

func IsListen

func IsListen(addr string) error

func ReadFrame

func ReadFrame(r io.Reader) ([]byte, error)

func Timeout added in v0.1.1

func Timeout(name string) func()

func ValidAddr

func ValidAddr(addr string) bool

func WriteFrame

func WriteFrame(w io.Writer, data []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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