Documentation ¶ Index ¶ func DoRetry(kind, name, tag string, r Retry, fn func() error) error type ErrNoRetry func (e *ErrNoRetry) Error() string type Retry Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DoRetry ¶ func DoRetry(kind, name, tag string, r Retry, fn func() error) error DoRetry is a help function to retry the function if it returns error Types ¶ type ErrNoRetry ¶ type ErrNoRetry struct { Message string } ErrNoRetry is the error need not retry func (*ErrNoRetry) Error ¶ func (e *ErrNoRetry) Error() string type Retry ¶ type Retry struct { Times int `yaml:"times" json:"times,omitempty" jsonschema:"title=Retry Times,description=how many times need to retry,minimum=1"` Interval time.Duration `` /* 147-byte string literal not displayed */ } Retry is the settings of retry Source Files ¶ View all Source files retry.go Click to show internal directories. Click to hide internal directories.