tcp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comm

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

func InitClient

func InitClient(host string, port int, logger *slog.Logger) (*Comm, error)

func (*Comm) Run

func (c *Comm) Run(ctx context.Context) error

func (*Comm) RxCh

func (c *Comm) RxCh() chan json.RawMessage

func (*Comm) TxCh

func (c *Comm) TxCh() chan json.RawMessage

type Server

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

func InitServer

func InitServer(logger *slog.Logger, port int) *Server

func (*Server) Accept

func (o *Server) Accept(ctx context.Context) error

func (*Server) CommCh

func (o *Server) CommCh() chan *Comm

Jump to

Keyboard shortcuts

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