Documentation
¶
Index ¶
- func GenerateUUID() (string, error)
- type DB
- func (db *DB) Get(ctx context.Context, kind Kind, id string) (r interface{}, err error)
- func (db *DB) GetAllLinks(ctx context.Context) ([]Link, error)
- func (db *DB) GetMostRecentNowText(ctx context.Context) (*NowText, error)
- func (db *DB) Put(ctx context.Context, kind Kind, d Link) (id string, err error)
- type Kind
- type Link
- type NowText
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateUUID ¶
taken from https://play.golang.org/p/4FkNSiUDMg GenerateUUID generates a random UUID according to RFC 4122
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) GetMostRecentNowText ¶
Click to show internal directories.
Click to hide internal directories.