server

package
v0.0.0-...-6744b59 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Dev  = 0
	Prod = 1
)
View Source
const (
	InvalidUri = "0"
)

Variables

View Source
var GoogleLoginUri = []byte("/go/s")

Functions

func Start

func Start(port string, env Environment, dBase *sql.DB)

*

  • Start a server on a given port

Types

type Environment

type Environment = int

type MyHandler

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

func (*MyHandler) HandleFastHTTP

func (h *MyHandler) HandleFastHTTP(ctx *fasthttp.RequestCtx)

request handler in net/http style, i.e. method bound to MyHandler struct

Jump to

Keyboard shortcuts

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