Documentation
¶
Index ¶
- Variables
- type Api
- func (a *Api) DeleteContext(c *gin.Context)
- func (a *Api) DeletePartition(c *gin.Context)
- func (a *Api) DeleteWorker(c *gin.Context)
- func (a *Api) GetContext(c *gin.Context)
- func (a *Api) GetContexts(c *gin.Context)
- func (a *Api) GetInfo(c *gin.Context)
- func (a *Api) GetPartitions(c *gin.Context)
- func (a *Api) GetWorker(c *gin.Context)
- func (a *Api) GetWorkers(c *gin.Context)
- func (a *Api) PostContext(c *gin.Context)
- func (a *Api) PostPartition(c *gin.Context)
- func (a *Api) PostWorker(c *gin.Context)
- func (a *Api) PutWorker(c *gin.Context)
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 ¶
func (*Api) DeleteContext ¶
func (*Api) DeletePartition ¶
func (*Api) DeleteWorker ¶
func (*Api) GetContext ¶
func (*Api) GetContexts ¶
func (*Api) GetPartitions ¶
func (*Api) GetWorkers ¶
func (*Api) PostContext ¶
func (*Api) PostPartition ¶
func (*Api) PostWorker ¶
Click to show internal directories.
Click to hide internal directories.