package
0.0.0-20240704154405-1dca9789e69f
Repository: https://github.com/pvr1/gigs.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
AcceptTransaction - Accept a transaction (as a employer) that has been placed by a worker.
AddGig - Add a new gig to the store.
CallbackHandler for our callback.
CreateUser - Create user.
CreateUsersWithArrayInput - Creates list of users with given input array.
CreateUsersWithListInput - Creates list of users with given input array.
DeepCopy deepcopies a to b using json marshaling.
DeleteGig - Deletes a gig.
DeleteTransaction - Delete purchase transaction by ID.
DeleteUser - Delete user.
No description provided by the author
FindGigsByStatus - Finds Gigs by status.
No description provided by the author
FindGigsByStatus - Finds Gigs by status.
GetGigById - Find gig by ID.
GetTransactionById - Find purchase transaction by ID.
GetTransactions - Returns gig inventories by status.
GetUserByName - Get user by user name.
Index is the index handler.
No description provided by the author
LoginHandler for our login.
LoginUser - Logs user into the system.
LogoutHandler for our logout.
LogoutUser - Logs out current logged in user session.
NewRouter returns a new router.
NewRouter returns a new router.
OpenAPIjson - Get OpenAPI 3.0 JSON.
OpenAPIyaml - Get OpenAPI 3.0 YAML.
PlaceTransaction - Place an transaction for a gig.
AcceptTransaction - Accept a transaction (as a employer) that has been placed by a worker.
RemoveGig - Helper function to remove a gig from the slice.
RemoveTransaction - Helper function to remove a transaction from the slice.
RemoveUser - Helper function to remove a user from the slice.
UpdateGig - Update an existing gig.
UpdateGigWithForm - Updates a gig in the store with form data.
UpdateUser - Updated user.
UploadFile - uploads an image.
UserHandler for our logged-in user page.
# Structs
ApiResponse - A generic API response.
Category - A category struct not finalized yet).
Gig - A gig struct.
No description provided by the author
Role - A role struct to cater for different roles, e.g.
Route is the information for every URI.
Tag - A tag struct used to meta tag the gigs.
User - A user struct used to store the user information.
# Type aliases
Routes is the list of the generated Route.