Incoming

package
v0.0.0-...-a93fc24 Latest Latest
Warning

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

Go to latest
Published: May 24, 2017 License: GPL-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const GETADDRESSKEY = "address"

GETADDRESSKEY is the key within the get params for the server address

View Source
const GETEVENTKEY = "event"

GETEVENTKEY is the key within the get params for the event

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPInterface

type HTTPInterface struct {
	HTTPListenTo string
	// contains filtered or unexported fields
}

HTTPInterface represents a incoming HTTP interface

func NewHTTPInterface

func NewHTTPInterface(listenTo string) *HTTPInterface

NewHTTPInterface creates a new HTTPInterface

func (HTTPInterface) IsRunning

func (httpI HTTPInterface) IsRunning() bool

IsRunning returns true if the daemon is running

func (HTTPInterface) PublishHandler

func (httpI HTTPInterface) PublishHandler(path string, handler auth.AuthenticatedHandlerFunc)

PublishHandler add a handler to the given path, basic auth will be used

func (*HTTPInterface) Start

func (httpI *HTTPInterface) Start()

Start starts listening for requests

func (HTTPInterface) Stop

func (httpI HTTPInterface) Stop()

Stop closes the port

type LogServerHTTPHandler

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

LogServerHTTPHandler is a HTTP handler which displays LogMessages

func (LogServerHTTPHandler) LogView

func (handler LogServerHTTPHandler) LogView(w http.ResponseWriter, r *auth.AuthenticatedRequest)

LogView displays the basic logs

func (LogServerHTTPHandler) ResendEvent

func (handler LogServerHTTPHandler) ResendEvent(w http.ResponseWriter, r *auth.AuthenticatedRequest)

ResendEvent sends the selected event to a Rulesystem

type LogServerHTTPInterface

type LogServerHTTPInterface struct {
	*HTTPInterface
}

LogServerHTTPInterface is HTTP interface which offers log access

func NewLogServerHTTPInterface

func NewLogServerHTTPInterface(influxClient client.Client) *LogServerHTTPInterface

NewLogServerHTTPInterface creates a new LogServerHTTPInterface

Jump to

Keyboard shortcuts

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