grpc

package
v0.0.0-...-35a4376 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 20 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 {
	*server.Config
}

func NewConfig

func NewConfig(opts ...server.ConfigOption) *Config

func (*Config) HTTPServerConfig

func (c *Config) HTTPServerConfig() *server.Config

func (*Config) ValidateConfigFields

func (c *Config) ValidateConfigFields() error

type Server

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

func NewServer

func NewServer(
	tracer tracing.Tracer,
	meter metrics.Meter,
	logger log.Logger,
	logBody bool,
	registrar func(server grpc.ServiceRegistrar),
) *Server

func (Server) Serve

func (s Server) Serve(l net.Listener) error

func (Server) Shutdown

func (s Server) Shutdown(_ context.Context) error

func (Server) Type

func (s Server) Type() string

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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