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

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