option

package
v0.0.0-...-b3af538 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCClientOption

type GRPCClientOption struct {
	ClientCert    string `json:"client_cert"`
	ServerAddress string `json:"server_address"`
}

func NewGRPCClientOption

func NewGRPCClientOption() *GRPCClientOption

func (*GRPCClientOption) AddFlags

func (g *GRPCClientOption) AddFlags()

func (*GRPCClientOption) Validate

func (g *GRPCClientOption) Validate() []error

type GRPCServerOption

type GRPCServerOption struct {
	BindAddress string `json:"bind_address"`
	BindPort    int    `json:"bind_port"`
	MaxMsgSize  int    `json:"max_msg_size"`
}

func NewGRPCOption

func NewGRPCOption() *GRPCServerOption

func (*GRPCServerOption) AddFlags

func (g *GRPCServerOption) AddFlags()

func (*GRPCServerOption) Validate

func (g *GRPCServerOption) Validate() []error

type LogOption

type LogOption struct {
	Level    string        `json:"level"`
	ZapLevel zapcore.Level `json:"-"`
}

func NewLogOption

func NewLogOption() *LogOption

func (*LogOption) AddFlags

func (l *LogOption) AddFlags()

func (*LogOption) Validate

func (l *LogOption) Validate() []error

Jump to

Keyboard shortcuts

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