api

package
v0.0.0-...-e159260 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusWorking = "WORKING"
	StatusFailed  = "FAILED"
)
View Source
const Version = "0.1.0"

Variables

This section is empty.

Functions

func CreateFilterFromQueryParam

func CreateFilterFromQueryParam(d rules.Queryable, params url.Values) db.FindFilter

Types

type MetaResponse

type MetaResponse struct {
	CurrentPage  int `json:"currentPage"`
	PerPage      int `json:"perPage"`
	TotalOfItems int `json:"totalOfItems"`
	TotalOfPages int `json:"totalOfPages"`
}

type Response

type Response struct {
	Data interface{}  `json:"data"`
	Meta MetaResponse `json:"meta"`
}

type Server

type Server interface {
	http.Handler
	Start()
}

func NewServer

func NewServer() (Server, error)

type Service

type Service struct {
	Name    string `json:"name"`
	Status  string `json:"status"`
	Elapsed string `json:"elapsed"`
	Message string `json:"message,omitempty"`
}

type Status

type Status struct {
	Project  string    `json:"project"`
	Version  string    `json:"version"`
	Status   string    `json:"status"`
	Services []Service `json:"services"`
}

Jump to

Keyboard shortcuts

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