grpcserver

package
v0.0.0-...-0f16109 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2026 License: AGPL-3.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 Config

type Config struct {
	Host string `koanf:"host"`
	Port int    `koanf:"port"`
}

type Server

type Server struct {
	GrpcServer *grpc.Server
	// contains filtered or unexported fields
}

func New

func New(conf Config, log *slog.Logger, externalOpts ...grpc.ServerOption) Server

func (*Server) Start

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

func (*Server) Stop

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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