Documentation ¶
Index ¶
- func Check(url string, status int) (string, error)
- func Concat(left error, right error) error
- func RandomString(n int) string
- func RandomStringRunes(n int, runes []rune) string
- func Retry(timer *time.Timer, interval time.Duration, callback func() (retry bool)) error
- func ToStringKeyedMap(m interface{}) (map[string]interface{}, error)
- type Synchronizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomString ¶
RandomString generates an alphabetic string with uppercase and lowercase letters of size n with some chance of being unique
func RandomStringRunes ¶
RandomString generates an alphabetic string with uppercase and lowercase letters of size n with some chance of being unique
func ToStringKeyedMap ¶
Types ¶
type Synchronizer ¶
Synchronizer implements the error interface as well as the Causer interface from package github.com/pkg/errors It just returns the first error when Cause is called
It is well suited for scatter and gather synchronization
func NewSynchronizer ¶
func NewSynchronizer(wg *sync.WaitGroup) *Synchronizer
func (*Synchronizer) Cause ¶
func (s *Synchronizer) Cause() error
func (*Synchronizer) Done ¶
func (s *Synchronizer) Done(err error)
func (Synchronizer) Error ¶
func (s Synchronizer) Error() string
func (*Synchronizer) IsError ¶
func (s *Synchronizer) IsError() bool
Click to show internal directories.
Click to hide internal directories.