Documentation ¶
Index ¶
- Constants
- type DashboardTemplates
- func (t DashboardTemplates) Access(w http.ResponseWriter, payload dto.AccessParams) error
- func (t DashboardTemplates) Config(w http.ResponseWriter, payload map[string]any) error
- func (t DashboardTemplates) CreateAccessKeyParams(w http.ResponseWriter, payload dto.CreateAccessKeyParams) error
- func (t DashboardTemplates) CreatedAccessKey(w http.ResponseWriter, payload dto.CreatedAccessKey) error
- func (t DashboardTemplates) DeletedAccessKey(w http.ResponseWriter) error
- func (t DashboardTemplates) ErrorSection(w http.ResponseWriter, errMsg string)
- func (t DashboardTemplates) Home(w http.ResponseWriter) error
Constants ¶
View Source
const ( HomeTemplate = "home.html" ConfigTemplate = "config.html" AccessTemplate = "access.html" ErrorTemplate = "error.html" CreateAccessKeyTemplate = "create-access-key.html" CreatedAccessKeyTemplate = "created-access-key.html" DeletedAccessKeyTemplate = "deleted-access-key.html" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashboardTemplates ¶
type DashboardTemplates struct {
// contains filtered or unexported fields
}
func New ¶
func New() *DashboardTemplates
func (DashboardTemplates) Access ¶
func (t DashboardTemplates) Access(w http.ResponseWriter, payload dto.AccessParams) error
access
func (DashboardTemplates) Config ¶
func (t DashboardTemplates) Config(w http.ResponseWriter, payload map[string]any) error
config
func (DashboardTemplates) CreateAccessKeyParams ¶
func (t DashboardTemplates) CreateAccessKeyParams(w http.ResponseWriter, payload dto.CreateAccessKeyParams) error
func (DashboardTemplates) CreatedAccessKey ¶
func (t DashboardTemplates) CreatedAccessKey(w http.ResponseWriter, payload dto.CreatedAccessKey) error
func (DashboardTemplates) DeletedAccessKey ¶
func (t DashboardTemplates) DeletedAccessKey(w http.ResponseWriter) error
func (DashboardTemplates) ErrorSection ¶
func (t DashboardTemplates) ErrorSection(w http.ResponseWriter, errMsg string)
error
Click to show internal directories.
Click to hide internal directories.