query

package
v0.0.0-...-8c342a6 Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marshaler

type Marshaler func(interface{}) (string, error)

Marshaler takes an object in and writes into out it's human readable representation.

type Server

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

Server is a provides HTTP routes for querying the group table.

func NewServer

func NewServer(basePath string, router *mux.Router, marshal Marshaler) *Server

NewServer creates a server with the given options.

func (*Server) AttachSource

func (s *Server) AttachSource(name string, getter goka.Getter) error

AttachSource attaches a new source to the query server.

Jump to

Keyboard shortcuts

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