config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 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.constantine.archway.tech:443"`
	TLS       bool   `env:"GRPC_TLS_ENABLED" envDefault:"true"`
	Timeout   int    `env:"GRPC_TIMEOUT_SECONDS" envDefault:"5"`
	Prefix    string `env:"PREFIX" envDefault:"archway"`
	ChainName string `env:"CHAIN_NAME" envDefault:"archway"`
	ChainID   string `env:"CHAIN_ID" envDefault:"constantine-3"`
}

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