Documentation ¶
Overview ¶
Package admin provides a small admin UI. Requires connection to the database and permissions to access whatever else you might need to access.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineDateAndTime ¶
CombineDateAndTime takes values from date and time HTML inputs and combines them to a single date time.
Types ¶
type Config ¶
type Config struct { Database database.Config KeyManager keys.Config SecretManager secrets.Config Storage storage.Config Port string `env:"PORT, default=8080"` TemplatePath string `env:"TEMPLATE_DIR, default=./tools/admin-console/templates"` TopFile string `env:"TOP_FILE, default=top"` BotFile string `env:"BOTTOM_FILE, default=bottom"` }
func (*Config) BlobstoreConfig ¶
func (*Config) DatabaseConfig ¶
func (*Config) KeyManagerConfig ¶
func (*Config) RenderTemplate ¶
func (c *Config) RenderTemplate(w http.ResponseWriter, tmpl string, p TemplateMap) error
func (*Config) SecretManagerConfig ¶
type Controller ¶
Controller is the interfactor for controllers that can be pluggied into Gin for the admin console portion of this project.
type TemplateMap ¶
type TemplateMap map[string]interface{}
func (TemplateMap) AddErrors ¶
func (t TemplateMap) AddErrors(errors ...string)
func (TemplateMap) AddJumbotron ¶
func (t TemplateMap) AddJumbotron(headline, subheader string)
func (TemplateMap) AddSubNav ¶
func (t TemplateMap) AddSubNav(name string)
func (TemplateMap) AddSuccess ¶
func (t TemplateMap) AddSuccess(success ...string)
func (TemplateMap) AddTitle ¶
func (t TemplateMap) AddTitle(title string)
Directories ¶
Path | Synopsis |
---|---|
Package authorizedapps is part of the admin system.
|
Package authorizedapps is part of the admin system. |
Package exports is part of the admin system.
|
Package exports is part of the admin system. |
Package healthauthority is part of the admin system.
|
Package healthauthority is part of the admin system. |
Package index contains admin console indexHandler for the main landing page.
|
Package index contains admin console indexHandler for the main landing page. |
Package siginfo is part of the admin system.
|
Package siginfo is part of the admin system. |
Click to show internal directories.
Click to hide internal directories.