server

package
v0.7.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 24 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 holds the gRPC and HTTP servers for the console backend.

func New

func New(cfg *config.Config) *Server

New creates a new console Server from configuration.

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context)

Shutdown gracefully stops both servers.

func (*Server) StartGRPC

func (s *Server) StartGRPC(addr string) error

StartGRPC starts the gRPC server on the given address.

func (*Server) StartHTTP

func (s *Server) StartHTTP(httpAddr, grpcAddr string) error

StartHTTP starts the grpc-gateway HTTP server on the given address, connecting to the gRPC server at grpcAddr.

Jump to

Keyboard shortcuts

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