Documentation ¶
Index ¶
- Variables
- type CompletedConfig
- type Config
- type Database
- func (*Database) Descriptor() ([]byte, []int)deprecated
- func (x *Database) GetDsn() string
- func (x *Database) GetFailAfterDuration() *durationpb.Duration
- func (x *Database) GetMaxWaitDuration() *durationpb.Duration
- func (*Database) ProtoMessage()
- func (x *Database) ProtoReflect() protoreflect.Message
- func (x *Database) Reset()
- func (x *Database) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_sql_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CompletedConfig ¶
type CompletedConfig struct {
// contains filtered or unexported fields
}
type Config ¶
type Config struct { Proto Database Validator *validator.Validate // contains filtered or unexported fields }
func NewViperConfig ¶ added in v0.0.17
NewViperConfig returns a Config struct with the global viper instance key representing a sub tree of this instance. NewViperConfig is case-insensitive for a key.
func (*Config) Complete ¶
func (c *Config) Complete() CompletedConfig
Complete fills in any fields not set that are required to have valid data and can be derived from other fields. If you're going to ApplyOptions, do that first. It's mutating the receiver. ApplyOptions is called inside.
type Database ¶ added in v0.0.18
type Database struct { Dsn string `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty"` // memory|schema://[username[:password]@][protocol[(address)]]/dbname[?param1=value1&...¶mN=valueN] MaxWaitDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=max_wait_duration,json=maxWaitDuration,proto3" json:"max_wait_duration,omitempty"` FailAfterDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=fail_after_duration,json=failAfterDuration,proto3" json:"fail_after_duration,omitempty"` // contains filtered or unexported fields }
func (*Database) Descriptor
deprecated
added in
v0.0.18
func (*Database) GetFailAfterDuration ¶ added in v0.0.18
func (x *Database) GetFailAfterDuration() *durationpb.Duration
func (*Database) GetMaxWaitDuration ¶ added in v0.0.18
func (x *Database) GetMaxWaitDuration() *durationpb.Duration
func (*Database) ProtoMessage ¶ added in v0.0.18
func (*Database) ProtoMessage()
func (*Database) ProtoReflect ¶ added in v0.0.18
func (x *Database) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.