Documentation ¶
Index ¶
- type API
- func (a *API) AttachModuleDelete(path string, f func(http.ResponseWriter, *http.Request))
- func (a *API) AttachModuleGet(path string, f func(http.ResponseWriter, *http.Request))
- func (a *API) AttachModulePost(path string, f func(http.ResponseWriter, *http.Request))
- func (a *API) AttachModulePut(path string, f func(http.ResponseWriter, *http.Request))
- func (a *API) Init() error
- func (a *API) Run(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API represents a Rest API instance of a ALoLStats instance
func NewAPICustom ¶
NewAPICustom creates a new Rest API instance with a custom router
func (*API) AttachModuleDelete ¶
AttachModuleDelete registers a new DELETE handler for the API
func (*API) AttachModuleGet ¶
AttachModuleGet registers a new GET handler for the API
func (*API) AttachModulePost ¶
AttachModulePost registers a new POST handler for the API
func (*API) AttachModulePut ¶
AttachModulePut registers a new PUT handler for the API
Click to show internal directories.
Click to hide internal directories.