server

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(cfg *config.Config, crawlers melkor.Crawlers) *mux.Router

NewRouter is used to create a new HTTP router

Types

type Handler

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

Handler holds the server context

func NewHandler

func NewHandler(cfg *config.Config, crawlers melkor.Crawlers) *Handler

NewHandler createss a new HTTP handler

func (*Handler) GetSingleAWSResource

func (h *Handler) GetSingleAWSResource() http.HandlerFunc

GetSingleAWSResource handles fetching a single item

func (*Handler) ListAWSResources

func (h *Handler) ListAWSResources() http.HandlerFunc

ListAWSResources returns a list of the requested resources, or a 404 if none can be found in storage

func (*Handler) ServiceMetadata

func (h *Handler) ServiceMetadata() http.HandlerFunc

ServiceMetadata displays hopefully useful information about the service

Jump to

Keyboard shortcuts

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