Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StandardAPIResponse ¶
StandardAPIResponse is the default way to respond to API requests
func StandardJSONResponse ¶
StandardJSONResponse is the default way to respond to API requests
Types ¶
type APIService ¶
type APIService struct {
// contains filtered or unexported fields
}
APIService abstracts an API endpoint
func (*APIService) AddDefaultEndpoints ¶
func (api *APIService) AddDefaultEndpoints()
AddDefaultEndpoints adds a couple of simple handlers to the router
func (*APIService) Router ¶
func (api *APIService) Router() *gin.Engine
Router gives access to the router instance
func (*APIService) ServeStaticAssets ¶
func (api *APIService) ServeStaticAssets(path, dir string)
ServeStaticAssets adds handlers to serve static assets
Click to show internal directories.
Click to hide internal directories.