admin

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blog

type Blog struct {
	// contains filtered or unexported fields
}

func LoadBlog

func LoadBlog(id uuid.UUID, feedURL, siteURL, title, etag, lastModified string, syncedAt, createdAt, updatedAt time.Time) *Blog

func NewBlog

func NewBlog(feedURL, siteURL, title, etag, lastModified string, syncedAt time.Time) *Blog

func (*Blog) CheckDelete

func (b *Blog) CheckDelete() error

func (*Blog) CreatedAt

func (b *Blog) CreatedAt() time.Time

func (*Blog) ETag

func (b *Blog) ETag() string

func (*Blog) FeedURL

func (b *Blog) FeedURL() string

func (*Blog) ID

func (b *Blog) ID() uuid.UUID

func (*Blog) LastModified

func (b *Blog) LastModified() string

func (*Blog) SetETag

func (b *Blog) SetETag(etag string) error

func (*Blog) SetLastModified

func (b *Blog) SetLastModified(lastModified string) error

func (*Blog) SetSyncedAt

func (b *Blog) SetSyncedAt(syncedAt time.Time)

func (*Blog) SetUpdatedAt

func (b *Blog) SetUpdatedAt(updatedAt time.Time) error

func (*Blog) SiteURL

func (b *Blog) SiteURL() string

func (*Blog) SyncedAt

func (b *Blog) SyncedAt() time.Time

func (*Blog) Title

func (b *Blog) Title() string

func (*Blog) UpdatedAt

func (b *Blog) UpdatedAt() time.Time

type Post

type Post struct {
	// contains filtered or unexported fields
}

func LoadPost

func LoadPost(id, blogID uuid.UUID, url, title, content string, publishedAt, createdAt, updatedAt time.Time) *Post

func NewPost

func NewPost(blog *Blog, url, title, content string, publishedAt time.Time) *Post

func (*Post) BlogID

func (p *Post) BlogID() uuid.UUID

func (*Post) CheckDelete

func (p *Post) CheckDelete() error

func (*Post) Content

func (p *Post) Content() string

func (*Post) CreatedAt

func (p *Post) CreatedAt() time.Time

func (*Post) ID

func (p *Post) ID() uuid.UUID

func (*Post) PublishedAt

func (p *Post) PublishedAt() time.Time

func (*Post) SetContent

func (p *Post) SetContent(content string) error

func (*Post) SetUpdatedAt

func (p *Post) SetUpdatedAt(updatedAt time.Time) error

func (*Post) Title

func (p *Post) Title() string

func (*Post) URL

func (p *Post) URL() string

func (*Post) UpdatedAt

func (p *Post) UpdatedAt() time.Time

type Tag

type Tag struct {
	// contains filtered or unexported fields
}

func LoadTag

func LoadTag(id uuid.UUID, name string, createdAt, updatedAt time.Time) *Tag

func NewTag

func NewTag(name string) *Tag

func (*Tag) CheckDelete

func (t *Tag) CheckDelete() error

func (*Tag) CreatedAt

func (t *Tag) CreatedAt() time.Time

func (*Tag) ID

func (t *Tag) ID() uuid.UUID

func (*Tag) Name

func (t *Tag) Name() string

func (*Tag) SetUpdatedAt

func (t *Tag) SetUpdatedAt(updatedAt time.Time) error

func (*Tag) UpdatedAt

func (t *Tag) UpdatedAt() time.Time

Jump to

Keyboard shortcuts

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