controller

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 ApiSettingsResponse struct {
	SwitcherURL       string `json:"switcher_url"`
	SwitcherSecret    bool   `json:"switcher_secret"`
	GitTokenSecret    bool   `json:"git_token_secret"`
	CoreHandlerStatus int    `json:"core_handler_status"`
	NumGoroutines     int    `json:"num_goroutines"`
}

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL