config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "v2.0.4"

Variables

This section is empty.

Functions

func GetHistoryContent

func GetHistoryContent() string

func GetSecretContent

func GetSecretContent() string

func InitConfig

func InitConfig()

Types

type LancerConfig

type LancerConfig struct {
	Port        string   `yaml:"port"`
	AllowOrigin []string `yaml:"allow-origin"`
	Database    struct {
		Address  string `yaml:"address"`
		User     string `yaml:"user"`
		Password string `yaml:"password"`
		Name     string `yaml:"name"`
		Migrate  bool
	}
	UseRedis        bool   `yaml:"use-redis"`
	Redis           string `yaml:"redis"`
	WebhookEndpoint string `yaml:"webhook-endpoint"`
	Store           struct {
		Local struct {
			Path string `yaml:"path"`
			Temp string `yaml:"temp-path"`
		}
		AWS struct {
			Store        bool   `yaml:"store"`
			Bucket       string `yaml:"bucket"`
			Region       string `yaml:"region"`
			ClientID     string `yaml:"clientId"`
			ClientSecret string `yaml:"clientSecret"`
		}
	}
	ServerAuth   bool   `yaml:"server-auth"`
	AuthEndpoint string `yaml:"auth-endpoint"`

	AdminTokenSigningSecret string `yaml:"admin-token-secret"`

	Auth struct {
		Email    string `yaml:"email"`
		Password string `yaml:"password"`
	}

	MetricsID uuid.UUID

	IsAwsProvided        bool
	WebhookSigningSecret string
}

func ParseFlags

func ParseFlags() *LancerConfig

func (*LancerConfig) GetDatabaseConnectionString

func (c *LancerConfig) GetDatabaseConnectionString() string

func (*LancerConfig) GetSigningSecret

func (c *LancerConfig) GetSigningSecret() string

func (*LancerConfig) HandleStandaloneArgs

func (c *LancerConfig) HandleStandaloneArgs()

Jump to

Keyboard shortcuts

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