Documentation ¶ Index ¶ type Store func NewStore(path string) (*Store, error) func (a *Store) Check(ctx context.Context, tokenString string) (bool, error) func (a *Store) Close() error func (a *Store) Delete(ctx context.Context, tokenString string) error func (a *Store) Set(ctx context.Context, tokenString string, expiration time.Duration) error 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 ... Source Files ¶ View all Source files buntdb.go Click to show internal directories. Click to hide internal directories.