utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 13 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)

func IsListen

func IsListen(addr string) error

func ReadFrame

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

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