internal

package
v0.0.0-...-3928268 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConnReadDuration  time.Duration = time.Second * 10
	ConnWriteTimeout  time.Duration = time.Second * 3
	ResponseTimeout   time.Duration = time.Second * 3
	HeartbeatInterval time.Duration = time.Second * 3
)

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(dialer func() (net.Conn, error)) *Client

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) Dislabel

func (c *Client) Dislabel(label string) (err error)

func (*Client) Label

func (c *Client) Label(label string) (err error)

func (*Client) Multicast

func (c *Client) Multicast(label string, data any) (err error)

func (*Client) Receive

func (c *Client) Receive() (label string, data [][]byte)

type Server

type Server struct {
}

func NewServer

func NewServer() *Server

func (*Server) EnableWSS

func (s *Server) EnableWSS(addr string, certFile, keyFile string)

func (*Server) EnableWebsite

func (s *Server) EnableWebsite(addr string, certFile, keyFile string)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(addr string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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