grpc

package
v0.0.0-...-221f2c5 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: Apache-2.0 Imports: 11 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 {
	Addr          string `yaml:"addr"`
	Port          string `yaml:"port"`
	WebPort       string `yaml:"webPort"`
	EnableReflect bool   `yaml:"enableReflect"`
	EnableGateWay bool   `yaml:"enableGateWay"`
}

type Entry

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

func New

func New(config Config, options ...Option) *Entry

func (*Entry) Run

func (e *Entry) Run() error

func (*Entry) Stop

func (e *Entry) Stop(ctx context.Context) error

type Option

type Option func(entry *Entry)

func WithJumpMethods

func WithJumpMethods(jumps map[string]bool) Option

func WithJwtFactory

func WithJwtFactory(jwtFactory *jwt.JWTFactory) Option

func WithRegisteServer

func WithRegisteServer(server RegisteServer) Option

func WithRegisteWebHandler

func WithRegisteWebHandler(handler RegisteWebHandler) Option

type RegisteServer

type RegisteServer func(server *grpc.Server)

type RegisteWebHandler

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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