api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WebhookEndpoint a
	WebhookEndpoint = "/alert_action_wh"
)

Variables

This section is empty.

Functions

func NewHTTPHandler

func NewHTTPHandler(sp splunk.Splunk, config *config.Config) http.Handler

NewHTTPHandler initializes the router.

Types

type Error

type Error struct {
	Message    string `json:"message"`
	StatusCode int    `json:"status_code"`
}

Error - returned error message for api errors

Jump to

Keyboard shortcuts

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