cfgmodel

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 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 FriendlyStripeSync

type FriendlyStripeSync struct {
	Debug       bool `json:"debug"`
	Purge       bool `json:"purge"`
	Development bool `json:"development"`

	Stripe     Stripe     `json:"stripe"`
	Postgres   Postgres   `json:"postgres"`
	StripeSync StripeSync `json:"stripe_sync"`

	Logging 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 Logging

type Logging struct {
	Filename   string `json:"filename"`
	MaxSize    int    `json:"max_size"`
	MaxAge     int    `json:"max_age"`
	MaxBackups int    `json:"max_backups"`
}

type Postgres

type Postgres struct {
	Host     string `json:"host"`
	Port     int    `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
	DBName   string `json:"dbname"`
	SSLMode  string `json:"sslmode"`
}

type Stripe

type Stripe struct {
	APIKey string `json:"api_key"`
}

type StripeSync

type StripeSync struct {
	IntervalSeconds int      `json:"interval_seconds"`
	ExcludedFields  []string `json:"excluded_fields"`
}

Jump to

Keyboard shortcuts

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