Versions in this module Expand all Collapse all v1 v1.2.0 Jun 11, 2020 Changes in this version + type InterfaceWithValidtableArgWithGRPCValidation struct + func NewInterfaceWithValidtableArgWithGRPCValidation(base InterfaceWithValidtableArg) InterfaceWithValidtableArgWithGRPCValidation + func (_d InterfaceWithValidtableArgWithGRPCValidation) Method(ctx context.Context, r *ValidatableRequest) (err error) + type InterfaceWithValidtableArgWithTwirpValidation struct + func NewInterfaceWithValidtableArgWithTwirpValidation(base InterfaceWithValidtableArg) InterfaceWithValidtableArgWithTwirpValidation + func (_d InterfaceWithValidtableArgWithTwirpValidation) Method(ctx context.Context, r *ValidatableRequest) (err error) + type InterfaceWithValidtableArgWithValidation struct + func NewInterfaceWithValidtableArgWithValidation(base InterfaceWithValidtableArg) InterfaceWithValidtableArgWithValidation + func (_d InterfaceWithValidtableArgWithValidation) Method(ctx context.Context, r *ValidatableRequest) (err error) + type TestInterface interface + F func(ctx context.Context, a1 string, a2 ...string) (result1, result2 string, err error) + NoError func(string) string + NoParamsOrResults func() + type TestInterfacePool struct + func NewTestInterfacePool(impls ...TestInterface) TestInterfacePool + func (_d TestInterfacePool) F(ctx context.Context, a1 string, a2 ...string) (result1 string, result2 string, err error) + func (_d TestInterfacePool) NoError(s1 string) (s2 string) + func (_d TestInterfacePool) NoParamsOrResults() + type TestInterfaceRoundRobinPool struct + func MustNewTestInterfaceRoundRobinPool(pool ...TestInterface) *TestInterfaceRoundRobinPool + func NewTestInterfaceRoundRobinPool(pool ...TestInterface) (*TestInterfaceRoundRobinPool, error) + func (_d *TestInterfaceRoundRobinPool) F(ctx context.Context, a1 string, a2 ...string) (result1 string, result2 string, err error) + func (_d *TestInterfaceRoundRobinPool) NoError(s1 string) (s2 string) + func (_d *TestInterfaceRoundRobinPool) NoParamsOrResults() + type TestInterfaceWithCircuitBreaker struct + func NewTestInterfaceWithCircuitBreaker(base TestInterface, consecutiveErrors int, openInterval time.Duration) *TestInterfaceWithCircuitBreaker + func (_d *TestInterfaceWithCircuitBreaker) F(ctx context.Context, a1 string, a2 ...string) (result1 string, result2 string, err error) + type TestInterfaceWithFallback struct + func NewTestInterfaceWithFallback(interval time.Duration, impls ...TestInterface) TestInterfaceWithFallback + func (_d TestInterfaceWithFallback) F(ctx context.Context, a1 string, a2 ...string) (result1 string, result2 string, err error) + func (_d TestInterfaceWithFallback) NoError(s1 string) (s2 string) + func (_d TestInterfaceWithFallback) NoParamsOrResults() + type TestInterfaceWithLogger struct + func NewTestInterfaceWithLogger(base TestInterface, stdout, stderr io.Writer) TestInterfaceWithLogger + func (_d TestInterfaceWithLogger) F(ctx context.Context, a1 string, a2 ...string) (result1 string, result2 string, err error) + func (_d TestInterfaceWithLogger) NoError(s1 string) (s2 string) + func (_d TestInterfaceWithLogger) NoParamsOrResults() + type TestInterfaceWithLogrus struct + func NewTestInterfaceWithLogrus(base TestInterface, log *logrus.Entry) TestInterfaceWithLogrus + func (_d TestInterfaceWithLogrus) F(ctx context.Context, a1 string, a2 ...string) (result1 string, result2 string, err error) + func (_d TestInterfaceWithLogrus) NoError(s1 string) (s2 string) + func (_d TestInterfaceWithLogrus) NoParamsOrResults() + type TestInterfaceWithPrometheus struct + func NewTestInterfaceWithPrometheus(base TestInterface, instanceName string) TestInterfaceWithPrometheus + func (_d TestInterfaceWithPrometheus) F(ctx context.Context, a1 string, a2 ...string) (result1 string, result2 string, err error) + func (_d TestInterfaceWithPrometheus) NoError(s1 string) (s2 string) + func (_d TestInterfaceWithPrometheus) NoParamsOrResults() + type TestInterfaceWithRateLimit struct + func NewTestInterfaceWithRateLimit(base TestInterface, concurrentRequests int, rps float64) *TestInterfaceWithRateLimit + func (_d *TestInterfaceWithRateLimit) F(ctx context.Context, a1 string, a2 ...string) (result1 string, result2 string, err error) + func (_d *TestInterfaceWithRateLimit) NoError(s1 string) (s2 string) + func (_d *TestInterfaceWithRateLimit) NoParamsOrResults() + type TestInterfaceWithRetry struct + func NewTestInterfaceWithRetry(base TestInterface, retryCount int, retryInterval time.Duration) TestInterfaceWithRetry + func (_d TestInterfaceWithRetry) F(ctx context.Context, a1 string, a2 ...string) (result1 string, result2 string, err error) + type TestInterfaceWithTimeout struct + func NewTestInterfaceWithTimeout(base TestInterface, config TestInterfaceWithTimeoutConfig) TestInterfaceWithTimeout + func (_d TestInterfaceWithTimeout) F(ctx context.Context, a1 string, a2 ...string) (result1 string, result2 string, err error) + type TestInterfaceWithTimeoutConfig struct + FTimeout time.Duration + type TestInterfaceWithTracing struct + func NewTestInterfaceWithTracing(base TestInterface, instance string, ...) TestInterfaceWithTracing + func (_d TestInterfaceWithTracing) F(ctx context.Context, a1 string, a2 ...string) (result1 string, result2 string, err error)