utils

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

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

func InitMasterLog() (io.Writer, func(prefix string) http.Handler)

func InitStdTransport

func InitStdTransport(name ...string)

func IsListen

func IsListen(addr string) error

func ReadFrame

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

func TimeSpend

func TimeSpend(name string) func()

func ToCopyToIoWriter

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