config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: Apache-2.0 Imports: 1 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 {
	// The port to run the web server on
	ServerPort int `required:"true" default:"8080" envconfig:"server_port"`
	// The port to run healthchecks on
	HealthServerPort int `required:"true" default:"8081" envconfig:"health_server_port"`

	OauthClientID     string `required:"true" split_words:"true"`
	OauthClientSecret string `required:"true" split_words:"true"`
	IntegrationID     int64  `required:"true" split_words:"true"`
	WebhookSecret     string `split_words:"true"`
	PrivateKey        string `required:"true" split_words:"true"`
}

Config includes all configuration values used by actionspanel

func NewConfig

func NewConfig() Config

NewConfig scans environment variables for values This function will panic if the configuration can't be read successfully

Jump to

Keyboard shortcuts

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