server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registrar

type Registrar func(s *grpc.Server)

Registrar регистрирует gRPC service implementations на сервере.

type Server

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

Server реализует runtime.Server для gRPC транспорта.

func New

func New(addr, crtPath, keyPath string, register Registrar) *Server

New создает новый gRPC сервер.

func (*Server) Name

func (s *Server) Name() string

Name возвращает имя сервера для runtime orchestration.

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start поднимает и запускает gRPC server.

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop останавливает gRPC server с попыткой graceful shutdown.

Jump to

Keyboard shortcuts

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