utils

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 14 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 GlobalLabelGet added in v0.8.2

func GlobalLabelGet() map[string]string

func GlobalLabelSet added in v0.8.2

func GlobalLabelSet(gLabel map[string]string)

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