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 AmqpCfg

type AmqpCfg struct {
	Auth         string `figure:"auth,required"`
	Orchestrator string `figure:"orchestrator,required"`
}

type Config

type Config interface {
	comfig.Logger
	pgdb.Databaser
	types.Copuser
	comfig.Listenerer
	Publisher() *amqp.Publisher
	Subscriber() *amqp.Subscriber
	JwtParams() *JwtCfg
	Amqp() *AmqpCfg
}

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"`
}

type PublisherConfig

type PublisherConfig struct {
	AmqpUrl string `fig:"amqp_url,required"`
}

type SubscriberConfig

type SubscriberConfig struct {
	AmqpUrl           string `fig:"amqp_url,required"`
	OrchestratorTopic string `fig:"orchestrator,required"`
}

Jump to

Keyboard shortcuts

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