api

package
v0.0.152 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package api provides code to host an API displaying TestGrid data

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRouters added in v0.0.148

func GetRouters(options RouterOptions, storageClient *storage.Client) (*mux.Router, *grpc.Server, error)

GetRouters returns an http router and gRPC server that both serve TestGrid's API It also instantiates necessary caching and i/o objects

func GetServer added in v0.0.148

func GetServer(options RouterOptions, storageClient *storage.Client) (*v1.Server, error)

GetServer returns a server that serves TestGrid's API It also instantiates necessary caching and i/o objects

Types

type RouterOptions

type RouterOptions struct {
	GcsCredentials           string
	Hostname                 *url.URL // Has no effect. TODO: decommission
	HomeBucket               string
	GridPathPrefix           string
	TabPathPrefix            string
	AccessControlAllowOrigin string
	Timeout                  time.Duration
}

RouterOptions are the options needed to GetRouter

Directories

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

Jump to

Keyboard shortcuts

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