config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 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 {
	Addr    string `env:"GRPC_ADDR" envDefault:"grpc.buenavista.wardenprotocol.org:443"`
	TLS     bool   `env:"GRPC_TLS_ENABLED" envDefault:"true"`
	Timeout int    `env:"GRPC_TIMEOUT_SECONDS" envDefault:"5"`
	ChainID string `env:"CHAIN_ID" envDefault:"buenavista-1"`
}

func (Config) GRPCConn

func (c Config) GRPCConn() (*grpc.ClientConn, error)

Jump to

Keyboard shortcuts

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