Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FriendlyStripeSync ¶
type FriendlyStripeSync struct {
Debug bool `mapstructure:"debug" json:"debug"`
Purge bool `mapstructure:"purge" json:"purge"`
Development bool `mapstructure:"development" json:"development"`
Stripe Stripe `mapstructure:"stripe" json:"stripe"`
Postgres Postgres `mapstructure:"postgres" json:"postgres"`
StripeSync StripeSync `mapstructure:"stripe_sync" json:"stripe_sync"`
Logging Logging `mapstructure:"logging" json:"logging"`
}
FriendlyStripeSync is the top-level config for the CLI tool.
func (FriendlyStripeSync) LibraryConfig ¶
func (c FriendlyStripeSync) LibraryConfig() stripesync.Config
LibraryConfig returns the config as the stripesync library wants it.
func (FriendlyStripeSync) PostgresConfig ¶
func (c FriendlyStripeSync) PostgresConfig() postgres.Config
PostgresConfig returns the config as the postgres package wants it.
type Postgres ¶
type Postgres struct {
Host string `mapstructure:"host" json:"host"`
Port int `mapstructure:"port" json:"port"`
User string `mapstructure:"user" json:"user"`
Password string `mapstructure:"password" json:"password"`
DBName string `mapstructure:"dbname" json:"dbname"`
SSLMode string `mapstructure:"sslmode" json:"sslmode"`
}
type StripeSync ¶
Click to show internal directories.
Click to hide internal directories.