config

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package config contains configurations and command line arguments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChoreConfig

type ChoreConfig struct {
	Interval      time.Duration `` /* 169-byte string literal not displayed */
	InitialDelay  time.Duration `` /* 198-byte string literal not displayed */
	InitialRandom bool          `` /* 170-byte string literal not displayed */
}

ChoreConfig contains configurations for background jobs.

type PaginationConfig

type PaginationConfig struct {
	MaxLimit  int `` /* 146-byte string literal not displayed */
	MaxOffset int `` /* 155-byte string literal not displayed */
}

PaginationConfig contains configurations for pagination.

type ServerConfig

type ServerConfig struct {
	Port uint   `arg:"-p,--port,env:PORT" placeholder:"PORT" help:"port on which to listen for API requests" default:"80"`
	Bind string `arg:"-b,--bind,env:BIND" placeholder:"ADDR" help:"address on which to listen for API requests" default:"0.0.0.0"`
}

ServerConfig contains configurations for the API server.

Jump to

Keyboard shortcuts

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