Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Configuration = Config{}
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
Secret string `mapstructure:"secret"`
}
type AuthenticityConfig ¶
type AuthenticityConfig struct { KeyConfig KeyConfig `mapstructure:"key"` CertificateConfig CertificateConfig `mapstructure:"certificate"` }
type BloockConfig ¶
type CertificateConfig ¶
type Config ¶
type Config struct { Api APIConfig Auth AuthConfig Db DBConfig Bloock BloockConfig Webhook WebhookConfig Authenticity AuthenticityConfig Encryption EncryptionConfig Storage StorageConfig Integrity IntegrityConfig Tracing TracingConfig }
func InitConfig ¶
type DBConfig ¶
type DBConfig struct {
ConnectionString string `mapstructure:"connection_string" default:"file:managed?mode=memory&cache=shared&_fk=1"`
}
type EncryptionConfig ¶
type EncryptionConfig struct { KeyConfig KeyConfig `mapstructure:"key"` CertificateConfig CertificateConfig `mapstructure:"certificate"` }
type IntegrityConfig ¶ added in v1.3.0
type IntegrityConfig struct { AggregateMode bool `mapstructure:"aggregate_mode" default:"false"` AggregateWorker bool `mapstructure:"aggregate_worker" default:"false"` AggregateInterval int `mapstructure:"aggregate_interval" default:"3600"` MaxProofMessageSize int `mapstructure:"max_proof_message_size" default:"1000"` }
type StorageConfig ¶
type TracingConfig ¶ added in v1.5.8
type WebhookConfig ¶
Click to show internal directories.
Click to hide internal directories.