Documentation
¶
Index ¶
- Constants
- func GenerateSessionID() (string, error)
- type Account
- type Blog
- func (b *Blog) CanBeSynced(now time.Time) bool
- func (b *Blog) CheckDelete() error
- func (b *Blog) CreatedAt() time.Time
- func (b *Blog) ETag() string
- func (b *Blog) FeedURL() string
- func (b *Blog) ID() uuid.UUID
- func (b *Blog) LastModified() string
- func (b *Blog) SetETag(etag string) error
- func (b *Blog) SetLastModified(lastModified string) error
- func (b *Blog) SetSyncedAt(syncedAt time.Time)
- func (b *Blog) SetUpdatedAt(updatedAt time.Time) error
- func (b *Blog) SiteURL() string
- func (b *Blog) SyncedAt() time.Time
- func (b *Blog) Title() string
- func (b *Blog) UpdatedAt() time.Time
- type Page
- func (p *Page) CheckDelete() error
- func (p *Page) Content() string
- func (p *Page) CreatedAt() time.Time
- func (p *Page) ID() uuid.UUID
- func (p *Page) SetContent(content string) error
- func (p *Page) SetUpdatedAt(updatedAt time.Time) error
- func (p *Page) Title() string
- func (p *Page) URL() string
- func (p *Page) UpdatedAt() time.Time
- type Post
- func (p *Post) BlogID() uuid.UUID
- func (p *Post) CheckDelete() error
- func (p *Post) Content() string
- func (p *Post) CreatedAt() time.Time
- func (p *Post) ID() uuid.UUID
- func (p *Post) PublishedAt() time.Time
- func (p *Post) SetContent(content string) error
- func (p *Post) SetPublishedAt(publishedAt time.Time) error
- func (p *Post) SetTitle(title string) error
- func (p *Post) SetUpdatedAt(updatedAt time.Time) error
- func (p *Post) Title() string
- func (p *Post) URL() string
- func (p *Post) UpdatedAt() time.Time
- type Session
- type Tag
Constants ¶
View Source
const ( // Ensure that a post doesn't get synced more than once every SyncCooldown. SyncCooldown = 2 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
func GenerateSessionID ¶ added in v0.4.0
Generate a random, crypto-safe session ID.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func LoadAccount ¶
func NewAccount ¶
func (*Account) CheckDelete ¶
type Blog ¶
type Blog struct {
// contains filtered or unexported fields
}
func (*Blog) CheckDelete ¶
func (*Blog) LastModified ¶
func (*Blog) SetLastModified ¶
func (*Blog) SetSyncedAt ¶
type Page ¶ added in v0.5.0
type Page struct {
// contains filtered or unexported fields
}
func (*Page) CheckDelete ¶ added in v0.5.0
func (*Page) SetContent ¶ added in v0.5.0
type Post ¶
type Post struct {
// contains filtered or unexported fields
}
func (*Post) CheckDelete ¶
func (*Post) PublishedAt ¶
func (*Post) SetContent ¶
func (*Post) SetPublishedAt ¶ added in v0.5.2
type Session ¶ added in v0.4.0
type Session struct {
// contains filtered or unexported fields
}
func LoadSession ¶ added in v0.4.0
func NewSession ¶ added in v0.4.0
func (*Session) CheckDelete ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.