config

package
v0.0.0-...-32823bc Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func LoadYaml

func LoadYaml()

Types

type Config

type Config struct {
	Port  string `yaml:port`
	Redis struct {
		Ip   string `yaml:ip`
		Port string `yaml:port`
		Db   int    `yaml:db`
	}
	Session struct {
		Cookie string `yaml:cookie`
		Key    string `yaml:key`
	}
	Sendgrid struct {
		Key      string `yaml:key`
		Endpoint string `yaml:endpoint`
		Username string `yaml:username`
		Password string `yaml:password`
	}
	Cassandra struct {
		Ip       string `yaml:ip`
		Keyspace string `yaml:keyspace`
	}

	Datadog struct {
		Connstr string `yaml:connstr`
	}

	Rabbit struct {
		ConnectString string `yaml:connstr`
	}
	MailGun struct {
		Key      string `yaml:key`
		Pub_Key  string `yaml:pubkey`
		Endpoint string `yaml:endpoint`
		Domain   string `yaml:domain`
	}
	Github struct {
		ClientId     string `yaml:clientid`
		ClientSecret string `yaml:clientsecret`
		Endpoint     string `yaml:endpoint`
		Success      string `yaml:success`
		Api          string `yaml:api`
	}
	Consumers int
	// contains filtered or unexported fields
}
var Configuration *Config

global configuration var

func (*Config) GetCwd

func (c *Config) GetCwd() string

func (*Config) SetCwd

func (c *Config) SetCwd(cwd string)

Jump to

Keyboard shortcuts

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