config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 10 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 {
	Port         int          `yaml:"port"`
	Orchestrator Orchestrator `yaml:"orchestrator"`
	State        State        `yaml:"state"`
}

func Load

func Load() (*Config, error)

Load the configuration from the different sources (environment, files, default)

func (*Config) OrchestratorFactory

func (c *Config) OrchestratorFactory() (orchestration.Orchestrator, error)

OrchestratorFactory initializes a new orchestrator implementation based on the configuration.

func (*Config) StateFactory

func (c *Config) StateFactory(expiryCallback state.FnExpiryCallback) (state.State, error)

StateFactory initializes a new state implementation based on the configuration.

type Orchestrator

type Orchestrator struct {
	Rik rik.Config `yaml:"rik"`
}

type State

type State struct {
	Redis redis.Config `yaml:"redis"`
}

Jump to

Keyboard shortcuts

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