Versions in this module Expand all Collapse all v0 v0.0.2 Jan 24, 2025 Changes in this version + func NewClient(opts ...ClientOption) gnetwork.Client + func NewServer(opts ...ServerOption) gnetwork.Server + type ClientOption func(o *clientOptions) + func WithClientDialAddr(addr string) ClientOption + func WithClientDialTimeout(timeout time.Duration) ClientOption + func WithClientHeartbeatInterval(heartbeatInterval time.Duration) ClientOption + type HeartbeatMechanism string + const RespHeartbeat + const TickHeartbeat + type ServerOption func(o *serverOptions) + func WithServerHeartbeatInterval(heartbeatInterval time.Duration) ServerOption + func WithServerHeartbeatMechanism(heartbeatMechanism HeartbeatMechanism) ServerOption + func WithServerListenAddr(addr string) ServerOption + func WithServerMaxConnNum(maxConnNum int) ServerOption