v1

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package v1 contains all handlers used to service the version 1.X.X API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffHandler

type DiffHandler struct {
	LogProvider domain.LoggerProvider
	Storage     domain.Storage
	Queuer      domain.Queuer
	Marker      domain.Marker
}

DiffHandler handles incoming HTTP requests for creating and retrieving new network graph diffs

func (*DiffHandler) Get

func (h *DiffHandler) Get(w http.ResponseWriter, r *http.Request)

Get retrieves a diff

func (*DiffHandler) Post

func (h *DiffHandler) Post(w http.ResponseWriter, r *http.Request)

Post creates a new diff

type Produce

type Produce struct {
	LogProvider domain.LoggerProvider
	Marker      domain.Marker
	Differ      domain.Differ
	Storage     domain.Storage
}

Produce is a handler which performs the diff job, and stores the diff

func (*Produce) ServeHTTP

func (h *Produce) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP handles incoming HTTP requests, and creates a diff of the VPC network graphs given two time windows

Jump to

Keyboard shortcuts

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