config

package
v0.0.0-...-8341997 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2017 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 Bloodlines

type Bloodlines struct {
	Host string `json:"host"`
	Port string `json:"port"`
}

Bloodlines has connection information for the bloodlines service

type Coinage

type Coinage struct {
	Host string `json:"host"`
	Port string `json:"port"`
}

Coinage has connection information for the coinage service

type Covenant

type Covenant struct {
	Host string `json:"host"`
	Port string `json:"port"`
}

Covenant has connection information for the covenant service

type JWT

type JWT struct {
	Token string `json:"token"`
}

JWT has the jwt token

type MySQL

type MySQL struct {
	Host     string `json:"host"`
	Port     string `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
	Database string `json:"database"`
}

MySQL contains information for connecting to a MySQL instance

type Rabbit

type Rabbit struct {
	Host string `json:"host"`
	Port string `json:"port"`
	PubQ string `json:"pubq"`
}

Rabbit has connection info for RabbitMQ

type Root

type Root struct {
	SQL        MySQL      `json:"mysql"`
	Sendgrid   Sendgrid   `json:"sendgrid"`
	TownCenter TownCenter `json:"towncenter"`
	Bloodlines Bloodlines `json:"bloodlines"`
	Covenant   Covenant   `json:"covenant"`
	Warehouse  Warehouse  `json:"warehouse"`
	Coinage    Coinage    `json:"coinage"`
	Rabbit     Rabbit     `json:"rabbit"`
	Statsd     Statsd     `json:"statsd"`
	Stripe     Stripe     `json:"stripe"`
	S3         S3         `json:"s3"`
	Port       string     `json:"port"`
	Shippo     Shippo     `json:"shippo"`
	JWT        JWT        //`json:"jwt"`
}

Root is the base struct containing bloodlines configs

func Init

func Init(filename string) (*Root, error)

Init returns a populated Root struct from config.json

type S3

type S3 struct {
	Region    string `json:"region"`
	AccessKey string `json:"accessKey"`
	Secret    string `json:"secret"`
	Bucket    string `json:"bucket"`
}

S3 conatains information for connecting to amazon s3

type Sendgrid

type Sendgrid struct {
	APIKey    string `json:"api_key"`
	FromEmail string `json:"from_email"`
	FromName  string `json:"from_name"`
	Host      string `json:"host"`
}

Sendgrid has connection information for the sendgrid gateway

type Shippo

type Shippo struct {
	Token string `json:"token"`
}

Shippo connection information

type Statsd

type Statsd struct {
	Host   string `json:"host"`
	Port   string `json:"port"`
	Prefix string `json:"prefix"`
}

Statsd contains connection information for graphite stats

type Stripe

type Stripe struct {
	Secret           string  `json:"secret"`
	Public           string  `json:"public"`
	ApplicationFee   float64 `json:"applicationFee"`
	StripeFeePercent float64 `json:"stripeFeePercent"`
}

Stripe has connection information for the stripe gateway

type TownCenter

type TownCenter struct {
	Host string `json:"host"`
	Port string `json:"port"`
}

TownCenter has connection information for the town center service

type Warehouse

type Warehouse struct {
	Host string `json:"host"`
	Port string `json:"port"`
}

Warehouse has connection information for the inventory service

Jump to

Keyboard shortcuts

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