config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(appId int64, privateKeyFileName string, prefixes []string, debug bool)

Manually instantiate Config. This bypasses configuration validation. Used for testing

func Validate

func Validate()

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func Get

func Get() *Config

func (*Config) GetAppId

func (c *Config) GetAppId() int64

func (*Config) GetGithubHost

func (c *Config) GetGithubHost() string

func (*Config) GetPrivateKeyFileName

func (c *Config) GetPrivateKeyFileName() string

func (*Config) HasWipPrefix

func (c *Config) HasWipPrefix(title string) bool

func (*Config) IsDebugging

func (c *Config) IsDebugging() bool

Jump to

Keyboard shortcuts

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