handlers

package
v0.0.0-...-824b32f Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateService

func CreateService(c *fiber.Ctx) error

CreateService creates a new service resource represented by the JSON request

func DeleteService

func DeleteService(c *fiber.Ctx) error

DeleteService removes a service from database

func GetService

func GetService(c *fiber.Ctx) error

GetService returns service resource as a JSON response

func GetServiceManifest

func GetServiceManifest(c *fiber.Ctx) error

GetServiceManifest returns service resource as a JSON response

func SyncService

func SyncService(c *fiber.Ctx) error

SyncService syncs a service or creates a new one based on the provided manifest

func UpdateService

func UpdateService(c *fiber.Ctx) error

UpdateService patches the service resource using the provided JSON data

Types

type CreateServiceRequest

type CreateServiceRequest struct {
	Name    string             `json:"name"`
	URL     string             `json:"url"`
	Headers modelTypes.Headers `json:"headers"`
}

CreateServiceRequest JSON Payload

Jump to

Keyboard shortcuts

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