Documentation ¶
Index ¶
- Constants
- Variables
- func JsonRPConnect(address string, Method string, args interface{}, reply interface{}) error
- func New(ctx context.Context, tcpAddr *net.TCPAddr, config api.ClientConfig) (c client)
- func PingHandle(conn *net.TCPConn, config api.ClientConfig)
- func SSHandle(conn *net.TCPConn, config api.ClientConfig)
- type ConnHandler
Constants ¶
View Source
const (
DefaultConnectAddr = "127.0.0.1:9001"
)
Variables ¶
View Source
var ( DefaultConnect = func() *net.TCPAddr { tcpAddr, _ := net.ResolveTCPAddr("tcp", DefaultConnectAddr) return tcpAddr } )
Functions ¶
func JsonRPConnect ¶
func PingHandle ¶
func PingHandle(conn *net.TCPConn, config api.ClientConfig)
Types ¶
type ConnHandler ¶
type ConnHandler func(*net.TCPConn, api.ClientConfig)
Click to show internal directories.
Click to hide internal directories.