config

package
v0.0.0-...-54c5a44 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package config load and process application configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HTTPPort            string `envconfig:"PORT" default:"8080"`
	AppVersion          string `envconfig:"GAE_VERSION"`
	BuildID             string `envconfig:"BUILD_ID"`
	CommitSHAFull       string `envconfig:"COMMIT_SHA"`
	CommitSHAShort      string `envconfig:"SHORT_SHA"`
	GoogleCloudProject  string `envconfig:"GOOGLE_CLOUD_PROJECT"`
	RunningOnAppEngine  bool
	GitHubRepositoryURL string `envconfig:"GITHUB_REPOSITORY" default:"https://github.com/shahariaazam/openapi-ninja"`

	APIRequestLimitPerMinute int `envconfig:"API_REQUEST_LIMIT_PER_MINUTE" default:"10"`
}

Config store configuration for application

func Load

func Load() (Config, error)

Load configuration

Jump to

Keyboard shortcuts

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