admin

package
v2.19.7 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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