Documentation ¶
Index ¶
- func ConvertMap2String(meta map[string]string) string
- func ConvertMeta2Map(meta string) map[string]string
- func Decode(val map[string]interface{}, fn interface{}) (gErr error)
- func EncodePassword(unencoded string) string
- func ExternalIPV4() (string, error)
- func ExternalIPV6() (string, error)
- func GetFreePort() (port int, err error)
- func Map(dst, src interface{}, opts ...func(*mergo.Config)) error
- func Marshal(v interface{}) string
- func MarshalIndent(v interface{}) string
- func Mergo(dst, src interface{}, opts ...func(*mergo.Config)) error
- func ParseBool(data string) bool
- func ParseRpcxAddress(addr string) (network string, ip string, port int, err error)
- func PathExist(path string) bool
- func Retry(c int, fn func() error) (err error)
- func StructMerge(dst, src interface{}) error
- func UnWrap(t interface{}, fn interface{}) (err error)
- func Unzip(data []byte) ([]byte, error)
- func Zip(data []byte) ([]byte, error)
- type SnappyCompressor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertMap2String ¶
func ConvertMeta2Map ¶
func EncodePassword ¶
func ExternalIPV4 ¶
ExternalIPV4 gets external IPv4 address of this server.
func ExternalIPV6 ¶
ExternalIPV6 gets external IPv6 address of this server.
func MarshalIndent ¶
func MarshalIndent(v interface{}) string
func ParseRpcxAddress ¶
ParseRpcxAddress parses rpcx address such as tcp@127.0.0.1:8972 quic@192.168.1.1:9981
func StructMerge ¶
func StructMerge(dst, src interface{}) error
Types ¶
type SnappyCompressor ¶
type SnappyCompressor struct { }
SnappyCompressor implements snappy compressor
Click to show internal directories.
Click to hide internal directories.