Documentation
¶
Index ¶
- type DB
- func (me *DB) AddEncryptKeyForPublicKey(u *charm.User, pk string, gid string, ek string, ca *time.Time) error
- func (me *DB) CreateDB() error
- func (me *DB) DeleteToken(token charm.Token) error
- func (me *DB) EncryptKeysForPublicKey(pk *charm.PublicKey) ([]*charm.EncryptKey, error)
- func (me *DB) GetNews(id string) (*charm.News, error)
- func (me *DB) GetNewsList(tag string, page int) ([]*charm.News, error)
- func (me *DB) GetSeq(u *charm.User, name string) (uint64, error)
- func (me *DB) GetUserWithID(charmID string) (*charm.User, error)
- func (me *DB) GetUserWithName(name string) (*charm.User, error)
- func (me *DB) KeysForUser(user *charm.User) ([]*charm.PublicKey, error)
- func (me *DB) LinkUserKey(user *charm.User, key string) error
- func (me *DB) MergeUsers(userID1 int, userID2 int) error
- func (me *DB) NextSeq(u *charm.User, name string) (uint64, error)
- func (me *DB) PostNews(subject string, body string, tags []string) error
- func (me *DB) SetToken(token charm.Token) error
- func (me *DB) SetUserName(charmID string, name string) (*charm.User, error)
- func (me *DB) UnlinkUserKey(user *charm.User, key string) error
- func (me *DB) UserCount() (int, error)
- func (me *DB) UserForKey(key string, create bool) (*charm.User, error)
- func (me *DB) UserNameCount() (int, error)
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) AddEncryptKeyForPublicKey ¶
func (*DB) EncryptKeysForPublicKey ¶
func (*DB) SetUserName ¶
func (*DB) UserNameCount ¶
Click to show internal directories.
Click to hide internal directories.