handlers

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Package handlers for monitoring api call.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Health

func Health(echo echo.Context) error

Health godoc

@Tags			Monitoring
@Summary		Health.
@Description	Health.
@Accept			*/*
@Produce		json
@Success		200
@Router			/healthz [get]

func Ready

func Ready(echo echo.Context) error

Ready godoc

@Tags			Monitoring
@Summary		Ready.
@Description	Ready.
@Accept			*/*
@Produce		json
@Success		200
@Router			/readyz [get]

func Synchronize

func Synchronize(c echo.Context) (err error)

Synchronize godoc

@Tags			Synchronization
@Summary		Synchronize GCS file to an HAProxy map file.
@Description	Synchronize GCS file to an HAProxy map file.
@Accept			json
@Produce		json
@Param		_			body	SynchronizeRequestBody	true	"Data of the synchronisation endpoint"

@Success 200 @Failure 500 "Internal Server Error" @Router /v1/synchronize [post]

Types

type Response

type Response struct {
	Message string `json:"message"`
}

type SynchronizeRequestBody

type SynchronizeRequestBody struct {
	MapName        string `json:"map_name"  validate:"required,map_name"`
	BucketName     string `json:"bucket_name" validate:"required,bucket_name"`
	BucketFileName string `json:"bucket_file_name" validate:"required,bucket_file_name"`
}

Jump to

Keyboard shortcuts

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