rest

package
v0.0.0-...-7f17660 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2015 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Overview

AgentController's HTTP communication layer between Agent instances and itself

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvenRequest

type EvenRequest struct {
	Name string `json:"name"`
	Data string `json:"data"`
}

EvenRequest event request

type RestInterface

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

func NewRestInterface

func NewRestInterface(pool *redis.Pool, pollDataStreamManager *agentpoll.PollDataStreamManager,
	settings *settings.Settings) *RestInterface

func (*RestInterface) Router

func (rest *RestInterface) Router() *gin.Engine

type StatsRequest

type StatsRequest struct {
	Timestamp int64           `json:"timestamp"`
	Series    [][]interface{} `json:"series"`
}

StatsRequest stats request

Jump to

Keyboard shortcuts

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