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
Click to show internal directories.
Click to hide internal directories.