Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultTimeout = 30 * time.Second DefaultRetries = 0 DefaultBackoff = 3 * time.Second )
View Source
var DefaultLogger, _ = GetLoggerFromLvl(zap.InfoLevel)
DefaultLogger is the default logger among all project with level="INFO"
Functions ¶
func GetLoggerFromLvl ¶
GetLoggerFromLvl gets logger with (zapcore.Level)
Types ¶
type ClientOption ¶
func Backoff ¶
func Backoff(backoff time.Duration) ClientOption
func Retries ¶
func Retries(times int) ClientOption
func Timeout ¶
func Timeout(timeout time.Duration) ClientOption
type Getter ¶
type Getter struct {
// contains filtered or unexported fields
}
Getter utilize go-getter package to download the files (only support download file so far)
func NewGetter ¶
func NewGetter(opts ...ClientOption) (*Getter, error)
NewGetter initializes Getter client, default only http getter
Click to show internal directories.
Click to hide internal directories.