Documentation ¶
Index ¶
- Constants
- Variables
- type AdminController
- type AuthController
- func (a *AuthController) Authorize(c *gin.Context)
- func (a *AuthController) AuthorizeCallback(c *gin.Context)
- func (a *AuthController) EnsureAdmin(c *gin.Context)
- func (a *AuthController) EnsureJWT(c *gin.Context)
- func (a *AuthController) EnsureUser(c *gin.Context)
- func (a *AuthController) NeedSetup(c *gin.Context)
- func (a *AuthController) Setup(c *gin.Context)
- func (a *AuthController) SetupCallback(c *gin.Context)
- type CountsController
- type DemoController
- type LogsController
- type MarketplaceController
- type MeController
- func (me *MeController) AddDashboard(c *gin.Context)
- func (me *MeController) AddMember(c *gin.Context)
- func (me *MeController) DashRequired(name string) func(c *gin.Context)
- func (me *MeController) Dashboards(c *gin.Context)
- func (me *MeController) DashboardsOwn(c *gin.Context)
- func (me *MeController) DashboardsShared(c *gin.Context)
- func (me *MeController) DeleteDashboard(c *gin.Context)
- func (me *MeController) EditDashboard(c *gin.Context)
- func (me *MeController) Me(c *gin.Context)
- func (*MeController) MyDash(c *gin.Context)
- func (me *MeController) MyDashOrShared(c *gin.Context)
- func (me *MeController) RemoveMember(c *gin.Context)
Constants ¶
View Source
const DEFAULT_EXPIRE_TIME = 8 * time.Hour
Variables ¶
View Source
var ErrUnsuccessfulRecaptcha = errors.New("unsuccessful recaptcha verify request")
Functions ¶
This section is empty.
Types ¶
type AdminController ¶
type AdminController struct {
// contains filtered or unexported fields
}
func NewAdminController ¶
func NewAdminController(repos *repo.Repos) *AdminController
func (*AdminController) DashboardById ¶
func (adm *AdminController) DashboardById(c *gin.Context)
func (*AdminController) Dashboards ¶
func (adm *AdminController) Dashboards(c *gin.Context)
func (*AdminController) UserById ¶
func (adm *AdminController) UserById(c *gin.Context)
func (*AdminController) Users ¶
func (adm *AdminController) Users(c *gin.Context)
type AuthController ¶
type AuthController struct {
// contains filtered or unexported fields
}
func NewAuthController ¶
func NewAuthController(jwtService *jwtservice.JwtService, repos *repo.Repos) *AuthController
func (*AuthController) Authorize ¶
func (a *AuthController) Authorize(c *gin.Context)
func (*AuthController) AuthorizeCallback ¶
func (a *AuthController) AuthorizeCallback(c *gin.Context)
func (*AuthController) EnsureAdmin ¶
func (a *AuthController) EnsureAdmin(c *gin.Context)
func (*AuthController) EnsureJWT ¶
func (a *AuthController) EnsureJWT(c *gin.Context)
func (*AuthController) EnsureUser ¶
func (a *AuthController) EnsureUser(c *gin.Context)
func (*AuthController) NeedSetup ¶
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 {
// contains filtered or unexported fields
}
func NewCountsController ¶ added in v1.20.18
func NewCountsController(repos *repo.Repos) *CountsController
func (*CountsController) Find ¶
func (c *CountsController) Find(ctx *gin.Context)
func (*CountsController) FindSnippet ¶
func (c *CountsController) FindSnippet(ctx *gin.Context)
func (*CountsController) StatsByDashboard ¶
func (c *CountsController) StatsByDashboard(ctx *gin.Context)
func (*CountsController) StatsByLogname ¶
func (c *CountsController) StatsByLogname(ctx *gin.Context)
type DemoController ¶
type DemoController struct {
// contains filtered or unexported fields
}
func NewDemoController ¶
func NewDemoController(jwtService *jwtservice.JwtService, repos *repo.Repos) *DemoController
func (*DemoController) FreeToken ¶
func (demo *DemoController) FreeToken(c *gin.Context)
type LogsController ¶
type LogsController struct {
// contains filtered or unexported fields
}
func NewLogsController ¶
func NewLogsController(sockMap *sockmap.SockMap, repos *repo.Repos) *LogsController
func (*LogsController) Find ¶
func (c *LogsController) Find(ctx *gin.Context)
func (*LogsController) StatsByDashboard ¶
func (c *LogsController) StatsByDashboard(ctx *gin.Context)
func (*LogsController) StatsByLogname ¶
func (c *LogsController) StatsByLogname(ctx *gin.Context)
type MarketplaceController ¶
type MarketplaceController struct{}
func (*MarketplaceController) Support ¶
func (*MarketplaceController) Support(c *gin.Context)
func (*MarketplaceController) Webhook ¶
func (*MarketplaceController) Webhook(ctx *gin.Context)
type MeController ¶
type MeController struct {
// contains filtered or unexported fields
}
func NewMeController ¶
func NewMeController(repos *repo.Repos) *MeController
func (*MeController) AddDashboard ¶
func (me *MeController) AddDashboard(c *gin.Context)
func (*MeController) AddMember ¶
func (me *MeController) AddMember(c *gin.Context)
func (*MeController) DashRequired ¶
func (me *MeController) DashRequired(name string) func(c *gin.Context)
func (*MeController) Dashboards ¶
func (me *MeController) Dashboards(c *gin.Context)
func (*MeController) DashboardsOwn ¶
func (me *MeController) DashboardsOwn(c *gin.Context)
func (*MeController) DashboardsShared ¶
func (me *MeController) DashboardsShared(c *gin.Context)
func (*MeController) DeleteDashboard ¶
func (me *MeController) DeleteDashboard(c *gin.Context)
func (*MeController) EditDashboard ¶
func (me *MeController) EditDashboard(c *gin.Context)
func (*MeController) Me ¶
func (me *MeController) Me(c *gin.Context)
func (*MeController) MyDash ¶
func (*MeController) MyDash(c *gin.Context)
func (*MeController) MyDashOrShared ¶
func (me *MeController) MyDashOrShared(c *gin.Context)
func (*MeController) RemoveMember ¶
func (me *MeController) RemoveMember(c *gin.Context)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.