config

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWS

type AWS struct {
	Region string `json:"region"`
}

AWS model

type Auth0

type Auth0 struct {
	Domain        string `json:"auth0-domain"`
	ClientID      string `json:"auth0-clientId"`
	UsernameClaim string `json:"auth0-username-claim"`
	Algorithm     string `json:"auth0-algorithm"`
}

Auth0 model

type Config

type Config struct {
	// Auth0
	Auth0 Auth0 `json:"auth0"`

	// Docraptor
	Docraptor Docraptor `json:"docraptor"`

	// AWS
	AWS AWS `json:"aws"`

	// Github Application
	Github Github `json:"github"`

	// Dynamo Session Store
	SessionStoreTableName string `json:"sessionStoreTableName"`

	// Sender Email Address
	SenderEmailAddress string `json:"senderEmailAddress"`

	AllowedOriginsCommaSeparated string   `json:"allowedOriginsCommaSeparated"`
	AllowedOrigins               []string `json:"-"`

	CorporateConsoleURL string `json:"corporateConsoleURL"`

	// SNSEventTopic the topic ARN for events
	SNSEventTopicARN string `json:"snsEventTopicARN"`
}

Config data model

func LoadConfig

func LoadConfig(configFilePath string, awsSession *session.Session, awsStage string) (Config, error)

LoadConfig loads the configuration

type Docraptor

type Docraptor struct {
	APIKey   string `json:"apiKey"`
	TestMode bool   `json:"testMode"`
}

Docraptor model

type Github

type Github struct {
	ClientID     string `json:"clientId"`
	ClientSecret string `json:"clientSecret"`
}

Github model

Jump to

Keyboard shortcuts

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