config

package
v0.0.0-...-0aa3dee Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 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 App

type App struct {
	Name string `koanf:"name"`
	Port int    `koanf:"port"`
}

type Config

type Config struct {
	App        *App            `koanf:"app"`
	Controller *Controller     `koanf:"controller"`
	Worker     *Worker         `koanf:"worker"`
	Queue      *Queue          `koanf:"queue"`
	Logger     *logging.Config `koanf:"logger"`
	Postgres   *db.Config      `koanf:"postgres"`
	Redis      *cache.Config   `koanf:"redis"`
}

func Default

func Default() *Config

func Load

func Load(print bool) *Config

type Controller

type Controller struct {
	ControllerLeaderRedisKey string `koanf:"controller_leader_redis_key"`
	ControllerPrefixKey      string `koanf:"controller_prefix_key"`
}

type Queue

type Queue struct {
	Channels map[string]string `konaf:"channels"`
}

type Worker

type Worker struct{}

Jump to

Keyboard shortcuts

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