package
0.0.0-20230704193043-9b6346a66585
Repository: https://github.com/jecsand/go-grpc-server-boilerplate.git
Documentation: pkg.go.dev

# Functions

DecodeJWT is used to decode a JWT token.
InitUserToken inputs a pointer to a user and returns TokenData.
LoadGroupCreateProto inputs a groupsService.CreateReq and returns a Group.
LoadGroupFindProto inputs a groupsService.FindReq and returns a Group.
LoadGroupProto inputs a groupsService and returns a Group.
LoadGroupUpdateProto inputs a groupsService.UpdateReq and returns a Group.
LoadLoginProto inputs an authService.LoginReq and returns a User.
LoadPasswordUpdateProto inputs an authService.LoginReq and returns a PasswordUpdate.
LoadRegisterProto inputs an authService.RegisterReq and returns a User.
LoadTaskCreateProto inputs a tasksService.CreateReq and returns a Task.
LoadTaskFindProto inputs a tasksService.FindReq and returns a Task.
LoadTaskProto inputs a usersService and returns a Task.
LoadTaskUpdateProto inputs a tasksService.UpdateReq and returns a Task.
LoadTokenFromContext inputs a http request and returns decrypted TokenData or an error.
LoadUserCreateProto inputs a usersService.CreateReq and returns a User.
LoadUserFindProto inputs a usersService.FindReq and returns a User.
LoadUserProto inputs a usersService.User and returns a User.
LoadUserUpdateProto inputs a usersService.UpdateReq and returns a User.
NewInFile constructs an InFile.
UsersToFiles converts an input slice of user to a slice of file.
VerifyGroupRequestScope inputs a Group http request and returns decrypted TokenData or an error.
VerifyRequestScope inputs generic http requests and returns decrypted TokenData or an error.
VerifyUserRequestScope inputs User http request and returns decrypted TokenData or an error.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Blacklist is a root struct that is used to store the json encoded data for/from a mongodb blacklist doc.
File is a root struct that is used to store the json encoded data for/from a mongodb file doc.
FilesRes Multiple Files in a paginated response.
Group is a root struct that is used to store the json encoded data for/from a mongodb group doc.
GroupsRes Multiple Groups in a paginated response.
GroupTasks is used for storing a Group record with it's associated Tasks.
GroupUsers is used for storing a Group record with it's associated Users.
InFile is used for streaming bytes into.
PasswordUpdate stores the structured data from a session token for use.
Task is a root struct that is used to store the json encoded data for/from a mongodb group doc.
TasksRes Multiple Tasks in a paginated response.
TokenData stores the structured data from a session token for use.
User is a root struct that is used to store the json encoded data for/from a mongodb user doc.
UsersRes Multiple Users in a paginated response.

# Type aliases

No description provided by the author