# Packages
No description provided by the author
No description provided by the author
Package kitexutil provides some util methods to get RPC information.
# Functions
CalculateEventCost get events from rpcstats, and calculates the time duration of (end - start).
GetConfDir gets dir of config file.
GetConfFile gets config file path.
GetEnvLogDir is to get log dir from env.
GetFuncName returns the function name of i.
GetLogDir gets dir of log file.
GetUIntLen returns the length of the string representation of the given value n.
JSONStr2Map transform json str to map[string]string, perf is better than use json lib directly.
Map2JSONStr transform map[string]string to json str, perf is better than use json lib directly.
MarshalError convert go error to thrift exception, and encode exception over buffered binary transport.
NewMaxCounter returns a new MaxCounter.
NewNetAddr creates a new NetAddr object with the network and address provided.
Deprecated: it's not used by kitex anymore.
NewSharedTicker constructs a SharedTicker with specified interval.
NewThriftMessageCodec creates a new ThriftMessageCodec.
ReadYamlConfigFile creates a YamlConfig from the file.
SliceByteToString converts []byte to string without copy.
No description provided by the author
StringToSliceByte converts string to []byte without copy.
UnmarshalError decode binary and return error message.
WriteInt64ToStringBuilder writes a int64 to a strings.Builder.
# Constants
const of json keyword char.
const of json keyword char.
Predefined env variables and default configurations.
Predefined env variables and default configurations.
DefaultErrorSeparator is the separator for string representations of errors hold by ErrChain.
Predefined env variables and default configurations.
const of json keyword char.
const of json keyword char.
Predefined env variables and default configurations.
Predefined env variables and default configurations.
Predefined env variables and default configurations.
const of json keyword char.
const of json keyword char.
# Variables
ErrRingFull means the ring is full.
# Structs
ErrChain is used to pack multiple errors.
MaxCounter is an integer counter with upper limit.
NetAddr implements the net.Addr interface.
Deprecated: it's not used by kitex anymore.
No description provided by the author
StringBuilder is a concurrently safe wrapper for strings.Builder.
ThriftMessageCodec is used to codec thrift messages.
YamlConfig contains configurations from yaml file.
# Interfaces
KitexArgs is used for assert when get real request from XXXArgs.
KitexResult is used for assert when get real response from XXXResult.
No description provided by the author