admin

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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
	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) SubView

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

SubView ...

Jump to

Keyboard shortcuts

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