grpcserver

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 6 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 {
	config.SubConfigurator
	// contains filtered or unexported fields
}

func (*Config) Address

func (cfg *Config) Address() string

func (*Config) Fields

func (cfg *Config) Fields() []*field.Field

func (*Config) Network

func (cfg *Config) Network() string

type OptionFunc

type OptionFunc func(*Options)

func WithConfigurator

func WithConfigurator(cfg config.SubConfigurator) OptionFunc

func WithName

func WithName(name string) OptionFunc

func WithServerOption

func WithServerOption(serverOptions ...grpc.ServerOption) OptionFunc

type Options

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

type Server

type Server struct {
	dummybox.DummyBox
	// contains filtered or unexported fields
}

func New

func New(optFunc ...OptionFunc) *Server

func (*Server) Name

func (s *Server) Name() string

func (*Server) RawServer

func (s *Server) RawServer() *grpc.Server

func (*Server) Serve

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

func (*Server) Shutdown

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

Directories

Path Synopsis
interceptor

Jump to

Keyboard shortcuts

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