config

package
v0.0.0-...-4f8c29e Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 1 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 {
	BindAddress       string   `env:"BIND_ADDRESS" flag:"bind-address"`
	CertFile          string   `env:"CERT_FILE" flag:"cert-file" json:"-"`
	KafkaBroker       []string `env:"KAFKA_STREAMING_BROKER_ADDR" flag:"kafka-broker-addr"`
	KeyFile           string   `env:"KEY_FILE" flag:"key-file" json:"-"`
	SchemaRegistryURL string   `env:"SCHEMA_REGISTRY_URL" flag:"schema-registry-url"`
	// contains filtered or unexported fields
}

func Get

func Get() (*Config, error)

func (Config) ServiceConfig

func (c Config) ServiceConfig() ServiceConfig

ServiceConfig returns a ServiceConfig interface for Config.

type ServiceConfig

type ServiceConfig struct {
	Config
}

ServiceConfig wraps Config to implement service.Config.

func (ServiceConfig) BindAddr

func (cfg ServiceConfig) BindAddr() string

BindAddr implements service.Config.BindAddr.

func (ServiceConfig) CertFile

func (cfg ServiceConfig) CertFile() string

CertFile implements service.Config.CertFile.

func (ServiceConfig) KeyFile

func (cfg ServiceConfig) KeyFile() string

KeyFile implements service.Config.KeyFile.

func (ServiceConfig) Namespace

func (cfg ServiceConfig) Namespace() string

Namespace implements service.Config.Namespace.

Jump to

Keyboard shortcuts

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