api

package
v0.0.0-...-b13ab0d Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServerErr = errors.New("500-")
)

Functions

This section is empty.

Types

type AdminCollectionResponse

type AdminCollectionResponse struct {
	RunningCollections []*model.RunningPlan   `json:"running_collections"`
	NodePools          scheduler.AllNodesInfo `json:"node_pools"`
}

type JSONMessage

type JSONMessage struct {
	Message string `json:"message"`
}

type Route

type Route struct {
	Name        string
	Method      string
	Path        string
	HandlerFunc httprouter.Handle
}

type Routes

type Routes []*Route

type ShibuyaAPI

type ShibuyaAPI struct {
	// contains filtered or unexported fields
}

func NewAPIServer

func NewAPIServer() *ShibuyaAPI

func (*ShibuyaAPI) InitRoutes

func (s *ShibuyaAPI) InitRoutes() Routes

Jump to

Keyboard shortcuts

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