Documentation ¶
Index ¶
- type DB
- func (s *DB) AddOrAuthUser(name, password string) error
- func (s *DB) AddOrEditNote(user string, n Note)
- func (s *DB) DelSession(user string)
- func (s *DB) GetNotes(user string) []Note
- func (s *DB) GetToken(user string) (token string)
- func (s *DB) GetUser(token string) (user string, valid bool)
- func (s *DB) HasUser(name string) bool
- type Note
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) AddOrAuthUser ¶
AddUser adds a user to the storage if it is not already there.
func (*DB) AddOrEditNote ¶
func (*DB) DelSession ¶
Click to show internal directories.
Click to hide internal directories.