utils

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 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 InitMasterLog added in v0.5.0

func InitMasterLog() 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 TimeSpend added in v0.5.0

func TimeSpend(name string) func()

func ToCopyToIoWriter added in v0.5.0

func ToCopyToIoWriter(ws ...io.Writer) io.Writer

func ValidAddr

func ValidAddr(addr string) bool

func WriteFrame

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

Types

This section is empty.

Directories

Path Synopsis
Package schema implements OpenAPI 3 compatible JSON Schema which can be generated from structs.
Package schema implements OpenAPI 3 compatible JSON Schema which can be generated from structs.

Jump to

Keyboard shortcuts

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