types

package
v0.0.0-...-aaf2e34 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	PartitionFilePath string
	PartitionNumber   uint8
	HttpServerPort    string
	PersistPeriod     int8
	TpcServerPort     string
	HttpServerEnabled bool
}

func ParseConfiguration

func ParseConfiguration() Configuration

type Key

type Key struct {
	Key       string `json:"key"`
	Partition uint8  `json:"partition"`
}

type KeysResponse

type KeysResponse struct {
	Keys []Key `json:"keys"`
}

type NukeResponseCode

type NukeResponseCode int
const (
	Ok           NukeResponseCode = 0
	Empty        NukeResponseCode = 100
	NotFound     NukeResponseCode = -900
	DuplicateKey NukeResponseCode = -200
)

type PartitionDetailsResponse

type PartitionDetailsResponse struct {
	Partition uint8
	Entries   uint
}

type PopRequest

type PopRequest struct {
	Key string `json:"key"`
}

type PushItemFileRequest

type PushItemFileRequest struct {
	Key string `json:"key"`
}

type PushItemRequest

type PushItemRequest struct {
	Key   string `json:"key"`
	Value []byte `json:"value"`
}

type PushItemStringRequest

type PushItemStringRequest 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