admin

package
v0.1.53 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: Apache-2.0 Imports: 7 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

func Login

func Login(name string) ([]byte, error)

Login ...

func Manage

func Manage(e editor.Editable, typeName string) ([]byte, error)

Manage ...

func SetupView

func SetupView(name string) ([]byte, error)

SetupView ...

Types

type View

type View struct {
	Types      map[string]content.Creator
	AdminTypes map[string]content.Creator
	AdminEmail string
	IsAdmin    bool
	Subview    template.HTML
}

func NewView

func NewView(name string, ts map[string]content.Creator) *View

func (*View) Contents

func (v *View) Contents(t string, status string) string

func (*View) Dashboard

func (v *View) Dashboard() ([]byte, error)

Dashboard returns the AdminView view with analytics dashboard

func (*View) Error400

func (v *View) Error400() ([]byte, error)

Error400 creates a subview for a 400 error page

func (*View) Error404

func (v *View) Error404() ([]byte, error)

Error404 creates a subview for a 404 error page

func (*View) Error405

func (v *View) Error405() ([]byte, error)

Error405 creates a subview for a 405 error page

func (*View) Error500

func (v *View) Error500() ([]byte, error)

Error500 creates a subview for a 500 error page

func (*View) RefreshAdmin

func (v *View) RefreshAdmin(email string)

func (*View) SubView

func (v *View) SubView(view []byte) (_ []byte, err error)

SubView ...

func (*View) UserManagement

func (v *View) UserManagement() string

func (*View) UserManagementView

func (v *View) UserManagementView(data map[string]interface{}) (_ []byte, err error)

Jump to

Keyboard shortcuts

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