Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: crypto/tls (interfaces: ClientSessionCache)
Generated by this command:
mockgen -typed -build_flags=-tags=gomock -package mocktls -destination tls/client_session_cache.go crypto/tls ClientSessionCache
Package mocktls is a generated GoMock package.
Index ¶
- type ClientSessionCacheGetCall
- func (c *ClientSessionCacheGetCall) Do(f func(string) (*tls.ClientSessionState, bool)) *ClientSessionCacheGetCall
- func (c *ClientSessionCacheGetCall) DoAndReturn(f func(string) (*tls.ClientSessionState, bool)) *ClientSessionCacheGetCall
- func (c *ClientSessionCacheGetCall) Return(arg0 *tls.ClientSessionState, arg1 bool) *ClientSessionCacheGetCall
- type ClientSessionCachePutCall
- type MockClientSessionCache
- type MockClientSessionCacheMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientSessionCacheGetCall ¶ added in v0.40.0
ClientSessionCacheGetCall wrap *gomock.Call
func (*ClientSessionCacheGetCall) Do ¶ added in v0.40.0
func (c *ClientSessionCacheGetCall) Do(f func(string) (*tls.ClientSessionState, bool)) *ClientSessionCacheGetCall
Do rewrite *gomock.Call.Do
func (*ClientSessionCacheGetCall) DoAndReturn ¶ added in v0.40.0
func (c *ClientSessionCacheGetCall) DoAndReturn(f func(string) (*tls.ClientSessionState, bool)) *ClientSessionCacheGetCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ClientSessionCacheGetCall) Return ¶ added in v0.40.0
func (c *ClientSessionCacheGetCall) Return(arg0 *tls.ClientSessionState, arg1 bool) *ClientSessionCacheGetCall
Return rewrite *gomock.Call.Return
type ClientSessionCachePutCall ¶ added in v0.40.0
ClientSessionCachePutCall wrap *gomock.Call
func (*ClientSessionCachePutCall) Do ¶ added in v0.40.0
func (c *ClientSessionCachePutCall) Do(f func(string, *tls.ClientSessionState)) *ClientSessionCachePutCall
Do rewrite *gomock.Call.Do
func (*ClientSessionCachePutCall) DoAndReturn ¶ added in v0.40.0
func (c *ClientSessionCachePutCall) DoAndReturn(f func(string, *tls.ClientSessionState)) *ClientSessionCachePutCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ClientSessionCachePutCall) Return ¶ added in v0.40.0
func (c *ClientSessionCachePutCall) Return() *ClientSessionCachePutCall
Return rewrite *gomock.Call.Return
type MockClientSessionCache ¶
type MockClientSessionCache struct {
// contains filtered or unexported fields
}
MockClientSessionCache is a mock of ClientSessionCache interface.
func NewMockClientSessionCache ¶
func NewMockClientSessionCache(ctrl *gomock.Controller) *MockClientSessionCache
NewMockClientSessionCache creates a new mock instance.
func (*MockClientSessionCache) EXPECT ¶
func (m *MockClientSessionCache) EXPECT() *MockClientSessionCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientSessionCache) Get ¶
func (m *MockClientSessionCache) Get(arg0 string) (*tls.ClientSessionState, bool)
Get mocks base method.
func (*MockClientSessionCache) Put ¶
func (m *MockClientSessionCache) Put(arg0 string, arg1 *tls.ClientSessionState)
Put mocks base method.
type MockClientSessionCacheMockRecorder ¶
type MockClientSessionCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockClientSessionCacheMockRecorder is the mock recorder for MockClientSessionCache.
func (*MockClientSessionCacheMockRecorder) Get ¶
func (mr *MockClientSessionCacheMockRecorder) Get(arg0 any) *ClientSessionCacheGetCall
Get indicates an expected call of Get.
func (*MockClientSessionCacheMockRecorder) Put ¶
func (mr *MockClientSessionCacheMockRecorder) Put(arg0, arg1 any) *ClientSessionCachePutCall
Put indicates an expected call of Put.