realmadmin

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package realmadmin contains web controllers for changing realm settings.

Index

Constants

View Source
const (
	// QueryFromSearch is the query key for a starting time.
	QueryFromSearch = "from"

	// QueryToSearch is the query key for an ending time.
	QueryToSearch = "to"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, cacher cache.Cacher, config *config.ServerConfig, db *database.Database, limiter limiter.Store, h *render.Renderer) *Controller

func (*Controller) HandleDisableExpress added in v0.6.0

func (c *Controller) HandleDisableExpress() http.Handler

func (*Controller) HandleEnableExpress added in v0.6.0

func (c *Controller) HandleEnableExpress() http.Handler

func (*Controller) HandleEvents added in v0.11.0

func (c *Controller) HandleEvents() http.Handler

func (*Controller) HandleSettings added in v0.9.0

func (c *Controller) HandleSettings() http.Handler

func (*Controller) HandleShow added in v0.8.0

func (c *Controller) HandleShow(result ResultType) http.Handler

func (*Controller) HandleStats added in v0.14.0

func (c *Controller) HandleStats() http.Handler

HandleStats returns an http handler for sending JSON encoded per-user stats.

type ResultType added in v0.15.0

type ResultType int

ResultType specfies which type of renderer you want.

const (
	HTML ResultType = iota
	JSON
	CSV
)

Jump to

Keyboard shortcuts

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