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()
Click to show internal directories.
Click to hide internal directories.