config

package
v0.0.0-...-774fe72 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: BSD-3-Clause Imports: 4 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 struct {
	HTTPClient HTTPClient
	HTTPServer HTTPServer
	SQLite     SQLite
}

func Load

func Load() (Config, error)

Load loads the configuration from the config file.

type HTTPClient

type HTTPClient struct {
	Timeout time.Duration
}

type HTTPServer

type HTTPServer struct {
	Addr         string
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

type SQLite

type SQLite struct {
	Path string
}

Jump to

Keyboard shortcuts

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