api

package
v0.0.0-...-b52e348 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

View Source
const (
	LOG      = "log"
	VNC      = "vnc"
	NOTFOUND = "Unsupported category"
)

Variables

View Source
var LogTracker logStreamTracker

Functions

func Auth

func Auth(t string) (auth.Token, error)

func NewNegHandler

func NewNegHandler() *negroni.Negroni

RunServer starts vertice httpd server.

func PP

func PP(b []byte) ([]byte, error)

func RegisterHandler

func RegisterHandler(path string, method string, h http.Handler)

RegisterHandler inserts a handler on a list of handlers

func Uid

func Uid(prefix string) string

Types

type Handler

type Handler func(http.ResponseWriter, *http.Request) error

func (Handler) ServeHTTP

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

type MegdHandler

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

type Token

type Token struct {
	Token     string
	UserEmail string
}

func (*Token) GetUserName

func (t *Token) GetUserName() string

func (*Token) GetValue

func (t *Token) GetValue() string

func (*Token) User

func (t *Token) User() (*auth.User, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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