client

package
v0.0.0-...-617be64 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TTL is the maximum amount of time that every client is allowed to stay
	// connected in one session.
	TTL = 3 * time.Hour
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(c Config) *Client

func (*Client) Daemon

func (c *Client) Daemon()

func (*Client) Delete

func (c *Client) Delete()

func (*Client) Expiry

func (c *Client) Expiry() chan struct{}

func (*Client) Reader

func (c *Client) Reader() chan struct{}

func (*Client) Stream

func (c *Client) Stream(byt []byte) error

func (*Client) Ticker

func (c *Client) Ticker() chan struct{}

func (*Client) Wallet

func (c *Client) Wallet() common.Address

func (*Client) Writer

func (c *Client) Writer() chan struct{}

type Config

type Config struct {
	Con *websocket.Conn
	Don <-chan struct{}
	Fcn chan []byte
	Lim ratelimit.Limiter
	Log logger.Interface
	Rtr *router.Client
	Tkx *tokenx.TokenX[common.Address]
	Uid byte
	Vec *vector.Vector
	Wal common.Address
}

Jump to

Keyboard shortcuts

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