conf

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildTime   string
	BuildCommit string
)

Build time and commit information.

⚠️ WARNING: should only be set by "-ldflags".

Functions

This section is empty.

Types

type Config

type Config struct {
	// Server contains the server configuration.
	Server struct {
		ExternalURL string `ini:"EXTERNAL_URL"`
		LogsRootDir string
	}
	// GitHubApp contains the GitHub App configuration.
	GitHubApp struct {
		AppID         int64  `ini:"APP_ID"`
		ClientID      string `ini:"CLIENT_ID"`
		ClientSecret  string
		PrivateKey    string
		WebhookSecret string
	}
	// Codenotify contains the Codenotify configuration.
	Codenotify struct {
		BinPath string
	}
}

Config contains all the configuration.

func Load

func Load() (*Config, error)

Load loads configuration from file.

Jump to

Keyboard shortcuts

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