Documentation ¶
Overview ¶
Package httpstore is a generated GoMock package.
Index ¶
- type Cache
- func (c *Cache) CreateSession(ctx context.Context, uid typedef.UserID) (typedef.SessionID, error)
- func (c *Cache) ReadAuthorizationRequestFingerprint(ctx context.Context, clientID typedef.ClientID, authCode string) (*typedef.AuthorizationRequestFingerprint, error)
- func (c *Cache) ReadRefreshToken(ctx context.Context, clientID typedef.ClientID, userID typedef.UserID) (jwt.Token, error)
- func (c *Cache) Restore(r *http.Request, sid typedef.SessionID) (*http.Request, error)
- func (c *Cache) WriteAuthorizationRequestFingerprint(ctx context.Context, clientID typedef.ClientID, authCode string, ...) error
- func (c *Cache) WriteRefreshToken(ctx context.Context, token string, clientID typedef.ClientID, ...) error
- type CacheHashAllReader
- type CacheHashReader
- type CacheHashWriter
- type CacheReadWriter
- type CacheReader
- type CacheWriter
- type Context
- type Cookie
- type MockCacheHashAllReader
- type MockCacheHashAllReaderMockRecorder
- type MockCacheHashReader
- type MockCacheHashReaderMockRecorder
- type MockCacheHashWriter
- type MockCacheHashWriterMockRecorder
- type MockCacheReadWriter
- func (m *MockCacheReadWriter) EXPECT() *MockCacheReadWriterMockRecorder
- func (m *MockCacheReadWriter) Read(ctx context.Context, key string) (string, error)
- func (m *MockCacheReadWriter) ReadHash(ctx context.Context, key, field string) (string, error)
- func (m *MockCacheReadWriter) ReadHashAll(ctx context.Context, key string) (map[string]string, error)
- func (m *MockCacheReadWriter) Write(ctx context.Context, key string, value any, ttl time.Duration) error
- func (m *MockCacheReadWriter) WriteHash(ctx context.Context, key string, values map[string]any, ttl time.Duration) error
- type MockCacheReadWriterMockRecorder
- func (mr *MockCacheReadWriterMockRecorder) Read(ctx, key any) *gomock.Call
- func (mr *MockCacheReadWriterMockRecorder) ReadHash(ctx, key, field any) *gomock.Call
- func (mr *MockCacheReadWriterMockRecorder) ReadHashAll(ctx, key any) *gomock.Call
- func (mr *MockCacheReadWriterMockRecorder) Write(ctx, key, value, ttl any) *gomock.Call
- func (mr *MockCacheReadWriterMockRecorder) WriteHash(ctx, key, values, ttl any) *gomock.Call
- type MockCacheReader
- type MockCacheReaderMockRecorder
- type MockCacheWriter
- type MockCacheWriterMockRecorder
- type Session
- type SessionKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) CreateSession ¶
func (*Cache) ReadAuthorizationRequestFingerprint ¶
func (*Cache) ReadRefreshToken ¶
func (*Cache) WriteAuthorizationRequestFingerprint ¶
type CacheHashAllReader ¶
type CacheHashReader ¶
type CacheHashWriter ¶
type CacheReadWriter ¶
type CacheReadWriter interface { CacheReader CacheHashReader CacheHashAllReader CacheWriter CacheHashWriter }
type CacheReader ¶
type CacheWriter ¶
type MockCacheHashAllReader ¶
type MockCacheHashAllReader struct {
// contains filtered or unexported fields
}
MockCacheHashAllReader is a mock of CacheHashAllReader interface.
func NewMockCacheHashAllReader ¶
func NewMockCacheHashAllReader(ctrl *gomock.Controller) *MockCacheHashAllReader
NewMockCacheHashAllReader creates a new mock instance.
func (*MockCacheHashAllReader) EXPECT ¶
func (m *MockCacheHashAllReader) EXPECT() *MockCacheHashAllReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCacheHashAllReader) ReadHashAll ¶
func (m *MockCacheHashAllReader) ReadHashAll(ctx context.Context, key string) (map[string]string, error)
ReadHashAll mocks base method.
type MockCacheHashAllReaderMockRecorder ¶
type MockCacheHashAllReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheHashAllReaderMockRecorder is the mock recorder for MockCacheHashAllReader.
func (*MockCacheHashAllReaderMockRecorder) ReadHashAll ¶
func (mr *MockCacheHashAllReaderMockRecorder) ReadHashAll(ctx, key any) *gomock.Call
ReadHashAll indicates an expected call of ReadHashAll.
type MockCacheHashReader ¶
type MockCacheHashReader struct {
// contains filtered or unexported fields
}
MockCacheHashReader is a mock of CacheHashReader interface.
func NewMockCacheHashReader ¶
func NewMockCacheHashReader(ctrl *gomock.Controller) *MockCacheHashReader
NewMockCacheHashReader creates a new mock instance.
func (*MockCacheHashReader) EXPECT ¶
func (m *MockCacheHashReader) EXPECT() *MockCacheHashReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCacheHashReaderMockRecorder ¶
type MockCacheHashReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheHashReaderMockRecorder is the mock recorder for MockCacheHashReader.
type MockCacheHashWriter ¶
type MockCacheHashWriter struct {
// contains filtered or unexported fields
}
MockCacheHashWriter is a mock of CacheHashWriter interface.
func NewMockCacheHashWriter ¶
func NewMockCacheHashWriter(ctrl *gomock.Controller) *MockCacheHashWriter
NewMockCacheHashWriter creates a new mock instance.
func (*MockCacheHashWriter) EXPECT ¶
func (m *MockCacheHashWriter) EXPECT() *MockCacheHashWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCacheHashWriterMockRecorder ¶
type MockCacheHashWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheHashWriterMockRecorder is the mock recorder for MockCacheHashWriter.
type MockCacheReadWriter ¶
type MockCacheReadWriter struct {
// contains filtered or unexported fields
}
MockCacheReadWriter is a mock of CacheReadWriter interface.
func NewMockCacheReadWriter ¶
func NewMockCacheReadWriter(ctrl *gomock.Controller) *MockCacheReadWriter
NewMockCacheReadWriter creates a new mock instance.
func (*MockCacheReadWriter) EXPECT ¶
func (m *MockCacheReadWriter) EXPECT() *MockCacheReadWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCacheReadWriter) ReadHashAll ¶
func (m *MockCacheReadWriter) ReadHashAll(ctx context.Context, key string) (map[string]string, error)
ReadHashAll mocks base method.
type MockCacheReadWriterMockRecorder ¶
type MockCacheReadWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheReadWriterMockRecorder is the mock recorder for MockCacheReadWriter.
func (*MockCacheReadWriterMockRecorder) Read ¶
func (mr *MockCacheReadWriterMockRecorder) Read(ctx, key any) *gomock.Call
Read indicates an expected call of Read.
func (*MockCacheReadWriterMockRecorder) ReadHash ¶
func (mr *MockCacheReadWriterMockRecorder) ReadHash(ctx, key, field any) *gomock.Call
ReadHash indicates an expected call of ReadHash.
func (*MockCacheReadWriterMockRecorder) ReadHashAll ¶
func (mr *MockCacheReadWriterMockRecorder) ReadHashAll(ctx, key any) *gomock.Call
ReadHashAll indicates an expected call of ReadHashAll.
type MockCacheReader ¶
type MockCacheReader struct {
// contains filtered or unexported fields
}
MockCacheReader is a mock of CacheReader interface.
func NewMockCacheReader ¶
func NewMockCacheReader(ctrl *gomock.Controller) *MockCacheReader
NewMockCacheReader creates a new mock instance.
func (*MockCacheReader) EXPECT ¶
func (m *MockCacheReader) EXPECT() *MockCacheReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCacheReaderMockRecorder ¶
type MockCacheReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheReaderMockRecorder is the mock recorder for MockCacheReader.
type MockCacheWriter ¶
type MockCacheWriter struct {
// contains filtered or unexported fields
}
MockCacheWriter is a mock of CacheWriter interface.
func NewMockCacheWriter ¶
func NewMockCacheWriter(ctrl *gomock.Controller) *MockCacheWriter
NewMockCacheWriter creates a new mock instance.
func (*MockCacheWriter) EXPECT ¶
func (m *MockCacheWriter) EXPECT() *MockCacheWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCacheWriterMockRecorder ¶
type MockCacheWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheWriterMockRecorder is the mock recorder for MockCacheWriter.
type SessionKey ¶
type SessionKey struct{}