Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertificateConfig ¶ added in v0.5.0
type CertificateConfig struct { Enabled bool `toml:"enabled"` CertFile string `toml:"cert_file"` KeyFile string `toml:"key_file"` }
CertificateConfig specifies the configuration for the certificate file.
type Config ¶
type Config struct { Server ServerConfig Certificate CertificateConfig Views ViewsConfig Database DatabaseConfig Mail MailConfig Queue QueueConfig }
Config represents the pulsar server settings structure.
var Settings Config
Settings define the global settings for pulsar.
type DatabaseConfig ¶ added in v0.5.0
type DatabaseConfig struct { Driver string `toml:"driver"` Database string `toml:"database"` Host string `toml:"host"` Port string `toml:"port"` User string `toml:"user"` Password string `toml:"password"` AutoMigrate bool `toml:"auto_migrate"` }
DatabaseConfig specifies the configuration for the database file.
type MailConfig ¶ added in v0.5.0
type MailConfig struct { Host string `toml:"host"` Port string `toml:"port"` Identity string `toml:"identity"` Username string `toml:"username"` Password string `toml:"password"` From string `toml:"from"` }
MailConfig specifies the configuration for the mail file.
type QueueConfig ¶ added in v0.5.0
type QueueConfig struct {
Routines string `toml:"routines"`
}
QueueConfig specifies the configuration for the queue file.
type ServerConfig ¶ added in v0.5.0
type ServerConfig struct { Host string `toml:"host"` Port string `toml:"port"` Development bool `toml:"development"` AllowedOrigins []string `toml:"allowed_origins"` AllowedHeaders []string `toml:"allowed_headers"` AllowedMethods []string `toml:"allowed_methods"` ExposedHeaders []string `toml:"exposed_headers"` AllowCredentials bool `toml:"allow_credentials"` }
ServerConfig specifies the configuration for the server file.
type ViewsConfig ¶ added in v0.5.0
type ViewsConfig struct {
Path string `toml:"path"`
}
ViewsConfig specifies the configuration for the view file.
Click to show internal directories.
Click to hide internal directories.