rest

package
v1.1.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeartbeatHandler

func HeartbeatHandler(ctx iris.Context)

func PartitionHandler

func PartitionHandler(ctx iris.Context)

GET: query entries from a partition PUT: append new entries to a partition. a new partition is created if non-existent. DELETE: delete a partition along with its entries

func Profiler

func Profiler() iris.Handler

func TopicHandler

func TopicHandler(ctx iris.Context)

GET: list all the partition keys under this topic PUT: update the metadata of a topic DELETE: delete a topic

func TopicsHandler

func TopicsHandler(ctx iris.Context)

GET: get list of topics POST: create a new topic DELETE: delete all topics

Types

type PartitionRequestResponse

type PartitionRequestResponse struct {
	Data cache.Entries
}

type REST

type REST struct {
	Port string
}

func (REST) Start

func (rest REST) Start() error

type TopicsRequest

type TopicsRequest struct {
	Topic      string
	Partitions []string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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