Versions in this module Expand all Collapse all v0 v0.0.3 May 19, 2023 Changes in this version + func NewClient(opts ...ClientOption) network.Client + func NewServer(opts ...ServerOption) network.Server + type ClientOption func(o *clientOptions) + func WithClientDialAddr(addr string) ClientOption + func WithClientEnableHeartbeat(enable bool) ClientOption + func WithClientHeartbeatInterval(heartbeatInterval time.Duration) ClientOption + func WithClientMaxMsgLen(maxMsgLen int) ClientOption + type ServerOption func(o *serverOptions) + func WithServerEnableHeartbeatCheck(enable bool) ServerOption + func WithServerHeartbeatInterval(heartbeatInterval time.Duration) ServerOption + func WithServerListenAddr(addr string) ServerOption + func WithServerMaxConnNum(maxConnNum int) ServerOption + func WithServerMaxMsgLen(maxMsgLen int) ServerOption