config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 5 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 {
	Target struct {
		Url       string
		TenantId  string `mapstructure:"tenant_id"`
		LabelName string `mapstructure:"label_name"`
	}
	Bind struct {
		Port    int
		Address string
	}
}

func NewConfig

func NewConfig() (*Config, error)

func (*Config) BindAddr

func (config *Config) BindAddr() string

func (*Config) Print

func (config *Config) Print()

func (*Config) TargetUrl

func (config *Config) TargetUrl() (*url.URL, error)

Jump to

Keyboard shortcuts

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