api

package
v0.31.10 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package api is an example of a REST type api and associated handlers.

Index

Constants

View Source
const HelloPath = "/hello"

Variables

This section is empty.

Functions

func HelloHandler

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

HelloHandler sets up the initial communication with the client, establishing a session. It responds with the current unix time so that the client knows the current world time from the server, rather than relying on the client's current time setting, which might be wrong. The default session handler will require that the client supports cookies.

Types

This section is empty.

Jump to

Keyboard shortcuts

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