jwt

package
v0.0.0-...-d989180 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package jwt is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWT

type JWT interface {
	NewToken(secret, issuer, subject string, duration time.Duration) (string, error)
	GetUserID(ctx context.Context) string
	GetUserEmail(ctx context.Context) string
	GetUserClaims(ctx context.Context) map[string]interface{}
}

func New

func New() JWT

type MockJWT

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

MockJWT is a mock of JWT interface.

func NewMockJWT

func NewMockJWT(ctrl *gomock.Controller) *MockJWT

NewMockJWT creates a new mock instance.

func (*MockJWT) EXPECT

func (m *MockJWT) EXPECT() *MockJWTMockRecorder

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

func (*MockJWT) GetUserClaims

func (m *MockJWT) GetUserClaims(ctx context.Context) map[string]interface{}

GetUserClaims mocks base method.

func (*MockJWT) GetUserEmail

func (m *MockJWT) GetUserEmail(ctx context.Context) string

GetUserEmail mocks base method.

func (*MockJWT) GetUserID

func (m *MockJWT) GetUserID(ctx context.Context) string

GetUserID mocks base method.

func (*MockJWT) NewToken

func (m *MockJWT) NewToken(secret, issuer, subject string, duration time.Duration) (string, error)

NewToken mocks base method.

type MockJWTMockRecorder

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

MockJWTMockRecorder is the mock recorder for MockJWT.

func (*MockJWTMockRecorder) GetUserClaims

func (mr *MockJWTMockRecorder) GetUserClaims(ctx interface{}) *gomock.Call

GetUserClaims indicates an expected call of GetUserClaims.

func (*MockJWTMockRecorder) GetUserEmail

func (mr *MockJWTMockRecorder) GetUserEmail(ctx interface{}) *gomock.Call

GetUserEmail indicates an expected call of GetUserEmail.

func (*MockJWTMockRecorder) GetUserID

func (mr *MockJWTMockRecorder) GetUserID(ctx interface{}) *gomock.Call

GetUserID indicates an expected call of GetUserID.

func (*MockJWTMockRecorder) NewToken

func (mr *MockJWTMockRecorder) NewToken(secret, issuer, subject, duration interface{}) *gomock.Call

NewToken indicates an expected call of NewToken.

Jump to

Keyboard shortcuts

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