simkafka

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package simkafka is a toy simulation of a Kafka commit log.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(which string, what string) int

Append adds a value to the end of a topic, and returns the offset of the added value.

func Read

func Read(which string, offset int) string

Read returns a value for a topic at a specific offset.

func ReadLast

func ReadLast(which string) (string, int)

ReadLast returns the latest value for a topic, and its offset

func ReadMultiple

func ReadMultiple(which string, offset, max int) []string

ReadMultiple reads values for a topic, starting at the given offset, up to the given maximum number of results.

func Status

func Status() string

Status reports the current status of the simulated Kafka instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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