socket

package
v0.0.0-...-05a3ed2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextKey

type ContextKey string

type Host

type Host server.Server[Peer]

type Peer

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

type Socket

type Socket struct {
	*config.Flags
	// contains filtered or unexported fields
}

func New

func New(flags *config.Flags, name, version string) *Socket

func (*Socket) Connect

func (s *Socket) Connect(ctx context.Context, clients chan<- Peer) error

func (*Socket) Open

func (s *Socket) Open(ctx context.Context) (err error)

func (*Socket) Respond

func (s *Socket) Respond(_ context.Context, client Peer) server.Task

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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