http

package
v0.0.0-...-947ddfb Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthResponse

type HealthResponse struct {
	Status            STATUS                      `json:"status"`
	HealthCheckErrors []services.HealthCheckError `json:"healthCheckErrors"`
}

type RootController

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

func NewRootController

func NewRootController(service RoutesService, healthService services.IHealthService) *RootController

func (*RootController) Mount

func (rc *RootController) Mount(g *echo.Group)

type RoutesService

type RoutesService interface {
	GetAllRoutes() ([]*models.Route, error)
	GetRoute(key string) (*models.Route, error)
	CreateRoute(key string, RedirectURL string, ExtendedURL string) error
	DeleteRoute(key string) error
}

type STATUS

type STATUS string
const (
	OK        STATUS = "OK"
	UNHEALTHY STATUS = "UNHEALTHY"
)

Jump to

Keyboard shortcuts

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