mocks

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Util

type Util struct {
	mock.Mock
}

Util is an autogenerated mock type for the Util type

func (*Util) GetEnv

func (_m *Util) GetEnv(key string, defaultValue string) string

GetEnv provides a mock function with given fields: key, defaultValue

func (*Util) GetEnvDurations

func (_m *Util) GetEnvDurations(key string, defaultValue []time.Duration) []time.Duration

GetEnvDurations provides a mock function with given fields: key, defaultValue

func (*Util) GetEnvFloat64

func (_m *Util) GetEnvFloat64(key string, defaultValue float64) float64

GetEnvFloat64 provides a mock function with given fields: key, defaultValue

func (*Util) GetEnvInt64

func (_m *Util) GetEnvInt64(key string, defaultValue int64) int64

GetEnvInt64 provides a mock function with given fields: key, defaultValue

func (*Util) LoadEnvs

func (_m *Util) LoadEnvs(file string) error

LoadEnvs provides a mock function with given fields: file

func (*Util) RetryWithContext

func (_m *Util) RetryWithContext(ctx context.Context, delays []time.Duration, callback util.RetryFunc) error

RetryWithContext provides a mock function with given fields: ctx, delays, callback

func (*Util) SleepWithContext

func (_m *Util) SleepWithContext(ctx context.Context, dur time.Duration) error

SleepWithContext provides a mock function with given fields: ctx, dur

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL