Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 8 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 ScopeService for TUI clients to connect to.

func New

func New(b *broker.Broker) *Server

New creates a new Server backed by the given Broker.

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