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 Demographics demographics.Demographics // contains filtered or unexported fields }
Handler implements a grafana-json handler for COVID-19 vaccinations
func New ¶
func New(client sciensano.APIClient, demographics demographics.Demographics) (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 ¶
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
Click to show internal directories.
Click to hide internal directories.