routes

package
v0.0.0-...-9ab988e Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func About

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

About exposes server information to clients

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

AddLink adds a link to a users signature chain

func CORS

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

CORS - Cross Origin Resource Requests, enables browsers to use the APIs exposed by Sync: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS

func Handler

func Handler(_db *sql.DB) http.HandlerFunc

Handler for all the application routes

Types

type InviteHandler

type InviteHandler struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

InviteHandler rendezvous client pairs at an invite URL

func NewInviteHandler

func NewInviteHandler() *InviteHandler

NewInviteHandler returns a new instance of InviteHandler

func (*InviteHandler) ServeHTTP

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

Jump to

Keyboard shortcuts

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