Versions in this module Expand all Collapse all v1 v1.0.6 Dec 19, 2022 v1.0.5 Dec 19, 2022 v1.0.4 Dec 19, 2022 v1.0.3 Dec 17, 2022 v1.0.2 Dec 17, 2022 v1.0.1 Dec 14, 2022 v1.0.0 Dec 14, 2022 Changes in this version + func DefaultErrorConnMaxEncoder(writer io.Writer) error + type Client struct + Config ClientConfig + Nacos *nacos.Nacos + func NewClient(host, port string) *Client + func NewClientByServerName(n *nacos.Nacos, serverName string) *Client + func (c *Client) Close() + func (c *Client) Do(req Request) (res Response, err error) + func (c *Client) Run() error + type ClientConfig struct + Host string + Port string + ServerName string + Timeout int64 + type Conn struct + func NewConn(c net.Conn, s *Server) *Conn + func (c Conn) Run() + type Handler interface + Serve func(ctx context.Context, r Request) (w Response, err error) + type Request struct + Id string + Method string + Params any + type Response struct + Code int + Data any + Id string + Message string + Success bool + func DefaultErrorResponseMsg(msg string) Response + type Server struct + Config ServerConfig + Handler Handler + Limiter *limiter.Limiter + Nacos *nacos.Nacos + func NewServer(c ServerConfig, h Handler, l *limiter.Limiter, n *nacos.Nacos) *Server + func (s *Server) Close() + func (s *Server) Run() error + type ServerConfig struct + Host string + MaxPool int64 + Metadata map[string]string + Name string + Port string + Timeout int64