client

package
v0.0.0-...-3fb6a18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

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 JsonRPConnect(address string, Method string, args interface{}, reply interface{}) error

func New

func New(ctx context.Context, tcpAddr *net.TCPAddr, config api.ClientConfig) (c client)

func PingHandle

func PingHandle(conn *net.TCPConn, config api.ClientConfig)

func SSHandle

func SSHandle(conn *net.TCPConn, config api.ClientConfig)

Types

type ConnHandler

type ConnHandler func(*net.TCPConn, api.ClientConfig)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL