database

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Db *buntdb.DB
	// contains filtered or unexported fields
}

func New

func New(path string) (*DB, error)

func (*DB) CheckPlugin

func (db *DB) CheckPlugin(key string) bool

func (*DB) CheckUser

func (db *DB) CheckUser(key string) bool

func (*DB) CreatePlugin

func (db *DB) CreatePlugin(name string, token string) error

func (*DB) CreateUser

func (db *DB) CreateUser(name string, token string) error

func (*DB) InitDB

func (db *DB) InitDB()

type Plugin

type Plugin struct {
	Name  string
	Token string
}

type User

type User struct {
	Name  string
	Token string
}

Jump to

Keyboard shortcuts

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