grpcsrv

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func (*App) New

func (s *App) New(
	cfg *Config,
	log *slog.Logger,
	unary []grpc.UnaryServerInterceptor,
	stream []grpc.StreamServerInterceptor,
	registers []func(server *grpc.Server),
) (*App, error)

func (*App) Run

func (s *App) Run() error

func (*App) Stop

func (s *App) Stop() error

type Config

type Config struct {
	Address string `yaml:"address" env-required:"true"`
	Port    int    `yaml:"port" env-required:"true"`
}

Jump to

Keyboard shortcuts

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