Versions in this module Expand all Collapse all v0 v0.2.0 Mar 13, 2020 Changes in this version + type APObject struct + CreatedAt time.Time + DeletedAt *time.Time + ID string + ReadID uint + UpdatedAt time.Time + UserID string + type Author struct + Created time.Time + Deleted time.Time + ID string + Name string + Updated time.Time + func (a *Author) ToType() vocab.Type + type Book struct + Authors []Author + ID string + ISBN string + Published int + Title string + func NewBook(id string, title string, published int, isbn string) *Book + func (b *Book) ToType() vocab.Type + type BookAuthor struct + FKAuthor int + FKBook int + type BookSubject struct + BookFK int + SubjectFK int + type ContextKey string + const ContextKeyAuthenticatedUser + const ContextKeyJWT + const ContextKeyRead + const ContextKeyRequestedUser + type Federater interface + ToType func() vocab.Type + type OutboxEntry struct + CreatedAt time.Time + Serialized string + UserID string + type Read struct + Book *Book + BookID string + Created time.Time + Deleted time.Time + Updated time.Time + User *User + UserID string + func (r *Read) ToType() vocab.Type + type Review struct + FKBook int + FKUser int + Text string + type Subject struct + Subject string + type User struct + CreatedAt time.Time + CryptoPrivateKey crypto.PrivateKey + DeletedAt *time.Time + DisplayName string + Email string + ID string + Local bool + Password []byte + PrivateKey []byte + Summary string + UpdatedAt time.Time + Username string + func NewUser(username, password, email, displayName string) (*User, error) + func (u *User) GenerateJWT() (string, error) + func (u *User) GenerateKeys() error + func (u *User) IRI() *url.URL + func (u *User) InboxIRI() *url.URL + func (u *User) IsPassword(password string) bool + func (u *User) OutboxIRI() *url.URL + func (u *User) SetPassword(password string) + func (u *User) ToType() vocab.Type + func (u *User) ValidateJWT(t string) bool