Documentation ¶
Index ¶
- Constants
- Variables
- func BytesToJson(bytes []byte, x any)
- func Decode(data []byte, messageEntity proto.Message) error
- func Encode(m proto.Message) []byte
- func LoadConfigurationFile(configPath string) map[string]any
- func ReadByte(rd io.Reader) ([]byte, error)
- func RouteSlot(serviceName string) int32
- func TcpDecode(reader *bufio.Reader) ([]byte, error)
- func TcpEncode(message []byte) ([]byte, error)
- func ToJson(x any) string
- func ToJsonByte(x any) []byte
- func ValidateIntType(data any, errType string) int32
- func ValidateRegexp(data string, regex string, errMsg string)
- func ValidateStringType(data any, errType string) string
Constants ¶
View Source
const (
SlotsCount = 16384
)
Variables ¶
Functions ¶
func BytesToJson ¶
func LoadConfigurationFile ¶
func ToJsonByte ¶
func ValidateIntType ¶
func ValidateRegexp ¶
func ValidateStringType ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.