utils

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InboundMode  string = "PortHijackMode"
	OriginMode          = ""
	OutboundMode        = "AddrHijackMode"
)

Variables

View Source
var IfHandleThriftErrno bool

Functions

func Bytes2str

func Bytes2str(b []byte) string

func CopyHttpHeader

func CopyHttpHeader(h http.Header) http.Header

func DeepCopy

func DeepCopy(dst, src interface{}) error

func GenMeshResourceName

func GenMeshResourceName(usn, lidc, ip string, port int, HijackAddr string) string

func PrettyJson

func PrettyJson(v interface{}, indent bool) []byte

func ReadFullFile

func ReadFullFile(filePath string) (string, error)

func Str2bytes

func Str2bytes(s string) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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