Documentation ¶
Index ¶
Constants ¶
const GETADDRESSKEY = "address"
GETADDRESSKEY is the key within the get params for the server address
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
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