handlers

package
v0.0.0-...-11f966d Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GET  = "GET"
	POST = "POST"
)
View Source
const (
	NDEX_URL   = ".ndexbio.org/rest/network/"
	DEF_SERVER = "public"

	// NDEx params
	CXF       = "asCX"
	SERVE_KEY = "server"
)

Variables

This section is empty.

Functions

func Cx2CyjsHandler

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

func Ndex2CyjsHandler

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

func StartServer

func StartServer(portNumber int) (err error)

func StatusHandler

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

Types

type Error

type Error struct {
	Message    string `json:"message"`
	StatusCode int    `json:"code"`
	Status     string `json:"status"`
}

type Message

type Message struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Error   string `json:"error,omitempty"`
}

type Status

type Status struct {
	Name        string `json:"name"`
	Version     string `json:"version"`
	Build       string `json:"build"`
	Description string `json:"description"`
	Documents   string `json:"documents"`
}

Jump to

Keyboard shortcuts

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