helper

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳