config

package
v1.207.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound for service.
	ErrNotFound = errors.New("not found")

	// ErrInvalidArgument for service.
	ErrInvalidArgument = errors.New("invalid argument")
)

Module for fx.

Functions

func IsInvalidArgument added in v1.185.0

func IsInvalidArgument(err error) bool

IsInvalidArgument for service.

func IsNotFound added in v1.185.0

func IsNotFound(err error) bool

IsNotFound for service.

Types

type Config added in v1.185.0

type Config struct {
	// contains filtered or unexported fields
}

Config for a specific application.

func NewConfig added in v1.185.0

func NewConfig(app, ver, env, continent, country, cmd, kind string) (*Config, error)

NewConfig for service.

func (*Config) Application added in v1.185.0

func (c *Config) Application() string

Application for config.

func (*Config) Command added in v1.185.0

func (c *Config) Command() string

Command for config.

func (*Config) Continent added in v1.185.0

func (c *Config) Continent() string

Continent for config.

func (*Config) Country added in v1.185.0

func (c *Config) Country() string

Country for config.

func (*Config) Environment added in v1.185.0

func (c *Config) Environment() string

Environment for config.

func (*Config) Kind added in v1.185.0

func (c *Config) Kind() string

Kind for config.

func (*Config) String added in v1.185.0

func (c *Config) String() string

String of config.

func (*Config) Version added in v1.185.0

func (c *Config) Version() string

Version for config.

type Configuration added in v1.185.0

type Configuration struct {
	// contains filtered or unexported fields
}

Configuration for the different transports.

func NewConfiguration added in v1.185.0

func NewConfiguration(provider *provider.Transformer, config source.Configurator, source *source.Transformer) *Configuration

NewConfiguration for the different transports.

func (*Configuration) GetConfig added in v1.185.0

func (s *Configuration) GetConfig(ctx context.Context, cfg *Config) ([]byte, error)

GetConfig for service.

func (*Configuration) GetSecrets added in v1.185.0

func (s *Configuration) GetSecrets(ctx context.Context, secs map[string]string) (map[string][]byte, error)

GetSecrets for service.

Jump to

Keyboard shortcuts

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