web

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2022 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxStatusIDKey is for specifying the maximum ID of the status to retrieve.
	MaxStatusIDKey = "max_id"
)

Variables

This section is empty.

Functions

func New

func New(processor processing.Processor) api.ClientModule

New returns a new api.ClientModule for web pages.

Types

type Module

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

Module implements the api.ClientModule interface for web pages.

func (*Module) AdminPanelHandler added in v0.3.5

func (m *Module) AdminPanelHandler(c *gin.Context)

TODO: abstract the {admin, user}panel handlers in some way

func (*Module) Route

func (m *Module) Route(s router.Router) error

Route satisfies the RESTAPIModule interface

func (*Module) UserPanelHandler added in v0.3.5

func (m *Module) UserPanelHandler(c *gin.Context)

Jump to

Keyboard shortcuts

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