revconn

package
v0.0.0-...-32839fa Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMethod

type AuthMethod byte
const (
	NoAuth                 AuthMethod = 0
	NoAcceptableAuthMethod AuthMethod = 255
)

type Client

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

func NewClient

func NewClient(addr string) *Client

func (*Client) Connect

func (c *Client) Connect(ctx context.Context, id uint64) (net.Conn, error)

type OnConnectCB

type OnConnectCB func(id uint64, conn net.Conn) error

type Server

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

func NewServer

func NewServer(cb OnConnectCB) *Server

func (*Server) Serve

func (s *Server) Serve(lis net.Listener) error

type Version

type Version byte
const (
	V1 Version = 1
)

Jump to

Keyboard shortcuts

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