Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewOptions, NewImpl)
ProviderSet is a provider set for wire
Functions ¶
This section is empty.
Types ¶
type IJwt ¶
type IJwt interface { NewToken(info *user.Profile) (string, error) ValidateToken(signedToken string) (claims *TokenClaims, err error) }
IJwt declare a jwt factory functions
type MockIJwt ¶
MockIJwt is an autogenerated mock type for the IJwt type
func NewMockIJwt ¶
func NewMockIJwt(t mockConstructorTestingTNewMockIJwt) *MockIJwt
NewMockIJwt creates a new instance of MockIJwt. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockIJwt) ValidateToken ¶
func (_m *MockIJwt) ValidateToken(signedToken string) (*TokenClaims, error)
ValidateToken provides a mock function with given fields: signedToken
type TokenClaims ¶
type TokenClaims struct { ID uint64 `json:"id"` jwt.StandardClaims }
TokenClaims declare custom claims
Click to show internal directories.
Click to hide internal directories.