Versions in this module Expand all Collapse all v1 v1.0.0 May 26, 2022 Changes in this version + type MockService struct + func NewMockService(ctrl *gomock.Controller) *MockService + func (m *MockService) EXPECT() *MockServiceMockRecorder + func (m *MockService) GenerateToken(userID uint) (string, error) + func (m *MockService) ValidateToken(token string) (*jwt.Token, error) + type MockServiceMockRecorder struct + func (mr *MockServiceMockRecorder) GenerateToken(userID interface{}) *gomock.Call + func (mr *MockServiceMockRecorder) ValidateToken(token interface{}) *gomock.Call + type Service interface + GenerateToken func(userID uint) (string, error) + ValidateToken func(token string) (*jwt.Token, error) + func NewService(tokenConfig TokenConfig) Service + type TokenConfig struct + Issuer string + SecretKey string