server

package
v3.15.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitAddress added in v3.15.3

func SplitAddress(raw string) (network, addr string, _ error)

Types

type Server

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

func New

func New(
	cfg *config.Config,
	logger *zap.Logger,
	registrar ServiceRegistrar,
) (*Server, error)

func (*Server) Addr

func (s *Server) Addr() string

func (*Server) Serve

func (s *Server) Serve() (err error)

func (*Server) Shutdown

func (s *Server) Shutdown()

type ServiceRegistrar

type ServiceRegistrar func(grpc.ServiceRegistrar)

Jump to

Keyboard shortcuts

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