covidtests

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Sciensano sciensano.APIClient
	// contains filtered or unexported fields
}

Handler implements a grafana-json handler for COVID-19 test results

func New

func New(client sciensano.APIClient) (handler *Handler)

New creates a new Handler

func (*Handler) Endpoints

func (handler *Handler) Endpoints() grafanajson.Endpoints

Endpoints implements the grafana-json Endpoint function. It returns all supported endpoints

func (*Handler) Search

func (handler *Handler) Search() (targets []string)

Search implements the grafana-json Search function. It returns all supported targets

func (*Handler) TableQuery

func (handler *Handler) TableQuery(ctx context.Context, target string, args *grafanajson.TableQueryArgs) (response *grafanajson.TableQueryResponse, err error)

TableQuery implements the grafana-json TableQuery function. It processes incoming TableQuery requests

Jump to

Keyboard shortcuts

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