config

package
v0.0.0-...-b395a04 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	TokenTTL int `yaml:"token_ttl"`
}

type Config

type Config struct {
	API    API      `yaml:"api"`
	DB     Database `yaml:"db"`
	Server Server   `yaml:"server"`
}

func Parse

func Parse(in []byte) (Config, error)

func ParseFromPath

func ParseFromPath(path string) (Config, error)

type Database

type Database struct {
	DSN string `yaml:"dsn"`
}

type Server

type Server struct {
	Address string `yaml:"address"`
	Secret  string `yaml:"secret"`
}

Jump to

Keyboard shortcuts

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