config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmqpConfig

type AmqpConfig struct {
	Topic        string `fig:"topic,required"`
	Publisher    string `fig:"publisher,required"`
	Subscriber   string `fig:"subscriber,required"`
	Orchestrator string `fig:"orchestrator,required"`
}

type AmqpData

type AmqpData struct {
	Topic        string
	Orchestrator string
	Publisher    *amqp.Publisher
	Subscriber   *amqp.Subscriber
}

type Config

type Config interface {
	comfig.Logger
	pgdb.Databaser
	types.Copuser
	comfig.Listenerer

	JwtParams() *JwtCfg
	Amqp() *AmqpData
}

func New

func New(getter kv.Getter) Config

type JwtCfg

type JwtCfg struct {
	Secret      string `figure:"secret"`
	RefreshLife string `figure:"refresh_life"`
	AccessLife  string `figure:"access_life"`
}

Jump to

Keyboard shortcuts

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