controllers

package
v1.0.75 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DEFAULT_EXPIRE_TIME = 8 * time.Hour

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminController

type AdminController struct{}

func (*AdminController) DashboardById

func (_ *AdminController) DashboardById(c *gin.Context)

func (*AdminController) Dashboards

func (_ *AdminController) Dashboards(c *gin.Context)

func (*AdminController) UserById

func (_ *AdminController) UserById(c *gin.Context)

func (*AdminController) Users

func (_ *AdminController) Users(c *gin.Context)

type AuthController

type AuthController struct {
	*oauth2.Config
	*types.States
}

func (*AuthController) Authorize

func (a *AuthController) Authorize(c *gin.Context)

func (*AuthController) AuthorizeCallback added in v1.0.9

func (a *AuthController) AuthorizeCallback(c *gin.Context)

func (*AuthController) EnsureAdmin

func (_ *AuthController) EnsureAdmin(c *gin.Context)

func (*AuthController) EnsureJWT

func (_ *AuthController) EnsureJWT(c *gin.Context)

func (*AuthController) EnsureUser

func (_ *AuthController) EnsureUser(c *gin.Context)

func (*AuthController) Init

func (a *AuthController) Init()

func (*AuthController) NeedSetup added in v1.0.9

func (a *AuthController) NeedSetup(c *gin.Context)

func (*AuthController) Setup

func (a *AuthController) Setup(c *gin.Context)

func (*AuthController) SetupCallback

func (a *AuthController) SetupCallback(c *gin.Context)

type CountsController

type CountsController struct{}

func (*CountsController) Find

func (_ *CountsController) Find(c *gin.Context)

func (*CountsController) FindSnippet

func (_ *CountsController) FindSnippet(c *gin.Context)

func (*CountsController) StatsByDashboard added in v1.0.9

func (_ *CountsController) StatsByDashboard(c *gin.Context)

func (*CountsController) StatsByLogname added in v1.0.9

func (_ *CountsController) StatsByLogname(c *gin.Context)

type LogsController

type LogsController struct{}

func (*LogsController) Find

func (_ *LogsController) Find(c *gin.Context)

func (*LogsController) StatsByDashboard added in v1.0.9

func (_ *LogsController) StatsByDashboard(c *gin.Context)

func (*LogsController) StatsByLogname added in v1.0.9

func (_ *LogsController) StatsByLogname(c *gin.Context)

type MeController

type MeController struct{}

func (*MeController) AddDashboard

func (_ *MeController) AddDashboard(c *gin.Context)

func (*MeController) AddMember

func (_ *MeController) AddMember(c *gin.Context)

func (*MeController) DashRequired

func (_ *MeController) DashRequired(name string) func(c *gin.Context)

func (*MeController) Dashboards

func (_ *MeController) Dashboards(c *gin.Context)

func (*MeController) DashboardsOwn

func (_ *MeController) DashboardsOwn(c *gin.Context)

func (*MeController) DashboardsShared

func (_ *MeController) DashboardsShared(c *gin.Context)

func (*MeController) DeleteDashboard

func (_ *MeController) DeleteDashboard(c *gin.Context)

func (*MeController) EditDashboard

func (_ *MeController) EditDashboard(c *gin.Context)

func (*MeController) Me

func (_ *MeController) Me(c *gin.Context)

func (*MeController) MyDash

func (_ *MeController) MyDash(c *gin.Context)

func (*MeController) MyDashOrShared

func (_ *MeController) MyDashOrShared(c *gin.Context)

func (*MeController) RemoveMember

func (_ *MeController) RemoveMember(c *gin.Context)

type WsController

type WsController struct{}

func (WsController) Index

func (wc WsController) Index(c *gin.Context)

func (WsController) Reader

func (wc WsController) Reader(w *websocket.Conn)

Jump to

Keyboard shortcuts

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