v1

package
v0.0.81 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1 (api/v1) is the first versioned implementation of the API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Route added in v0.0.80

func Route(r *mux.Router, s Server) *mux.Router

Route applies all the v1 API functions provided by the Server to the Router given. If the router is nil, a new one is instantiated.

Types

type Server

type Server struct {
	Client        gcs.Client
	Host          string
	DefaultBucket string
}

Server contains the necessary settings and i/o objects needed to serve this api

func (Server) GetDashboardGroup added in v0.0.80

func (s Server) GetDashboardGroup(w http.ResponseWriter, r *http.Request)

GetDashboardGroup returns a given dashboard group Response Proto: GetDashboardGroupResponse

func (Server) ListDashboardGroups

func (s Server) ListDashboardGroups(w http.ResponseWriter, r *http.Request)

ListDashboardGroups returns every dashboard group in TestGrid Response Proto: ListDashboardGroupResponse

Jump to

Keyboard shortcuts

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