handlers

package
v0.5.1 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: 10 Imported by: 0

Documentation

Overview

Package handlers for monitoring api call.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateJsonFromMap added in v0.5.0

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

Generate godoc

@Tags			Map
@Summary		Generate json file from map file.
@Description	Generate json file from map file.
@Accept			json
@Produce		json
@Param		map_name	path	string				true	"Map name"//

@Success 200 @Failure 500 "Internal Server Error" @Router /v1/map/{map_name}/generate [get]

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			Map
@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"
@Param		map_name	path	string				true	"Map name"//

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

Types

type Response

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

type SynchronizeRequestBody

type SynchronizeRequestBody struct {
	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