Documentation ¶
Overview ¶
Package cache is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
func Start ¶
func Start(ctx context.Context, secret [32]byte, key string, channelProvider func() pubsub.DataChannel) (Cache, error)
Start returns a new Cache instance, and starts a goroutine to cache the config
secret is the secret key to encrypt the config with before storing it
key is the key to use to store and fetch the config from the cache store
ch is the channel to listen on for config updates and store them
type MockCache ¶
type MockCache struct {
// contains filtered or unexported fields
}
MockCache is a mock of Cache interface.
func NewMockCache ¶
func NewMockCache(ctrl *gomock.Controller) *MockCache
NewMockCache creates a new mock instance.
func (*MockCache) EXPECT ¶
func (m *MockCache) EXPECT() *MockCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCacheMockRecorder ¶
type MockCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheMockRecorder is the mock recorder for MockCache.
func (*MockCacheMockRecorder) Get ¶
func (mr *MockCacheMockRecorder) Get(ctx interface{}) *gomock.Call
Get indicates an expected call of Get.
Click to show internal directories.
Click to hide internal directories.