Documentation ¶ Index ¶ func JSONTimeMarshaller(layout, tz string) *json.Marshalers func ParseDSN(DBUrl string) (string, string, error) type AutoRetry type Duration func (d Duration) MarshalJSON() ([]byte, error) func (d *Duration) UnmarshalText(b []byte) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func JSONTimeMarshaller ¶ func JSONTimeMarshaller(layout, tz string) *json.Marshalers func ParseDSN ¶ func ParseDSN(DBUrl string) (string, string, error) Types ¶ type AutoRetry ¶ type AutoRetry struct { Enable bool MaxRetries int `mapstructure:"max_retries"` MinDelay Duration `mapstructure:"min_delay"` MaxDelay Duration `mapstructure:"max_delay"` } type Duration ¶ type Duration struct { time.Duration } func (Duration) MarshalJSON ¶ func (d Duration) MarshalJSON() ([]byte, error) func (*Duration) UnmarshalText ¶ func (d *Duration) UnmarshalText(b []byte) error Source Files ¶ View all Source files dsn.go json.go types.go Click to show internal directories. Click to hide internal directories.