dbs

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(path string) (*storm.DB, error)

Open opens the database, initializing all of the required top-level buckets.

Types

type Pin

type Pin struct {
	ID      uint64 `storm:"increment"`
	Created time.Time
	User    uint64 `storm:"index"`
	Name    string `storm:"index"`
	CID     string `storm:"index"`
}

Pin represents a pin entry in the database.

type Token

type Token struct {
	ID      string
	Created time.Time
	User    uint64 `storm:"index"`
}

Token represents an auth token in the database.

type User

type User struct {
	ID      uint64 `storm:"increment"`
	Created time.Time
	Name    string `storm:"index,unique"`
}

User reprsents a user in the database.

Jump to

Keyboard shortcuts

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