cachefakes

package
v1.0.1-rc Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 4 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCache

type FakeCache struct {
	GetStub func(context.Context, string) ([]byte, error)

	SetStub func(context.Context, string, []byte, time.Duration) error
	// contains filtered or unexported fields
}

func (*FakeCache) Get

func (fake *FakeCache) Get(arg1 context.Context, arg2 string) ([]byte, error)

func (*FakeCache) GetArgsForCall

func (fake *FakeCache) GetArgsForCall(i int) (context.Context, string)

func (*FakeCache) GetCallCount

func (fake *FakeCache) GetCallCount() int

func (*FakeCache) GetCalls

func (fake *FakeCache) GetCalls(stub func(context.Context, string) ([]byte, error))

func (*FakeCache) GetReturns

func (fake *FakeCache) GetReturns(result1 []byte, result2 error)

func (*FakeCache) GetReturnsOnCall

func (fake *FakeCache) GetReturnsOnCall(i int, result1 []byte, result2 error)

func (*FakeCache) Invocations

func (fake *FakeCache) Invocations() map[string][][]interface{}

func (*FakeCache) Set

func (fake *FakeCache) Set(arg1 context.Context, arg2 string, arg3 []byte, arg4 time.Duration) error

func (*FakeCache) SetArgsForCall

func (fake *FakeCache) SetArgsForCall(i int) (context.Context, string, []byte, time.Duration)

func (*FakeCache) SetCallCount

func (fake *FakeCache) SetCallCount() int

func (*FakeCache) SetCalls

func (fake *FakeCache) SetCalls(stub func(context.Context, string, []byte, time.Duration) error)

func (*FakeCache) SetReturns

func (fake *FakeCache) SetReturns(result1 error)

func (*FakeCache) SetReturnsOnCall

func (fake *FakeCache) SetReturnsOnCall(i int, result1 error)

type FakeEvents

type FakeEvents struct {
	SendStub func(context.Context, string) error
	// contains filtered or unexported fields
}

func (*FakeEvents) Invocations

func (fake *FakeEvents) Invocations() map[string][][]interface{}

func (*FakeEvents) Send

func (fake *FakeEvents) Send(arg1 context.Context, arg2 string) error

func (*FakeEvents) SendArgsForCall

func (fake *FakeEvents) SendArgsForCall(i int) (context.Context, string)

func (*FakeEvents) SendCallCount

func (fake *FakeEvents) SendCallCount() int

func (*FakeEvents) SendCalls

func (fake *FakeEvents) SendCalls(stub func(context.Context, string) error)

func (*FakeEvents) SendReturns

func (fake *FakeEvents) SendReturns(result1 error)

func (*FakeEvents) SendReturnsOnCall

func (fake *FakeEvents) SendReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

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