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

type AmqpData

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

type Config

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

	Amqp() *AmqpData
	JwtParams() *JwtCfg
	Registrator() RegistratorConfig
}

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 RegistratorConfig

type RegistratorConfig struct {
	OuterUrl string `fig:"outer_url,required"`
	InnerUrl string `fig:"inner_url,required"`
	Title    string `fig:"title,required"`
	Topic    string `fig:"topic,required"`
	Prefix   string `fig:"prefix,required"`
	IsModule bool   `fig:"is_module,required"`
}

Jump to

Keyboard shortcuts

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