Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dhax/go-base
/ types & classes
Types & classes
53 in github.com/dhax/go-base
⨍
Functions
190
◇
Types & classes
53
Struct
API
API provides application resources and handlers.
api/app/api.go:23
Struct
API
API provides admin application resources and handlers.
api/admin/api.go:28
Struct
Account
Account represents an authenticated application user
auth/pwdless/account.go:15
Struct
AccountFilter
AccountFilter provides pagination and filtering options on accounts.
database/admAccountStore.go:35
Struct
AccountResource
AccountResource implements account management handler.
api/app/account.go:33
Struct
AccountResource
AccountResource implements account management handler.
api/admin/accounts.go:32
Interface
AccountStore
AccountStore defines database operations for account.
api/app/account.go:24
Interface
AccountStore
AccountStore defines database operations for account management.
api/admin/accounts.go:23
Struct
AccountStore
AccountStore implements database operations for account management by user.
database/accountStore.go:14
Struct
AdmAccountStore
AdmAccountStore implements database operations for account management by admin.
database/admAccountStore.go:23
Struct
AppClaims
AppClaims represent the claims parsed from JWT access token.
auth/jwt/claims.go:15
Struct
AuthStore
AuthStore implements database operations for account pwdlessentication.
database/authStore.go:13
Interface
AuthStorer
AuthStorer defines database operations on accounts and tokens.
auth/pwdless/api.go:25
Struct
CommonClaims
auth/jwt/claims.go:9
Struct
ContentLoginToken
ContentLoginToken defines content for login token email template.
auth/pwdless/emails.go:11
Struct
Email
Email struct holds email address and recipient name.
email/mailer.go:61
Struct
ErrResponse
ErrResponse renderer type for handling all sorts of errors.
auth/authorize/errors.go:10
Struct
ErrResponse
ErrResponse renderer type for handling all sorts of errors.
auth/pwdless/errors.go:19
Struct
ErrResponse
ErrResponse renderer type for handling all sorts of errors.
auth/jwt/errors.go:21
Struct
ErrResponse
ErrResponse renderer type for handling all sorts of errors.
api/app/errors.go:11
Struct
ErrResponse
ErrResponse renderer type for handling all sorts of errors.
api/admin/errors.go:11
Struct
LoginToken
LoginToken is an in-memory saved token referencing an account ID and an expiry date.
auth/pwdless/logintoken.go:15
Struct
LoginTokenAuth
LoginTokenAuth implements passwordless login authentication flow using temporary in-memory stored tokens.
auth/pwdless/logintoken.go:22
Interface
Mailer
email/mailer.go:20
Struct
Message
Message struct holds all parts of a specific email Message.
email/mailer.go:25
Struct
MockAuthStore
MockAuthStore mocks AuthStorer interface.
auth/pwdless/mockAuthStore.go:6
Struct
MockMailer
MockMailer is a mock Mailer
email/mockMailer.go:6
Struct
Profile
Profile holds specific application settings linked to an Account.
models/profile.go:13
Struct
ProfileResource
ProfileResource implements profile management handler.
api/app/profile.go:27
Interface
ProfileStore
ProfileStore defines database operations for a profile.
api/app/profile.go:21
Struct
ProfileStore
ProfileStore implements database operations for profile management.
database/profileStore.go:12
Struct
RefreshClaims
RefreshClaims represents the claims parsed from JWT refresh token.
auth/jwt/claims.go:53
Struct
Resource
Resource implements passwordless account authentication against a database.
auth/pwdless/api.go:37
Struct
SMTPMailer
SMTPMailer is a SMTP mailer.
email/smtp.go:9
Struct
Server
Server provides an http.Server.
api/server.go:15
Struct
StructuredLogger
StructuredLogger is a structured logrus Logger.
logging/logger.go:19
Struct
StructuredLoggerEntry
StructuredLoggerEntry is a logrus.FieldLogger.
logging/logger.go:87
Struct
Token
Token holds refresh jwt information.
auth/jwt/token.go:10
Struct
TokenAuth
TokenAuth implements JWT authentication flow.
auth/jwt/tokenauth.go:13
Struct
accountListResponse
api/admin/accounts.go:90
Struct
accountRequest
api/app/account.go:72
Struct
accountRequest
api/admin/accounts.go:73
Struct
accountResponse
api/app/account.go:87
Struct
accountResponse
api/admin/accounts.go:81
TypeAlias
ctxKey
auth/jwt/authenticator.go:15
TypeAlias
ctxKey
api/app/api.go:15
TypeAlias
ctxKey
api/admin/api.go:21
Struct
loginRequest
auth/pwdless/api.go:87
Struct
profileRequest
api/app/profile.go:60
Struct
profileResponse
api/app/profile.go:69
Struct
tokenRequest
auth/pwdless/api.go:142
Struct
tokenRequest
api/app/account.go:131
Struct
tokenResponse
auth/pwdless/api.go:146