Documentation ¶
Index ¶
- type DashboardEndpoints
- func (e DashboardEndpoints) AccessHandler(w http.ResponseWriter, r *http.Request)
- func (e DashboardEndpoints) ConfigHandler(w http.ResponseWriter, r *http.Request)
- func (e DashboardEndpoints) CreateAccessKeyHandler(w http.ResponseWriter, r *http.Request)
- func (e DashboardEndpoints) CreateAccessKeyParamsHandler(w http.ResponseWriter, r *http.Request)
- func (e DashboardEndpoints) DeleteAccessKeyHandler(w http.ResponseWriter, r *http.Request)
- func (e DashboardEndpoints) HomeHandler(w http.ResponseWriter, r *http.Request)
- type DashboardService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashboardEndpoints ¶
type DashboardEndpoints struct {
// contains filtered or unexported fields
}
func New ¶
func New(service DashboardService, templates *templates.DashboardTemplates) *DashboardEndpoints
func (DashboardEndpoints) AccessHandler ¶
func (e DashboardEndpoints) AccessHandler(w http.ResponseWriter, r *http.Request)
func (DashboardEndpoints) ConfigHandler ¶
func (e DashboardEndpoints) ConfigHandler(w http.ResponseWriter, r *http.Request)
func (DashboardEndpoints) CreateAccessKeyHandler ¶
func (e DashboardEndpoints) CreateAccessKeyHandler(w http.ResponseWriter, r *http.Request)
func (DashboardEndpoints) CreateAccessKeyParamsHandler ¶
func (e DashboardEndpoints) CreateAccessKeyParamsHandler(w http.ResponseWriter, r *http.Request)
func (DashboardEndpoints) DeleteAccessKeyHandler ¶
func (e DashboardEndpoints) DeleteAccessKeyHandler(w http.ResponseWriter, r *http.Request)
func (DashboardEndpoints) HomeHandler ¶
func (e DashboardEndpoints) HomeHandler(w http.ResponseWriter, r *http.Request)
type DashboardService ¶
type DashboardService interface { DashboardAccessKeys(context.Context, int, int) (dto.AccessParams, error) CreateAccessKeyParams(context.Context) dto.CreateAccessKeyParams CreateAccessKey(context.Context, accessDto.AccessKeyPermissionsDto) (dto.CreatedAccessKey, error) DeleteAccessKey(context.Context, string) error }
Click to show internal directories.
Click to hide internal directories.