nexus

package
v0.0.0-...-1a3a2fa Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandID

func CommandID(ctx context.Context) *int64

func CtxWithCID

func CtxWithCID(ctx context.Context, cmd *pb.Command) context.Context

func New

func New(transcriptCfg config.Workers, tgst tgstore.Store, met metrics.Metrics) (*nexus, error)

Types

type CommandIDKeyT

type CommandIDKeyT int64
const CommandIDKey CommandIDKeyT = 0

type Connection

type Connection interface {
	io.Closer
	CloseCh()

	NetConn() net.Conn

	Shutdown()

	Send(broadcast.ToClientMsg) error
}

type Nexus

type Nexus interface {
	Broadcast(broadcast.Message)
	PrivateRoutes(chi.Router)
	Transcriber() workers.Manager
	Go(ctx context.Context)
	HUP(*config.Config)
}

type Registry

type Registry interface {
	NewClient(Connection, entities.Subject) *client
	Register(*client)
	Unregister(*client)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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