guestbook

package
v0.0.0-...-e9773f5 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Date    time.Time
	Name    string
	Comment string
}

Entry .

type Handler

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

Handler .

func New

func New() *Handler

New .

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Handler) SwitchBackend

func (h *Handler) SwitchBackend(backend string) error

SwitchBackend switches the database backend between mongodb and etcd

func (*Handler) SwitchHandler

func (h *Handler) SwitchHandler(w http.ResponseWriter, r *http.Request)

SwitchHandler handles the switch request

Jump to

Keyboard shortcuts

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