gateway_module

package
v0.0.0-...-53c1a21 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = wrappedCfg{
	GW: Config{
		UseProtoNames:   true,
		EmitUnpopulated: true,
		DiscardUnknown:  true,
	},
}

Functions

func CheckConfig

func CheckConfig(cfg Config) error

func Module

func Module() fx.Option

func NewGatewayMux

func NewGatewayMux(cfg Config, opts runtimeOptionsParams) *runtime.ServeMux

func RegisterGateway

func RegisterGateway(e *echo.Echo, gwmux *runtime.ServeMux)

func WithGWOptions

func WithGWOptions(opts ...runtime.ServeMuxOption) fx.Option

Types

type Config

type Config struct {
	UseProtoNames   bool `mapstructure:"use-proto-names"`
	EmitUnpopulated bool `mapstructure:"emit-unpopulated"`
	DiscardUnknown  bool `mapstructure:"discard-unknown"`
}

func ReadConfig

func ReadConfig(v *viper.Viper) (Config, error)

Jump to

Keyboard shortcuts

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