admin

package
v2.40.6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Panel

type Panel struct {
	html.PanelProvider
	html.ContentProvider
	// contains filtered or unexported fields
}

Panel represents the web interface panel of the accounts service administration.

func NewPanel

func NewPanel(conf *config.Configuration, log *zerolog.Logger) (*Panel, error)

NewPanel creates a new administration panel.

func (*Panel) Execute

func (panel *Panel) Execute(w http.ResponseWriter, r *http.Request, session *html.Session, accounts *data.Accounts) error

Execute generates the HTTP output of the htmlPanel and writes it to the response writer.

func (*Panel) GetActiveTemplate

func (panel *Panel) GetActiveTemplate(*html.Session, string) string

GetActiveTemplate returns the name of the active template.

func (*Panel) GetCaption

func (panel *Panel) GetCaption() string

GetCaption returns the caption which is displayed on the htmlPanel.

func (*Panel) GetContentBody

func (panel *Panel) GetContentBody() string

GetContentBody delivers the actual body content.

func (*Panel) GetContentJavaScript

func (panel *Panel) GetContentJavaScript() string

GetContentJavaScript delivers additional JavaScript code.

func (*Panel) GetContentStyleSheet

func (panel *Panel) GetContentStyleSheet() string

GetContentStyleSheet delivers additional stylesheet code.

func (*Panel) GetTitle

func (panel *Panel) GetTitle() string

GetTitle returns the title of the htmlPanel.

func (*Panel) PreExecute

PreExecute is called before the actual template is being executed.

Jump to

Keyboard shortcuts

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