server

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server exposes a gRPC TapService for TUI clients to connect to.

func New

func New(b *broker.Broker, explainClient *explain.Client) *Server

New creates a new Server backed by the given Broker. explainClient may be nil if EXPLAIN is not configured.

func (*Server) GracefulStop

func (s *Server) GracefulStop()

GracefulStop gracefully stops the server.

func (*Server) Serve

func (s *Server) Serve(lis net.Listener) error

Serve starts the gRPC server on the given listener.

func (*Server) Stop

func (s *Server) Stop()

Stop immediately stops the server, closing all active connections.

Jump to

Keyboard shortcuts

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