Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JacobSNGoodwin/memrizr
/ types & classes
Types & classes
38 in github.com/JacobSNGoodwin/memrizr
⨍
Functions
142
◇
Types & classes
38
Struct
Config
Config will hold services that will eventually be injected into this handler layer on handler initialization
account/handler/handler.go:21
Struct
Error
Error holds a custom error for the application which is helpful in returning a consistent error type/message from API endpoints
account/model/apperrors/apperrors.go:27
Struct
Handler
Handler struct holds required services for handler to function
account/handler/handler.go:13
Struct
IDToken
IDToken stores token properties that are accessed in multiple application layers
account/model/tokens.go:15
Interface
ImageRepository
ImageRepository defines methods it expects a repository it interacts with to implement
account/model/interfaces.go:51
Struct
MockImageRepository
MockImageRepository is a mock type for model.ImageRepository
account/model/mocks/image_repository.go:11
Struct
MockTokenRepository
... imports omitted MockTokenRepository is a mock type for model.TokenRepository
account/model/mocks/token_repository.go:13
Struct
MockTokenService
MockTokenService is a mock type for model.TokenService
account/model/mocks/token_service.go:12
Struct
MockUserRepository
MockUserRepository is a mock type for model.UserRepository
account/model/mocks/user_repository.go:12
Struct
MockUserService
MockUserService is a mock type for model.UserService
account/model/mocks/user_service.go:13
Struct
MultipartImage
MultipartImage used for instantiating a test fixture for creating multipart file uploads containing an image
account/model/fixture/multipart.go:19
Struct
RefreshToken
RefreshToken stores token properties that are accessed in multiple application layers
account/model/tokens.go:7
Struct
TSConfig
TSConfig will hold repositories that will eventually be injected into this this service layer
account/service/token_service.go:27
Struct
TokenPair
TokenPair used for returning pairs of id and refresh tokens
account/model/tokens.go:20
Interface
TokenRepository
TokenRepository defines methods it expects a repository it interacts with to implement
account/model/interfaces.go:43
Interface
TokenService
TokenService defines methods the handler layer expects to interact with in regards to producing JWTs as string
account/model/interfaces.go:24
TypeAlias
Type
Type holds a type string and integer code for the error
account/model/apperrors/apperrors.go:10
Struct
USConfig
USConfig will hold repositories that will eventually be injected into this this service layer
account/service/user_service.go:24
Struct
User
User defines domain model and its json and db representations
account/model/user.go:8
Interface
UserRepository
UserRepository defines methods the service layer expects any repository it interacts with to implement
account/model/interfaces.go:33
Interface
UserService
UserService defines methods the handler layer expects any service it interacts with to implement
account/model/interfaces.go:13
Struct
authHeader
account/handler/middleware/auth_user.go:12
Struct
dataSources
account/data_sources.go:16
Struct
detailsReq
omitempty must be listed first (tags evaluated sequentially, it seems)
account/handler/details.go:13
Struct
gcImageRepository
account/repository/gc_image_repository.go:15
Struct
idTokenCustomClaims
idTokenCustomClaims holds structure of jwt claims of idToken
account/service/tokens.go:15
Struct
invalidArgument
used to help extract validation errors
account/handler/bind_data.go:13
Struct
invalidArgument
used to help extract validation errors
account/handler/middleware/auth_user.go:17
Struct
pGUserRepository
PGUserRepository is data/repository implementation of service layer UserRepository
account/repository/pg_user_repository.go:16
Struct
redisTokenRepository
redisTokenRepository is data/repository implementation of service layer TokenRepository
account/repository/redis_token_repository.go:16
Struct
refreshTokenCustomClaims
refreshTokenCustomClaims holds the payload of a refresh token This can be used to extract user id for subsequent application operations (IE, fetch use
account/service/tokens.go:56
Struct
refreshTokenData
refreshTokenData holds the actual signed jwt string along with the ID We return the id so it can be used without re-parsing the JWT from signed string
account/service/tokens.go:47
Struct
signinReq
signinReq is not exported
account/handler/sigin.go:13
Struct
signupReq
signupReq is not exported, hence the lowercase name it is used for validation and json marshalling
account/handler/signup.go:14
Struct
timeoutWriter
implements http.Writer, but tracks if Writer has timed out or has already written its header to prevent header and body overwrites also locks access t
account/handler/middleware/timeout.go:95
Struct
tokenService
tokenService used for injecting an implementation of TokenRepository for use in service methods along with keys and secrets for signing JWTs
account/service/token_service.go:16
Struct
tokensReq
account/handler/tokens.go:11
Struct
userService
userService acts as a struct for injecting an implementation of UserRepository for use in service methods
account/service/user_service.go:17