config

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT 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 {
	Port              int64 `default:"8080" split_words:"true"`
	Debug             bool  `default:"false"`
	GraphQLPlayground bool  `envconfig:"GRAPHQL_PLAYGROUND" default:"false"`

	Persistence               bool   `split_words:"true" default:"false"`
	PersistenceBoltDBFilePath string `envconfig:"PERSISTENCE_BOLTDB_FILEPATH" default:"ss.db"`
	PersistenceRedisAddress   string `split_words:"true"`
	PersistenceRedisPassword  string `split_words:"true"`

	GithubToken string   `split_words:"true"`
	GithubRepos []string `split_words:"true"`

	DummyPeriod  string `split_words:"true"`
	DummyMessage string `split_words:"true"`

	TwitterConsumerKey    string   `split_words:"true"`
	TwitterConsumerSecret string   `split_words:"true"`
	TwitterAccessToken    string   `split_words:"true"`
	TwitterAccessSecret   string   `split_words:"true"`
	TwitterQuery          []string `split_words:"true"`

	Spokesman         bool   `split_words:"true" default:"false"`
	SpokesmanName     string `split_words:"true" default:"Spokesman"`
	SpokesmanUsername string `split_words:"true" default:"spokesman"`
	SpokesmanEmail    string `split_words:"true"`
}

Config wraps all the necessary

func LoadDefault

func LoadDefault() (*Config, error)

LoadDefault load a minimal default configuration

Jump to

Keyboard shortcuts

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