bootstrap

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(options *ClientOptions) *Client

func (*Client) Dial

func (client *Client) Dial(network, addr string) error

func (*Client) Options

func (client *Client) Options() *ClientOptions

type ClientOptions

type ClientOptions struct {
	ChannelFactory func(net.Conn) channel.Channel
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(options *ServerOptions) *Server

func (*Server) Close

func (server *Server) Close() error

关闭连接

func (*Server) Listen

func (server *Server) Listen(network, addr string) error

type ServerOptions

type ServerOptions struct {
	ChannelFactory func(conn net.Conn) channel.Channel
}

Jump to

Keyboard shortcuts

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