Documentation ¶
Index ¶
- type AccountController
- func (controller *AccountController) CreateAccountHandler(w http.ResponseWriter, r *http.Request)
- func (controller *AccountController) DeleteAccountHandler(w http.ResponseWriter, r *http.Request)
- func (controller *AccountController) FetchAccountHandler(w http.ResponseWriter, r *http.Request)
- func (controller *AccountController) FetchAllAccountsByDomainIdHandler(w http.ResponseWriter, r *http.Request)
- func (controller *AccountController) RegisterRoutes(r *mux.Router) http.Handler
- func (controller *AccountController) UpdateAccountHandler(w http.ResponseWriter, r *http.Request)
- type ApiCheckResponse
- type ApiController
- type ApiSettingsResponse
- type ErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountController ¶
type AccountController struct {
// contains filtered or unexported fields
}
func NewAccountController ¶
func NewAccountController(repo repository.AccountRepository, coreHandler *core.CoreHandler) *AccountController
func (*AccountController) CreateAccountHandler ¶
func (controller *AccountController) CreateAccountHandler(w http.ResponseWriter, r *http.Request)
func (*AccountController) DeleteAccountHandler ¶
func (controller *AccountController) DeleteAccountHandler(w http.ResponseWriter, r *http.Request)
func (*AccountController) FetchAccountHandler ¶
func (controller *AccountController) FetchAccountHandler(w http.ResponseWriter, r *http.Request)
func (*AccountController) FetchAllAccountsByDomainIdHandler ¶
func (controller *AccountController) FetchAllAccountsByDomainIdHandler(w http.ResponseWriter, r *http.Request)
func (*AccountController) RegisterRoutes ¶
func (controller *AccountController) RegisterRoutes(r *mux.Router) http.Handler
func (*AccountController) UpdateAccountHandler ¶
func (controller *AccountController) UpdateAccountHandler(w http.ResponseWriter, r *http.Request)
type ApiCheckResponse ¶
type ApiCheckResponse struct { Status string `json:"message"` Version string `json:"version"` ReleaseTime string `json:"release_time"` ApiSettings ApiSettingsResponse `json:"api_settings"` }
type ApiController ¶
type ApiController struct {
// contains filtered or unexported fields
}
func NewApiController ¶
func NewApiController(coreHandler *core.CoreHandler) *ApiController
func (*ApiController) CheckApiHandler ¶
func (controller *ApiController) CheckApiHandler(w http.ResponseWriter, r *http.Request)
func (*ApiController) RegisterRoutes ¶
func (controller *ApiController) RegisterRoutes(r *mux.Router) http.Handler
type ApiSettingsResponse ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.