db

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Conn *leveldb.DB
}

func OpenDB

func OpenDB() (*Database, error)

OpenDB opens a database file

func (*Database) GetToken

func (d *Database) GetToken(db *leveldb.DB) (string, error)

GetToken retrieves the token from the database

func (*Database) PutToken

func (d *Database) PutToken(db *leveldb.DB, token string) error

PutToken stores the token in the database

Jump to

Keyboard shortcuts

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