common

package
v0.0.0-...-dc9cd0e Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2019 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Note

type Note interface {
	ID() string
	Short() string
	Text() string
	Token() string /* Unique per note (i.e. like an ID), only let author see. */
}

type User

type User interface {
	ID() string
	Username() string
	Phone() string
	Token() string /* Stored in session, secret, unique per session. */
	SetUsername(string)
	SetPass(string)
	SetPhone(string)
	Save(context.Context) error
}

Jump to

Keyboard shortcuts

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