http

package
v0.0.0-...-c9ce307 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SessionCtxKey = "boardsite-session"
	SecretCtxKey  = "boardsite-session-secret"
	UserCtxKey    = "boardsite-user"
)

Variables

This section is empty.

Functions

func AllowUser

func AllowUser(c echo.Context) bool

Types

type Handler

type Handler interface {
	PostCreateSession(c echo.Context) error
	PostCreateSessionConfig(c echo.Context) error
	PutSessionConfig(c echo.Context) error
	GetSessionConfig(c echo.Context) error
	PostUsers(c echo.Context) error
	PutKickUser(c echo.Context) error
	PutUser(c echo.Context) error
	GetSocket(c echo.Context) error
	GetPageRank(c echo.Context) error
	PostPages(c echo.Context) error
	PutPages(c echo.Context) error
	GetPage(c echo.Context) error
	GetPageSync(c echo.Context) error
	PostPageSync(c echo.Context) error
	PostAttachment(c echo.Context) error
	GetAttachment(c echo.Context) error
}

func NewHandler

func NewHandler(cfg config.Session, dispatcher session.Dispatcher) Handler

Jump to

Keyboard shortcuts

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