Documentation ¶
Index ¶
- func AccountRoutes(r *gin.RouterGroup)
- func CategoryRoutes(r *gin.RouterGroup)
- func CreateAccount(c *gin.Context)
- func CreateCategory(c *gin.Context)
- func CreateEntry(c *gin.Context)
- func CreateEntryTag(c *gin.Context)
- func CreateTag(c *gin.Context)
- func DeleteAccount(c *gin.Context)
- func DeleteCategory(c *gin.Context)
- func DeleteEntry(c *gin.Context)
- func DeleteEntryTag(c *gin.Context)
- func DeleteTag(c *gin.Context)
- func EntryRoutes(r *gin.RouterGroup)
- func EntryTagRoutes(r *gin.RouterGroup)
- func GetAccount(c *gin.Context)
- func GetAccounts(c *gin.Context)
- func GetCategories(c *gin.Context)
- func GetCategory(c *gin.Context)
- func GetEntries(c *gin.Context)
- func GetEntry(c *gin.Context)
- func GetEntryTag(c *gin.Context)
- func GetEntryTags(c *gin.Context)
- func GetTag(c *gin.Context)
- func GetTags(c *gin.Context)
- func Routes(r *gin.RouterGroup)
- func TagRoutes(r *gin.RouterGroup)
- func UpdateAccount(c *gin.Context)
- func UpdateCategory(c *gin.Context)
- func UpdateEntry(c *gin.Context)
- func UpdateTag(c *gin.Context)
- type PaginatedMessage
- type QueryData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountRoutes ¶
func AccountRoutes(r *gin.RouterGroup)
AccountRoutes add account related urls inside a gin.router/engine context
func CategoryRoutes ¶
func CategoryRoutes(r *gin.RouterGroup)
CategoryRoutes add category related urls inside a gin.router/engine context
func CreateAccount ¶
CreateAccount can be called to create a new instance of Account on database, using props provided via http request
func CreateCategory ¶
CreateCategory can be called to create a new instance of Category on database, using props provided via http request
func CreateEntry ¶
CreateEntry can be called to create a new instance of Entry on database, using props provided via http request
func CreateEntryTag ¶
CreateEntryTag can be called to create a new instance of EntryTag on database, using props provided via http request
func CreateTag ¶
CreateTag can be called to create a new instance of Tag on database, using props provided via http request
func DeleteAccount ¶
DeleteAccount can be used to logical delete a row account from the database.
func DeleteCategory ¶
DeleteCategory can be used to logical delete a row category from the database.
func DeleteEntry ¶
DeleteEntry can be used to logical delete a row entry from the database.
func DeleteEntryTag ¶
DeleteEntryTag can be used to logical delete a row entryTag from the database.
func EntryRoutes ¶
func EntryRoutes(r *gin.RouterGroup)
EntryRoutes add entry related urls inside a gin.router/engine context
func EntryTagRoutes ¶
func EntryTagRoutes(r *gin.RouterGroup)
EntryTagRoutes add entryTag related urls inside a gin.router/engine context
func GetAccount ¶
GetAccount can be called to get a specific account from the database. The uuid used to query is part of the url
func GetCategory ¶
GetCategory can be called to get a specific category from the database. The uuid used to query is part of the url
func GetEntry ¶
GetEntry can be called to get a specific entry from the database. The uuid used to query is part of the url
func GetEntryTag ¶
GetEntryTag can be called to get a specific entryTag from the database. The uuid used to query is part of the url
func GetTag ¶
GetTag can be called to get a specific tag from the database. The uuid used to query is part of the url
func Routes ¶
func Routes(r *gin.RouterGroup)
Routes register api related services into a provided gin.RouterGroup
func TagRoutes ¶
func TagRoutes(r *gin.RouterGroup)
TagRoutes add tag related urls inside a gin.router/engine context
func UpdateAccount ¶
UpdateAccount can be called to update a specific account. The uuid used to query is part of the url
func UpdateCategory ¶
UpdateCategory can be called to update a specific category. The uuid used to query is part of the url
func UpdateEntry ¶
UpdateEntry can be called to update a specific entry. The uuid used to query is part of the url
Types ¶
type PaginatedMessage ¶
type PaginatedMessage struct { Total int `json:"total"` Page int `json:"page"` Pages int `json:"pages"` //Next string `json:"next"` //Previous string `json:"previous"` Limit int `json:"limit"` Count int `json:"count"` Data interface{} `json:"data"` }
PaginatedMessage is a structure which contains standard attributes to be used on paginated services
type QueryData ¶
type QueryData struct { Page int Pages int Total int Limit int Sort string Filters map[string]interface{} }
QueryData is structure which contains standard atributes to parse http parameters for API filter, search and pagination
func ExtractFilters ¶
ExtractFilters can be used to parse query parameters and return a QueryData object, useful to query, filter and paginate requests