web

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CookieSID = "ftb_sid"
)

Variables

View Source
var RootDir = ""

RootDir optionally describes where the root directory with the "templates" / and "public" folders is. This is mainly used in tests where the context dir is different.

Functions

func Healthz

func Healthz(w http.ResponseWriter, r *http.Request)

Types

type Server

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

func NewServer

func NewServer(
	odoo *odoo.Client,
	secretKey string,
	middleware ...mux.MiddlewareFunc,
) *Server

func (Server) Login

func (s Server) Login() http.Handler

Login POST /login

func (Server) LoginForm

func (s Server) LoginForm() http.Handler

LoginForm GET /login

func (Server) Logout

func (s Server) Logout() http.Handler

Logout GET /logout

func (Server) OvertimeReport

func (s Server) OvertimeReport() http.Handler

OvertimeReport GET /report

func (Server) RequestReportForm

func (s Server) RequestReportForm() http.Handler

func (Server) ServeHTTP

func (s Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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