buntdb

package
v0.0.0-...-9b87607 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store buntdb存储

func NewStore

func NewStore(path string) (*Store, error)

NewStore 创建基于buntdb的文件存储

func (*Store) Check

func (a *Store) Check(ctx context.Context, tokenString string) (bool, error)

Check ...

func (*Store) Close

func (a *Store) Close() error

Close ...

func (*Store) Delete

func (a *Store) Delete(ctx context.Context, tokenString string) error

Delete 删除键

func (*Store) Set

func (a *Store) Set(ctx context.Context, tokenString string, expiration time.Duration) error

Set ...

Jump to

Keyboard shortcuts

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