config

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2018 License: MIT Imports: 0 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 {
	LogLevel string `default:"debug"`

	// Stripe
	Stripe StripeConfig

	// Bind Address
	BindAddress string `default:"0.0.0.0:8080"`

	// Mailgun
	Mailgun MailgunConfig

	// Pass
	StatsPass string `required:"true"`

	// Staff Code
	StaffCode string `required:"true"`
}

type MailgunConfig

type MailgunConfig struct {
	Domain       string `required:"true"`
	APIKey       string `required:"true"`
	PublicAPIKey string `required:"true"`
}

type StripeConfig

type StripeConfig struct {
	PublishableKey string `required:"true"`
	SecretKey      string `required:"true"`
	Product        string `required:"true"` // stripe product
	SKU            string `required:"true"` // stripe SKU
}

StripeConfig contains all configuration data for a CoSign connection

type Token

type Token struct {
	Name string `required:"true"`
	Key  string `required:"true"`
}

Token is an "API" user

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL