conf

package
v0.0.0-...-a12012e Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register() fx.Option

Types

type Conf

type Conf struct {
	ServiceName string `config:"service_name"`
	Profile     string `config:"profile"`

	HTTPPathPrefix           string        `config:"http_path_prefix"`
	HTTPRequestReadTimeout   time.Duration `config:"http_request_read_timeout"`
	HTTPResponseWriteTimeout time.Duration `config:"http_response_write_timeout"`

	GRPCMaxMessageSizeMB int           `config:"grpc_max_message_size_mb"`
	GRPCKeepaliveTime    int           `config:"grpc_keepalive_time"`
	GRPCKeepaliveTimeout int           `config:"grpc_keepalive_timeout"`
	GRPCCallTimeout      time.Duration `config:"grpc_call_timeout"`

	GRPCAccountServiceURI string `config:"grpc_account_service_uri"`
}

func New

func New() (*Conf, error)

Jump to

Keyboard shortcuts

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