MCPcopy Create free account

hub / github.com/JacobSNGoodwin/memrizr / types & classes

Types & classes38 in github.com/JacobSNGoodwin/memrizr

StructConfig
Config will hold services that will eventually be injected into this handler layer on handler initialization
account/handler/handler.go:21
StructError
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
StructHandler
Handler struct holds required services for handler to function
account/handler/handler.go:13
StructIDToken
IDToken stores token properties that are accessed in multiple application layers
account/model/tokens.go:15
InterfaceImageRepository
ImageRepository defines methods it expects a repository it interacts with to implement
account/model/interfaces.go:51
StructMockImageRepository
MockImageRepository is a mock type for model.ImageRepository
account/model/mocks/image_repository.go:11
StructMockTokenRepository
... imports omitted MockTokenRepository is a mock type for model.TokenRepository
account/model/mocks/token_repository.go:13
StructMockTokenService
MockTokenService is a mock type for model.TokenService
account/model/mocks/token_service.go:12
StructMockUserRepository
MockUserRepository is a mock type for model.UserRepository
account/model/mocks/user_repository.go:12
StructMockUserService
MockUserService is a mock type for model.UserService
account/model/mocks/user_service.go:13
StructMultipartImage
MultipartImage used for instantiating a test fixture for creating multipart file uploads containing an image
account/model/fixture/multipart.go:19
StructRefreshToken
RefreshToken stores token properties that are accessed in multiple application layers
account/model/tokens.go:7
StructTSConfig
TSConfig will hold repositories that will eventually be injected into this this service layer
account/service/token_service.go:27
StructTokenPair
TokenPair used for returning pairs of id and refresh tokens
account/model/tokens.go:20
InterfaceTokenRepository
TokenRepository defines methods it expects a repository it interacts with to implement
account/model/interfaces.go:43
InterfaceTokenService
TokenService defines methods the handler layer expects to interact with in regards to producing JWTs as string
account/model/interfaces.go:24
TypeAliasType
Type holds a type string and integer code for the error
account/model/apperrors/apperrors.go:10
StructUSConfig
USConfig will hold repositories that will eventually be injected into this this service layer
account/service/user_service.go:24
StructUser
User defines domain model and its json and db representations
account/model/user.go:8
InterfaceUserRepository
UserRepository defines methods the service layer expects any repository it interacts with to implement
account/model/interfaces.go:33
InterfaceUserService
UserService defines methods the handler layer expects any service it interacts with to implement
account/model/interfaces.go:13
StructauthHeader
account/handler/middleware/auth_user.go:12
StructdataSources
account/data_sources.go:16
StructdetailsReq
omitempty must be listed first (tags evaluated sequentially, it seems)
account/handler/details.go:13
StructgcImageRepository
account/repository/gc_image_repository.go:15
StructidTokenCustomClaims
idTokenCustomClaims holds structure of jwt claims of idToken
account/service/tokens.go:15
StructinvalidArgument
used to help extract validation errors
account/handler/bind_data.go:13
StructinvalidArgument
used to help extract validation errors
account/handler/middleware/auth_user.go:17
StructpGUserRepository
PGUserRepository is data/repository implementation of service layer UserRepository
account/repository/pg_user_repository.go:16
StructredisTokenRepository
redisTokenRepository is data/repository implementation of service layer TokenRepository
account/repository/redis_token_repository.go:16
StructrefreshTokenCustomClaims
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
StructrefreshTokenData
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
StructsigninReq
signinReq is not exported
account/handler/sigin.go:13
StructsignupReq
signupReq is not exported, hence the lowercase name it is used for validation and json marshalling
account/handler/signup.go:14
StructtimeoutWriter
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
StructtokenService
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
StructtokensReq
account/handler/tokens.go:11
StructuserService
userService acts as a struct for injecting an implementation of UserRepository for use in service methods
account/service/user_service.go:17