Versions in this module Expand all Collapse all v0 v0.2.0 Apr 16, 2023 v0.1.0 Jan 12, 2023 Changes in this version + func SetLogger(logger log.Logger) + func SetPollerNums(n int) error + type Client struct + func NewClient(network, address string, opts ...ClientOption) *Client + func (c *Client) Run() error + func (c *Client) Shutdown(ctx context.Context) error + type ClientOption func(options *ClientOptions) + func WithClientNewSessionCallBackFunc(f NewSessionCallBackFunc) ClientOption + type ClientOptions struct + type NewSessionCallBackFunc func(s session.Session) error + type Server struct + func NewServer(network, address string, opts ...ServerOption) *Server + func (s *Server) Server() error + func (s *Server) Shutdown(ctx context.Context) error + type ServerOption func(*ServerOptions) + func WithServiceNewSessionCallBackFunc(f NewSessionCallBackFunc) ServerOption + type ServerOptions struct