common

package
v0.0.0-...-b4c3900 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BADGER_FLAG_ALIAS = 1

	HEADER_B64_KEY              = "b64"
	HEADER_SKIP_KEY             = "skip"
	HEADER_MAX_KEY              = "max"
	HEADER_EXPLAIN_KEY          = "explain"
	HEADER_PREFIX_KEY           = "prefix"
	HEADER_VALUES_KEY           = "values"
	HEADER_ALIAS_KEY            = "aliases"
	HEADER_ALIAS_SEPARATOR      = ";"
	HEADER_SEGMENT_KEY          = "segments"
	HEADER_SEGMENT_SEPARATOR    = ":"
	RESP_HEADER_RELDB_FUNCTION  = "func"
	RESP_HEADER_DUPLICATE_ERROR = "duplicate_key"
	RESP_HEADER_ERROR_MSG       = "error_msg"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BucketData

type BucketData struct {
	Name     string `json:"name"`
	Error    string `json:"error,omitempty"`
	LsmSize  int64  `json:"lsmSize"`
	VlogSize int64  `json:"VlogSize"`
}

type BucketName

type BucketName string

type KV

type KV struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
	Error string `json:"error,omitempty"`
}

type ScpJob

type ScpJob struct {
	Fname      string
	BucketName BucketName
	Status     ScpStatus
	Message    string
	LastStart  time.Time
	LastEnd    time.Time
	NextSend   time.Time
}

type ScpStatus

type ScpStatus int
const (
	ScpPending  ScpStatus = 0
	ScpRunning  ScpStatus = 1
	ScpComplete ScpStatus = 2
	ScpError    ScpStatus = 3
)

Jump to

Keyboard shortcuts

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