config

package
v1.16.25 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 2 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 {
	NatsURI            string        `envconfig:"NATS_URI" default:"nats://localhost:4222"`
	NatsSecure         bool          `envconfig:"NATS_SECURE" default:"false"`
	NatsSkipVerify     bool          `envconfig:"NATS_SKIP_VERIFY" default:"false"`
	NatsCertFile       string        `envconfig:"NATS_CERT_FILE" default:""`
	NatsKeyFile        string        `envconfig:"NATS_KEY_FILE" default:""`
	NatsCAFile         string        `envconfig:"NATS_CA_FILE" default:""`
	NatsConnectTimeout time.Duration `envconfig:"NATS_CONNECT_TIMEOUT" default:"5s"`
	Namespace          string        `envconfig:"NAMESPACE" default:"testkube"`
	ExecutionId        string        `envconfig:"ID" default:""`
	HttpAddress        string        `envconfig:"HTTP_ADDRESS" default:":8080"`
	GrpcAddress        string        `envconfig:"GRPC_ADDRESS" default:":9090"`
	KVBucketName       string        `envconfig:"KV_BUCKET_NAME" default:"logsState"`
}

func Get

func Get() (*Config, error)

Jump to

Keyboard shortcuts

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