iface

package
v0.0.0-...-ce03e45 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package iface is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenGenerator

type AccessTokenGenerator interface {
	GenerateAccessToken(uid typedef.UserID, claims map[string]any) (string, error)
}

type AuthorizationRequestFingerprintReader

type AuthorizationRequestFingerprintReader interface {
	ReadAuthorizationRequestFingerprint(ctx context.Context, clientID typedef.ClientID, authCode string) (*typedef.AuthorizationRequestFingerprint, error)
}

type AuthorizationRequestFingerprintWriter

type AuthorizationRequestFingerprintWriter interface {
	WriteAuthorizationRequestFingerprint(ctx context.Context, clientID typedef.ClientID, authCode string, param *typedef.AuthorizationRequestFingerprint) error
}

type Clocker

type Clocker interface {
	Now() time.Time
}

type ContextReader

type ContextReader interface {
	Read(ctx context.Context, key any) any
}

type CookieReadWriter

type CookieReadWriter interface {
	CookieReader
	CookieWriter
}

type CookieReader

type CookieReader interface {
	Read(r *http.Request, name string) (string, error)
}

type CookieWriter

type CookieWriter interface {
	Write(w http.ResponseWriter, name, val string, ttl time.Duration) error
}

type IDGenerator

type IDGenerator interface {
	NextID() (uint64, error)
}

type IDTokenGenerator

type IDTokenGenerator interface {
	GenerateIDToken(uid typedef.UserID, audiences []string, authTime time.Time, nonce string) (string, error)
}

type MockAccessTokenGenerator

type MockAccessTokenGenerator struct {
	// contains filtered or unexported fields
}

MockAccessTokenGenerator is a mock of AccessTokenGenerator interface.

func NewMockAccessTokenGenerator

func NewMockAccessTokenGenerator(ctrl *gomock.Controller) *MockAccessTokenGenerator

NewMockAccessTokenGenerator creates a new mock instance.

func (*MockAccessTokenGenerator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAccessTokenGenerator) GenerateAccessToken

func (m *MockAccessTokenGenerator) GenerateAccessToken(uid typedef.UserID, claims map[string]any) (string, error)

GenerateAccessToken mocks base method.

type MockAccessTokenGeneratorMockRecorder

type MockAccessTokenGeneratorMockRecorder struct {
	// contains filtered or unexported fields
}

MockAccessTokenGeneratorMockRecorder is the mock recorder for MockAccessTokenGenerator.

func (*MockAccessTokenGeneratorMockRecorder) GenerateAccessToken

func (mr *MockAccessTokenGeneratorMockRecorder) GenerateAccessToken(uid, claims any) *gomock.Call

GenerateAccessToken indicates an expected call of GenerateAccessToken.

type MockAuthorizationRequestFingerprintReader

type MockAuthorizationRequestFingerprintReader struct {
	// contains filtered or unexported fields
}

MockAuthorizationRequestFingerprintReader is a mock of AuthorizationRequestFingerprintReader interface.

func NewMockAuthorizationRequestFingerprintReader

func NewMockAuthorizationRequestFingerprintReader(ctrl *gomock.Controller) *MockAuthorizationRequestFingerprintReader

NewMockAuthorizationRequestFingerprintReader creates a new mock instance.

func (*MockAuthorizationRequestFingerprintReader) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAuthorizationRequestFingerprintReader) ReadAuthorizationRequestFingerprint

func (m *MockAuthorizationRequestFingerprintReader) ReadAuthorizationRequestFingerprint(ctx context.Context, clientID typedef.ClientID, authCode string) (*typedef.AuthorizationRequestFingerprint, error)

ReadAuthorizationRequestFingerprint mocks base method.

type MockAuthorizationRequestFingerprintReaderMockRecorder

type MockAuthorizationRequestFingerprintReaderMockRecorder struct {
	// contains filtered or unexported fields
}

MockAuthorizationRequestFingerprintReaderMockRecorder is the mock recorder for MockAuthorizationRequestFingerprintReader.

func (*MockAuthorizationRequestFingerprintReaderMockRecorder) ReadAuthorizationRequestFingerprint

func (mr *MockAuthorizationRequestFingerprintReaderMockRecorder) ReadAuthorizationRequestFingerprint(ctx, clientID, authCode any) *gomock.Call

ReadAuthorizationRequestFingerprint indicates an expected call of ReadAuthorizationRequestFingerprint.

type MockAuthorizationRequestFingerprintWriter

type MockAuthorizationRequestFingerprintWriter struct {
	// contains filtered or unexported fields
}

MockAuthorizationRequestFingerprintWriter is a mock of AuthorizationRequestFingerprintWriter interface.

func NewMockAuthorizationRequestFingerprintWriter

func NewMockAuthorizationRequestFingerprintWriter(ctrl *gomock.Controller) *MockAuthorizationRequestFingerprintWriter

NewMockAuthorizationRequestFingerprintWriter creates a new mock instance.

func (*MockAuthorizationRequestFingerprintWriter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAuthorizationRequestFingerprintWriter) WriteAuthorizationRequestFingerprint

func (m *MockAuthorizationRequestFingerprintWriter) WriteAuthorizationRequestFingerprint(ctx context.Context, clientID typedef.ClientID, authCode string, param *typedef.AuthorizationRequestFingerprint) error

WriteAuthorizationRequestFingerprint mocks base method.

type MockAuthorizationRequestFingerprintWriterMockRecorder

type MockAuthorizationRequestFingerprintWriterMockRecorder struct {
	// contains filtered or unexported fields
}

MockAuthorizationRequestFingerprintWriterMockRecorder is the mock recorder for MockAuthorizationRequestFingerprintWriter.

func (*MockAuthorizationRequestFingerprintWriterMockRecorder) WriteAuthorizationRequestFingerprint

func (mr *MockAuthorizationRequestFingerprintWriterMockRecorder) WriteAuthorizationRequestFingerprint(ctx, clientID, authCode, param any) *gomock.Call

WriteAuthorizationRequestFingerprint indicates an expected call of WriteAuthorizationRequestFingerprint.

type MockClocker

type MockClocker struct {
	// contains filtered or unexported fields
}

MockClocker is a mock of Clocker interface.

func NewMockClocker

func NewMockClocker(ctrl *gomock.Controller) *MockClocker

NewMockClocker creates a new mock instance.

func (*MockClocker) EXPECT

func (m *MockClocker) EXPECT() *MockClockerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClocker) Now

func (m *MockClocker) Now() time.Time

Now mocks base method.

type MockClockerMockRecorder

type MockClockerMockRecorder struct {
	// contains filtered or unexported fields
}

MockClockerMockRecorder is the mock recorder for MockClocker.

func (*MockClockerMockRecorder) Now

func (mr *MockClockerMockRecorder) Now() *gomock.Call

Now indicates an expected call of Now.

type MockContextReader

type MockContextReader struct {
	// contains filtered or unexported fields
}

MockContextReader is a mock of ContextReader interface.

func NewMockContextReader

func NewMockContextReader(ctrl *gomock.Controller) *MockContextReader

NewMockContextReader creates a new mock instance.

func (*MockContextReader) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockContextReader) Read

func (m *MockContextReader) Read(ctx context.Context, key any) any

Read mocks base method.

type MockContextReaderMockRecorder

type MockContextReaderMockRecorder struct {
	// contains filtered or unexported fields
}

MockContextReaderMockRecorder is the mock recorder for MockContextReader.

func (*MockContextReaderMockRecorder) Read

func (mr *MockContextReaderMockRecorder) Read(ctx, key any) *gomock.Call

Read indicates an expected call of Read.

type MockCookieReadWriter

type MockCookieReadWriter struct {
	// contains filtered or unexported fields
}

MockCookieReadWriter is a mock of CookieReadWriter interface.

func NewMockCookieReadWriter

func NewMockCookieReadWriter(ctrl *gomock.Controller) *MockCookieReadWriter

NewMockCookieReadWriter creates a new mock instance.

func (*MockCookieReadWriter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCookieReadWriter) Read

func (m *MockCookieReadWriter) Read(r *http.Request, name string) (string, error)

Read mocks base method.

func (*MockCookieReadWriter) Write

func (m *MockCookieReadWriter) Write(w http.ResponseWriter, name, val string, ttl time.Duration) error

Write mocks base method.

type MockCookieReadWriterMockRecorder

type MockCookieReadWriterMockRecorder struct {
	// contains filtered or unexported fields
}

MockCookieReadWriterMockRecorder is the mock recorder for MockCookieReadWriter.

func (*MockCookieReadWriterMockRecorder) Read

func (mr *MockCookieReadWriterMockRecorder) Read(r, name any) *gomock.Call

Read indicates an expected call of Read.

func (*MockCookieReadWriterMockRecorder) Write

func (mr *MockCookieReadWriterMockRecorder) Write(w, name, val, ttl any) *gomock.Call

Write indicates an expected call of Write.

type MockCookieReader

type MockCookieReader struct {
	// contains filtered or unexported fields
}

MockCookieReader is a mock of CookieReader interface.

func NewMockCookieReader

func NewMockCookieReader(ctrl *gomock.Controller) *MockCookieReader

NewMockCookieReader creates a new mock instance.

func (*MockCookieReader) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCookieReader) Read

func (m *MockCookieReader) Read(r *http.Request, name string) (string, error)

Read mocks base method.

type MockCookieReaderMockRecorder

type MockCookieReaderMockRecorder struct {
	// contains filtered or unexported fields
}

MockCookieReaderMockRecorder is the mock recorder for MockCookieReader.

func (*MockCookieReaderMockRecorder) Read

func (mr *MockCookieReaderMockRecorder) Read(r, name any) *gomock.Call

Read indicates an expected call of Read.

type MockCookieWriter

type MockCookieWriter struct {
	// contains filtered or unexported fields
}

MockCookieWriter is a mock of CookieWriter interface.

func NewMockCookieWriter

func NewMockCookieWriter(ctrl *gomock.Controller) *MockCookieWriter

NewMockCookieWriter creates a new mock instance.

func (*MockCookieWriter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCookieWriter) Write

func (m *MockCookieWriter) Write(w http.ResponseWriter, name, val string, ttl time.Duration) error

Write mocks base method.

type MockCookieWriterMockRecorder

type MockCookieWriterMockRecorder struct {
	// contains filtered or unexported fields
}

MockCookieWriterMockRecorder is the mock recorder for MockCookieWriter.

func (*MockCookieWriterMockRecorder) Write

func (mr *MockCookieWriterMockRecorder) Write(w, name, val, ttl any) *gomock.Call

Write indicates an expected call of Write.

type MockIDGenerator

type MockIDGenerator struct {
	// contains filtered or unexported fields
}

MockIDGenerator is a mock of IDGenerator interface.

func NewMockIDGenerator

func NewMockIDGenerator(ctrl *gomock.Controller) *MockIDGenerator

NewMockIDGenerator creates a new mock instance.

func (*MockIDGenerator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIDGenerator) NextID

func (m *MockIDGenerator) NextID() (uint64, error)

NextID mocks base method.

type MockIDGeneratorMockRecorder

type MockIDGeneratorMockRecorder struct {
	// contains filtered or unexported fields
}

MockIDGeneratorMockRecorder is the mock recorder for MockIDGenerator.

func (*MockIDGeneratorMockRecorder) NextID

func (mr *MockIDGeneratorMockRecorder) NextID() *gomock.Call

NextID indicates an expected call of NextID.

type MockIDTokenGenerator

type MockIDTokenGenerator struct {
	// contains filtered or unexported fields
}

MockIDTokenGenerator is a mock of IDTokenGenerator interface.

func NewMockIDTokenGenerator

func NewMockIDTokenGenerator(ctrl *gomock.Controller) *MockIDTokenGenerator

NewMockIDTokenGenerator creates a new mock instance.

func (*MockIDTokenGenerator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIDTokenGenerator) GenerateIDToken

func (m *MockIDTokenGenerator) GenerateIDToken(uid typedef.UserID, audiences []string, authTime time.Time, nonce string) (string, error)

GenerateIDToken mocks base method.

type MockIDTokenGeneratorMockRecorder

type MockIDTokenGeneratorMockRecorder struct {
	// contains filtered or unexported fields
}

MockIDTokenGeneratorMockRecorder is the mock recorder for MockIDTokenGenerator.

func (*MockIDTokenGeneratorMockRecorder) GenerateIDToken

func (mr *MockIDTokenGeneratorMockRecorder) GenerateIDToken(uid, audiences, authTime, nonce any) *gomock.Call

GenerateIDToken indicates an expected call of GenerateIDToken.

type MockRefreshTokenGenerator

type MockRefreshTokenGenerator struct {
	// contains filtered or unexported fields
}

MockRefreshTokenGenerator is a mock of RefreshTokenGenerator interface.

func NewMockRefreshTokenGenerator

func NewMockRefreshTokenGenerator(ctrl *gomock.Controller) *MockRefreshTokenGenerator

NewMockRefreshTokenGenerator creates a new mock instance.

func (*MockRefreshTokenGenerator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRefreshTokenGenerator) GenerateRefreshToken

func (m *MockRefreshTokenGenerator) GenerateRefreshToken(uid typedef.UserID, claims map[string]any) (string, error)

GenerateRefreshToken mocks base method.

type MockRefreshTokenGeneratorMockRecorder

type MockRefreshTokenGeneratorMockRecorder struct {
	// contains filtered or unexported fields
}

MockRefreshTokenGeneratorMockRecorder is the mock recorder for MockRefreshTokenGenerator.

func (*MockRefreshTokenGeneratorMockRecorder) GenerateRefreshToken

func (mr *MockRefreshTokenGeneratorMockRecorder) GenerateRefreshToken(uid, claims any) *gomock.Call

GenerateRefreshToken indicates an expected call of GenerateRefreshToken.

type MockRefreshTokenReader

type MockRefreshTokenReader struct {
	// contains filtered or unexported fields
}

MockRefreshTokenReader is a mock of RefreshTokenReader interface.

func NewMockRefreshTokenReader

func NewMockRefreshTokenReader(ctrl *gomock.Controller) *MockRefreshTokenReader

NewMockRefreshTokenReader creates a new mock instance.

func (*MockRefreshTokenReader) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRefreshTokenReader) ReadRefreshToken

func (m *MockRefreshTokenReader) ReadRefreshToken(ctx context.Context, clientID typedef.ClientID, userID typedef.UserID) (jwt.Token, error)

ReadRefreshToken mocks base method.

type MockRefreshTokenReaderMockRecorder

type MockRefreshTokenReaderMockRecorder struct {
	// contains filtered or unexported fields
}

MockRefreshTokenReaderMockRecorder is the mock recorder for MockRefreshTokenReader.

func (*MockRefreshTokenReaderMockRecorder) ReadRefreshToken

func (mr *MockRefreshTokenReaderMockRecorder) ReadRefreshToken(ctx, clientID, userID any) *gomock.Call

ReadRefreshToken indicates an expected call of ReadRefreshToken.

type MockRefreshTokenWriter

type MockRefreshTokenWriter struct {
	// contains filtered or unexported fields
}

MockRefreshTokenWriter is a mock of RefreshTokenWriter interface.

func NewMockRefreshTokenWriter

func NewMockRefreshTokenWriter(ctrl *gomock.Controller) *MockRefreshTokenWriter

NewMockRefreshTokenWriter creates a new mock instance.

func (*MockRefreshTokenWriter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRefreshTokenWriter) WriteRefreshToken

func (m *MockRefreshTokenWriter) WriteRefreshToken(ctx context.Context, token string, clientID typedef.ClientID, userID typedef.UserID) error

WriteRefreshToken mocks base method.

type MockRefreshTokenWriterMockRecorder

type MockRefreshTokenWriterMockRecorder struct {
	// contains filtered or unexported fields
}

MockRefreshTokenWriterMockRecorder is the mock recorder for MockRefreshTokenWriter.

func (*MockRefreshTokenWriterMockRecorder) WriteRefreshToken

func (mr *MockRefreshTokenWriterMockRecorder) WriteRefreshToken(ctx, token, clientID, userID any) *gomock.Call

WriteRefreshToken indicates an expected call of WriteRefreshToken.

type MockSessionCreator

type MockSessionCreator struct {
	// contains filtered or unexported fields
}

MockSessionCreator is a mock of SessionCreator interface.

func NewMockSessionCreator

func NewMockSessionCreator(ctrl *gomock.Controller) *MockSessionCreator

NewMockSessionCreator creates a new mock instance.

func (*MockSessionCreator) CreateSession

func (m *MockSessionCreator) CreateSession(ctx context.Context, uid typedef.UserID) (typedef.SessionID, error)

CreateSession mocks base method.

func (*MockSessionCreator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockSessionCreatorMockRecorder

type MockSessionCreatorMockRecorder struct {
	// contains filtered or unexported fields
}

MockSessionCreatorMockRecorder is the mock recorder for MockSessionCreator.

func (*MockSessionCreatorMockRecorder) CreateSession

func (mr *MockSessionCreatorMockRecorder) CreateSession(ctx, uid any) *gomock.Call

CreateSession indicates an expected call of CreateSession.

type MockStructValidator

type MockStructValidator struct {
	// contains filtered or unexported fields
}

MockStructValidator is a mock of StructValidator interface.

func NewMockStructValidator

func NewMockStructValidator(ctrl *gomock.Controller) *MockStructValidator

NewMockStructValidator creates a new mock instance.

func (*MockStructValidator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockStructValidator) Struct

func (m *MockStructValidator) Struct(s any) error

Struct mocks base method.

type MockStructValidatorMockRecorder

type MockStructValidatorMockRecorder struct {
	// contains filtered or unexported fields
}

MockStructValidatorMockRecorder is the mock recorder for MockStructValidator.

func (*MockStructValidatorMockRecorder) Struct

Struct indicates an expected call of Struct.

type MockTokenGenerator

type MockTokenGenerator struct {
	// contains filtered or unexported fields
}

MockTokenGenerator is a mock of TokenGenerator interface.

func NewMockTokenGenerator

func NewMockTokenGenerator(ctrl *gomock.Controller) *MockTokenGenerator

NewMockTokenGenerator creates a new mock instance.

func (*MockTokenGenerator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTokenGenerator) GenerateAccessToken

func (m *MockTokenGenerator) GenerateAccessToken(uid typedef.UserID, claims map[string]any) (string, error)

GenerateAccessToken mocks base method.

func (*MockTokenGenerator) GenerateIDToken

func (m *MockTokenGenerator) GenerateIDToken(uid typedef.UserID, audiences []string, authTime time.Time, nonce string) (string, error)

GenerateIDToken mocks base method.

func (*MockTokenGenerator) GenerateRefreshToken

func (m *MockTokenGenerator) GenerateRefreshToken(uid typedef.UserID, claims map[string]any) (string, error)

GenerateRefreshToken mocks base method.

type MockTokenGeneratorMockRecorder

type MockTokenGeneratorMockRecorder struct {
	// contains filtered or unexported fields
}

MockTokenGeneratorMockRecorder is the mock recorder for MockTokenGenerator.

func (*MockTokenGeneratorMockRecorder) GenerateAccessToken

func (mr *MockTokenGeneratorMockRecorder) GenerateAccessToken(uid, claims any) *gomock.Call

GenerateAccessToken indicates an expected call of GenerateAccessToken.

func (*MockTokenGeneratorMockRecorder) GenerateIDToken

func (mr *MockTokenGeneratorMockRecorder) GenerateIDToken(uid, audiences, authTime, nonce any) *gomock.Call

GenerateIDToken indicates an expected call of GenerateIDToken.

func (*MockTokenGeneratorMockRecorder) GenerateRefreshToken

func (mr *MockTokenGeneratorMockRecorder) GenerateRefreshToken(uid, claims any) *gomock.Call

GenerateRefreshToken indicates an expected call of GenerateRefreshToken.

type MockTokenParser

type MockTokenParser struct {
	// contains filtered or unexported fields
}

MockTokenParser is a mock of TokenParser interface.

func NewMockTokenParser

func NewMockTokenParser(ctrl *gomock.Controller) *MockTokenParser

NewMockTokenParser creates a new mock instance.

func (*MockTokenParser) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTokenParser) Parse

func (m *MockTokenParser) Parse(token string) (jwt.Token, error)

Parse mocks base method.

type MockTokenParserMockRecorder

type MockTokenParserMockRecorder struct {
	// contains filtered or unexported fields
}

MockTokenParserMockRecorder is the mock recorder for MockTokenParser.

func (*MockTokenParserMockRecorder) Parse

func (mr *MockTokenParserMockRecorder) Parse(token any) *gomock.Call

Parse indicates an expected call of Parse.

type MockTokenProcessor

type MockTokenProcessor struct {
	// contains filtered or unexported fields
}

MockTokenProcessor is a mock of TokenProcessor interface.

func NewMockTokenProcessor

func NewMockTokenProcessor(ctrl *gomock.Controller) *MockTokenProcessor

NewMockTokenProcessor creates a new mock instance.

func (*MockTokenProcessor) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTokenProcessor) GenerateAccessToken

func (m *MockTokenProcessor) GenerateAccessToken(uid typedef.UserID, claims map[string]any) (string, error)

GenerateAccessToken mocks base method.

func (*MockTokenProcessor) GenerateIDToken

func (m *MockTokenProcessor) GenerateIDToken(uid typedef.UserID, audiences []string, authTime time.Time, nonce string) (string, error)

GenerateIDToken mocks base method.

func (*MockTokenProcessor) GenerateRefreshToken

func (m *MockTokenProcessor) GenerateRefreshToken(uid typedef.UserID, claims map[string]any) (string, error)

GenerateRefreshToken mocks base method.

func (*MockTokenProcessor) Parse

func (m *MockTokenProcessor) Parse(token string) (jwt.Token, error)

Parse mocks base method.

type MockTokenProcessorMockRecorder

type MockTokenProcessorMockRecorder struct {
	// contains filtered or unexported fields
}

MockTokenProcessorMockRecorder is the mock recorder for MockTokenProcessor.

func (*MockTokenProcessorMockRecorder) GenerateAccessToken

func (mr *MockTokenProcessorMockRecorder) GenerateAccessToken(uid, claims any) *gomock.Call

GenerateAccessToken indicates an expected call of GenerateAccessToken.

func (*MockTokenProcessorMockRecorder) GenerateIDToken

func (mr *MockTokenProcessorMockRecorder) GenerateIDToken(uid, audiences, authTime, nonce any) *gomock.Call

GenerateIDToken indicates an expected call of GenerateIDToken.

func (*MockTokenProcessorMockRecorder) GenerateRefreshToken

func (mr *MockTokenProcessorMockRecorder) GenerateRefreshToken(uid, claims any) *gomock.Call

GenerateRefreshToken indicates an expected call of GenerateRefreshToken.

func (*MockTokenProcessorMockRecorder) Parse

func (mr *MockTokenProcessorMockRecorder) Parse(token any) *gomock.Call

Parse indicates an expected call of Parse.

type RefreshTokenGenerator

type RefreshTokenGenerator interface {
	GenerateRefreshToken(uid typedef.UserID, claims map[string]any) (string, error)
}

type RefreshTokenReader

type RefreshTokenReader interface {
	ReadRefreshToken(ctx context.Context, clientID typedef.ClientID, userID typedef.UserID) (jwt.Token, error)
}

type RefreshTokenWriter

type RefreshTokenWriter interface {
	WriteRefreshToken(ctx context.Context, token string, clientID typedef.ClientID, userID typedef.UserID) error
}

type SessionCreator

type SessionCreator interface {
	CreateSession(ctx context.Context, uid typedef.UserID) (typedef.SessionID, error)
}

type StructValidator

type StructValidator interface {
	Struct(s any) error
}

type TokenParser

type TokenParser interface {
	Parse(token string) (jwt.Token, error)
}

type TokenProcessor

type TokenProcessor interface {
	TokenGenerator
	TokenParser
}

Jump to

Keyboard shortcuts

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