controllers

package
v0.0.0-...-9ba5f82 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminDatabaseHandler

func AdminDatabaseHandler(svcs *services.Services) http.HandlerFunc

func EventsHandler

func EventsHandler(svcs *services.Services) http.HandlerFunc

func HealthHandler

func HealthHandler(svcs *services.Services, fullCheck bool) http.HandlerFunc

func NotFoundHandler

func NotFoundHandler(w http.ResponseWriter, r *http.Request)

func StatusHandler

func StatusHandler(svcs *services.Services, baseLogger *logrus.Entry) http.HandlerFunc

func StreamHandler

func StreamHandler(svcs *services.Services) http.HandlerFunc

Types

type GetEventsRequest

type GetEventsRequest struct{}

type GetEventsResponse

type GetEventsResponse struct {
	Events []*event.Event `json:"events"`
}

type GetHealthResponse

type GetHealthResponse struct {
	health.Healthcheck
}

type GetStatusResponse

type GetStatusResponse struct {
	// The status model
	// in: body
	Status *status.Response `json:"status"`
}

type PostEventsRequest

type PostEventsRequest struct {
	Scope     string `json:"scope"`
	Object    string `json:"object"`
	Meta      any    `json:"meta"`
	EventType string `json:"eventType"`
	Payload   any    `json:"payload"`
	Debug     any    `json:"debug"`
}

type PostEventsResponse

type PostEventsResponse struct {
	event.Event
}

Jump to

Keyboard shortcuts

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