storage

package
v0.0.0-...-f66dc53 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const TheraHolesKey = "theraHoles"

TheraHolesKey bucket key for thera holes

View Source
const TimersKey = "timers"

TimersKey bucket key for timers

View Source
const ZKillTrackedKey = "zKillTracked"

ZKillTrackedKey bucket key for zkill feed tracked entities

Variables

View Source
var DB *bbolt.DB

DB main storage object

Functions

func Btoi

func Btoi(b []byte) int

func Get

func Get(bucket string, key string) ([]byte, error)

Get get value for key from bucket

func Init

func Init()

StorageInit Initialise bbolt storage buckets

func Itob

func Itob(v int) []byte

Itob returns an 8-byte big endian representation of v.

func Put

func Put(bucket string, key string, data []byte)

Put Save key/value pair to bucket

Types

This section is empty.

Jump to

Keyboard shortcuts

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