config

package
v0.2024.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Root

type Root struct {
	system.Config
	Storage *Storage `json:"storage,omitempty"`
}

type Storage

type Storage struct {
	Type StorageType `json:"type,omitempty"`
	pgxutil.ConnectConfig
	// TTL is the time-to-live for records. Zero-value (not-specified) means "forever".
	TTL *TTL `json:"ttl,omitempty"`
}

type StorageType

type StorageType string
const (
	StorageTypePostgres StorageType = "postgres"
	StorageTypeBolt     StorageType = "bolt"
)

type TTL

type TTL struct {
	MaxAge   jsontypes.Duration `json:"maxAge,omitempty"`
	MaxCount int64              `json:"maxCount,omitempty"`
}

Jump to

Keyboard shortcuts

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