grpcserver

package
v0.0.0-...-b797f85 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorStreamServerInterceptor

func ErrorStreamServerInterceptor(logger *zap.Logger) grpc.StreamServerInterceptor

func ErrorUnaryServerInterceptor

func ErrorUnaryServerInterceptor(logger *zap.Logger) grpc.UnaryServerInterceptor

Types

type Config

type Config struct {
	BindIP string `yaml:"bind_ip" env:"BIND_IP" env-default:"0.0.0.0"`
	Port   int    `yaml:"port" env:"PORT" env-default:"80"`
}

func (*Config) Serve

func (cfg *Config) Serve(register func(*grpc.Server), logger *zap.Logger, opt ...grpc.ServerOption) error

Jump to

Keyboard shortcuts

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