server

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run[T any](ctx context.Context, cancel context.CancelFunc, serv Server[T]) error

Types

type Server

type Server[T any] interface {
	Open(ctx context.Context) error
	Connect(ctx context.Context, clients chan<- T) error
	Respond(ctx context.Context, client T) Task
}

type Task

Jump to

Keyboard shortcuts

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