handlers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI(
	ctx context.Context,
	cfg config.Config,
	rdb *redis.Client,
	stor storage.Storage,
	pub pubsub.Publisher,
	sub pubsub.Subscriber,
	registry *prometheus.Registry,
	version string,
	websocketMetrics websocketMetrics,
) *API

func (*API) ApiAppVersion

func (s *API) ApiAppVersion(c echo.Context) error

ApiAppVersion returns application version.

func (*API) ApiSessionCreate

func (s *API) ApiSessionCreate(c echo.Context) error

ApiSessionCreate creates a new session with passed parameters.

func (*API) ApiSessionDelete

func (s *API) ApiSessionDelete(c echo.Context, session api.SessionUUID) error

ApiSessionDelete deletes the session with the passed UUID (and all associated requests).

func (*API) ApiSessionDeleteAllRequests

func (s *API) ApiSessionDeleteAllRequests(c echo.Context, session api.SessionUUID) error

ApiSessionDeleteAllRequests deletes all recorded session requests.

func (*API) ApiSessionDeleteRequest

func (s *API) ApiSessionDeleteRequest(c echo.Context, session api.SessionUUID, request api.RequestUUID) error

ApiSessionDeleteRequest deletes the request with passed UUID.

func (*API) ApiSessionGetAllRequests

func (s *API) ApiSessionGetAllRequests(c echo.Context, sessionUuid api.SessionUUID) error

ApiSessionGetAllRequests returns all session recorded requests.

func (*API) ApiSessionGetRequest

func (s *API) ApiSessionGetRequest(c echo.Context, session api.SessionUUID, requestUuid api.RequestUUID) error

func (*API) ApiSettings

func (s *API) ApiSettings(c echo.Context) error

ApiSettings returns application settings.

func (*API) AppMetrics

func (s *API) AppMetrics(c echo.Context) error

func (*API) LivenessProbe

func (s *API) LivenessProbe(c echo.Context) error

LivenessProbe returns code 200 if the application is alive.

func (*API) LivenessProbeHead

func (s *API) LivenessProbeHead(c echo.Context) error

LivenessProbeHead is an alias for the LivenessProbe.

func (*API) ReadinessProbe

func (s *API) ReadinessProbe(c echo.Context) error

ReadinessProbe returns code 200 if the application is ready to serve traffic.

func (*API) ReadinessProbeHead

func (s *API) ReadinessProbeHead(c echo.Context) error

ReadinessProbeHead is an alias for the ReadinessProbe.

func (*API) WebsocketSession

func (s *API) WebsocketSession(c echo.Context, sessionUuid api.SessionUUID) error

WebsocketSession returns websocket session.

Jump to

Keyboard shortcuts

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