nets

package
v0.0.0-...-095eb94 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Pass = "nets pass"
	Salt = "nets salt"
	Port = "3880"
)

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(reader Reader, raddr string) *Client

func (*Client) Conv

func (p *Client) Conv() uint32

func (*Client) Run

func (p *Client) Run()

func (*Client) Send

func (p *Client) Send(msg *pb.Msg)

type Reader

type Reader interface {
	Read(*pb.Msg)
}

type Sender

type Sender interface {
	Send(*pb.Msg)
	Conv() uint32
}

type Server

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

func NewServer

func NewServer(reader Reader) *Server

func (*Server) Conv

func (p *Server) Conv() uint32

func (*Server) Run

func (p *Server) Run()

func (*Server) Send

func (p *Server) Send(msg *pb.Msg)

type User

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

Jump to

Keyboard shortcuts

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