grpcgateway

package
v1.0.31 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 7 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 {
	Target string `config:"target" desc:"target gprc server addr"`
	Addr   string `config:"addr" desc:"format: host:port"`
	// contains filtered or unexported fields
}

func DefaultConfig

func DefaultConfig(key string) *Config

func StdConfig

func StdConfig(key string, optionFunc ...OptionFunc) *Config

func (*Config) Build

func (c *Config) Build() *Server

func (*Config) Path

func (c *Config) Path() string

type Handler

type Handler Wrap

type OptionFunc

type OptionFunc func(*Config)

func WithMuxOption

func WithMuxOption(opts ...runtime.ServeMuxOption) OptionFunc

func WithRegisterHandler

func WithRegisterHandler(handlers ...Handler) OptionFunc

func WithWrap

func WithWrap(wrap Wrap) OptionFunc

type Server

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

func (*Server) Name

func (server *Server) Name() string

func (*Server) Serve

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

func (*Server) Shutdown

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

type Wrap

type Wrap func(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

Jump to

Keyboard shortcuts

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