Documentation ¶
Overview ¶
Package namespaced is a generated GoMock package.
Index ¶
- func New(cache cache.Cache[*any.Any], namespace string) *namespacedBiz
- type MockNamespacedBiz
- func (m *MockNamespacedBiz) Del(arg0 context.Context, arg1 string) error
- func (m *MockNamespacedBiz) EXPECT() *MockNamespacedBizMockRecorder
- func (m *MockNamespacedBiz) Get(arg0 context.Context, arg1 string) (*v1.GetResponse, error)
- func (m *MockNamespacedBiz) Set(arg0 context.Context, arg1 string, arg2 *anypb.Any, arg3 *durationpb.Duration) error
- type MockNamespacedBizMockRecorder
- type NamespacedBiz
- type NamespacedKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockNamespacedBiz ¶
type MockNamespacedBiz struct {
// contains filtered or unexported fields
}
MockNamespacedBiz is a mock of NamespacedBiz interface.
func NewMockNamespacedBiz ¶
func NewMockNamespacedBiz(ctrl *gomock.Controller) *MockNamespacedBiz
NewMockNamespacedBiz creates a new mock instance.
func (*MockNamespacedBiz) Del ¶
func (m *MockNamespacedBiz) Del(arg0 context.Context, arg1 string) error
Del mocks base method.
func (*MockNamespacedBiz) EXPECT ¶
func (m *MockNamespacedBiz) EXPECT() *MockNamespacedBizMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNamespacedBiz) Get ¶
func (m *MockNamespacedBiz) Get(arg0 context.Context, arg1 string) (*v1.GetResponse, error)
Get mocks base method.
type MockNamespacedBizMockRecorder ¶
type MockNamespacedBizMockRecorder struct {
// contains filtered or unexported fields
}
MockNamespacedBizMockRecorder is the mock recorder for MockNamespacedBiz.
func (*MockNamespacedBizMockRecorder) Del ¶
func (mr *MockNamespacedBizMockRecorder) Del(arg0, arg1 any) *gomock.Call
Del indicates an expected call of Del.
type NamespacedBiz ¶
type NamespacedBiz interface { Set(ctx context.Context, key string, value *any.Any, ttl *durationpb.Duration) error Get(ctx context.Context, key string) (*v1.GetResponse, error) Del(ctx context.Context, key string) error }
NamespacedBiz defines the methods that need to be implemented for namespaced cache operations.
type NamespacedKey ¶
NamespacedKey represents a key with a namespace.
func (NamespacedKey) CacheKey ¶
func (k NamespacedKey) CacheKey() string
CacheKey returns the cache key for the NamespacedKey.
Click to show internal directories.
Click to hide internal directories.