leveldb

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 5 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

Storage is interface structure

func New

func New(config *config.ConfYaml) *Storage

New func implements the storage interface for gorush (https://github.com/appleboy/gorush)

func (*Storage) Add added in v1.15.0

func (s *Storage) Add(key string, count int64)

func (*Storage) Close added in v1.13.0

func (s *Storage) Close() error

Close the storage connection

func (*Storage) Get added in v1.15.0

func (s *Storage) Get(key string) int64

func (*Storage) Init

func (s *Storage) Init() error

Init client storage.

func (*Storage) Set added in v1.15.0

func (s *Storage) Set(key string, count int64)

Jump to

Keyboard shortcuts

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