templates

package
v0.0.0-...-e163d20 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

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

func (DashboardTemplates) Home

home

Jump to

Keyboard shortcuts

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