config

package
v0.0.0-...-2b26f3a Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: GPL-3.0 Imports: 2 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 {
	// Setting port for gin
	Port string `envconfig:"PORT" default:"8080"`

	// PokeAPI Setting
	PokeAPICacheDuration string `envconfig:"POKEAPI_CACHE_DURATION" default:"3600"`

	// Pokemon Sprite
	PokemonSprite  string `` /* 237-byte string literal not displayed */
	PokemonSprites []string

	// Rendering HTML Template
	UseTemplateCache bool `envconfig:"USE_TEMPLATE_CACHE" default:"false"`
	TemplateCache    map[string]*template.Template
}

Config struct to implement model of this service's configuration

func Get

func Get() Config

Get to get defined configuration

Jump to

Keyboard shortcuts

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