api

package
v0.0.0-...-894ab8b Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2014 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package api contains the definition of all web services to extract data from the Polyglottis Platform.

Package api contains the definition of all web services to extract data from the Polyglottis Platform.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(r *http.Request, w http.ResponseWriter, err error)

Types

type Server

type Server struct {
	*backend.Engine
}

func NewServer

func NewServer(engine *backend.Engine) *Server

func (*Server) ExtractById

func (s *Server) ExtractById(r *http.Request) ([]byte, error)

func (*Server) ExtractLanguages

func (s *Server) ExtractLanguages(r *http.Request) ([]byte, error)

func (*Server) ExtractList

func (s *Server) ExtractList(r *http.Request) ([]byte, error)

func (*Server) ExtractSearch

func (s *Server) ExtractSearch(r *http.Request) ([]byte, error)

func (*Server) RegisterServices

func (s *Server) RegisterServices(r *mux.Router)

func (*Server) Root

func (s *Server) Root(r *http.Request) ([]byte, error)

Jump to

Keyboard shortcuts

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