api

package
v0.0.0-...-d96dfc6 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RootPath             = "/"
	ContextsPath         = fmt.Sprintf("%s%s", RootPath, "contexts")
	ContextIdPlaceholder = ":contextId"
	ContextPath          = fmt.Sprintf("%s/%s", ContextsPath, ContextIdPlaceholder)
)
View Source
var (
	PartitionsPath         = fmt.Sprintf("%s/%s", ContextPath, "partitions")
	PartitionIdPlaceholder = ":partitionId"
	PartitionPath          = fmt.Sprintf("%s/%s", PartitionsPath, PartitionIdPlaceholder)
)
View Source
var WorkerIdPlaceholder = ":workerId"
View Source
var WorkerPath = fmt.Sprintf("%s/%s", WorkersPath, WorkerIdPlaceholder)
View Source
var WorkersPath = fmt.Sprintf("%s/%s", ContextPath, "workers")

Functions

This section is empty.

Types

type Api

type Api struct {
	Backend backend.Backend
}

func (*Api) DeleteContext

func (a *Api) DeleteContext(c *gin.Context)

func (*Api) DeletePartition

func (a *Api) DeletePartition(c *gin.Context)

func (*Api) DeleteWorker

func (a *Api) DeleteWorker(c *gin.Context)

func (*Api) GetContext

func (a *Api) GetContext(c *gin.Context)

func (*Api) GetContexts

func (a *Api) GetContexts(c *gin.Context)

func (*Api) GetInfo

func (a *Api) GetInfo(c *gin.Context)

func (*Api) GetPartitions

func (a *Api) GetPartitions(c *gin.Context)

func (*Api) GetWorker

func (a *Api) GetWorker(c *gin.Context)

func (*Api) GetWorkers

func (a *Api) GetWorkers(c *gin.Context)

func (*Api) PostContext

func (a *Api) PostContext(c *gin.Context)

func (*Api) PostPartition

func (a *Api) PostPartition(c *gin.Context)

func (*Api) PostWorker

func (a *Api) PostWorker(c *gin.Context)

func (*Api) PutWorker

func (a *Api) PutWorker(c *gin.Context)

Jump to

Keyboard shortcuts

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