config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 9 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 interface {
	comfig.Logger
	pgdb.Databaser
	types.Copuser
	comfig.Listenerer

	JWT() *JWT
	DBCleaner() *DBCleaner
}

func New

func New(getter kv.Getter) Config

type DBCleaner

type DBCleaner struct {
	Period time.Duration `fig:"period,required"`
}

type JWT

type JWT struct {
	SecretKey      []byte
	ExpirationTime time.Duration
}

Jump to

Keyboard shortcuts

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