handlers

package
v0.0.0-...-ece14be Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllValues

func GetAllValues(kvstore *kvstore.KVStore) http.HandlerFunc

func GetValue

func GetValue(kvstore *kvstore.KVStore) http.HandlerFunc

func SetValue

func SetValue(kvstore *kvstore.KVStore, kafkaWriter *kafkaGo.Writer) http.HandlerFunc

func Subscribe

func Subscribe(kvstore *kvstore.KVStore, kafkaReader *kafkaGo.Reader) http.HandlerFunc

Types

type IncomingGETRequest

type IncomingGETRequest struct {
	Key string `json:"Key"`
}

type IncomingPOSTRequest

type IncomingPOSTRequest struct {
	Key   string `json:"Key"`
	Value string `json:"Value"`
}

type KafkaRecord

type KafkaRecord struct {
	Topic     string
	Partition int
	Offset    int
	Key       string
	Value     string
}

type OutgoingPOSTRequest

type OutgoingPOSTRequest struct {
	Key   string `json:"Key"`
	Value string `json:"Value"`
}

Jump to

Keyboard shortcuts

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