Documentation ¶
Index ¶
- type Author
- type Blog
- type BlogApp
- func (b *BlogApp) AboutMe(ctx context.Context) (*Author, error)
- func (b *BlogApp) AddBackend(back *backend.Backend)
- func (b *BlogApp) AllBlogsList(ctx context.Context) ([]BlogListResult, error)
- func (b *BlogApp) AnyBlog(ctx context.Context, ID string) (*Blog, error)
- func (b *BlogApp) AppID() string
- func (b *BlogApp) Blog(ctx context.Context, ID string) (*Blog, error)
- func (b *BlogApp) BlogList(ctx context.Context, page int64) ([]BlogListResult, error)
- func (b *BlogApp) CleanCache(ID string)
- func (b *BlogApp) Contains(ctx context.Context, ID string) bool
- func (b *BlogApp) ConvertBlog(blog *Blog)
- func (b *BlogApp) CountTable() backend.CountTable
- func (b *BlogApp) CrashTable() backend.CrashTable
- func (b *BlogApp) Extension(mux *http.ServeMux)
- func (b *BlogApp) GetAuthor(ctx context.Context, blog *Blog) (*Author, error)
- func (b *BlogApp) InsertBlog(ctx context.Context, blog Blog) error
- func (b *BlogApp) LatestBlogs(ctx context.Context, page int64) ([]*Blog, error)
- func (b *BlogApp) Projects(ctx context.Context, techFilter string) (Portfolio, error)
- func (b *BlogApp) RemoveBlog(ctx context.Context, ID string) error
- func (b *BlogApp) UpdateBlog(ctx context.Context, ID string, updates bson.M) error
- type BlogListResult
- type Portfolio
- type PortfolioProject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Author ¶
type Blog ¶
type Blog struct { ID string `json:"id" bson:"_id"` Author string `json:"author" bson:"author"` Favicon string `json:"favicon" bson:"favicon"` Title string `json:"title" bson:"title"` RawBlog string `json:"blog" bson:"blog"` HTMLBlog string `json:"-" bson:"-"` StaticPage bool `json:"staticPage" bson:"staticPage"` Draft bool `json:"draft" bson:"draft"` CreateTime int64 `json:"createTime" bson:"createTime"` UpdateTime int64 `json:"updateTime" bson:"updateTime"` }
type BlogApp ¶
type BlogApp struct {
// contains filtered or unexported fields
}
func NewBlogApp ¶
func (*BlogApp) AddBackend ¶
func (*BlogApp) AllBlogsList ¶
func (b *BlogApp) AllBlogsList(ctx context.Context) ([]BlogListResult, error)
func (*BlogApp) CleanCache ¶
func (*BlogApp) ConvertBlog ¶
func (*BlogApp) CountTable ¶
func (b *BlogApp) CountTable() backend.CountTable
func (*BlogApp) CrashTable ¶
func (b *BlogApp) CrashTable() backend.CrashTable
func (*BlogApp) LatestBlogs ¶
type BlogListResult ¶
type BlogListResult struct { ID string `json:"id" bson:"_id"` Title string `json:"title" bson:"title"` CreateTime int `json:"createTime" bson:"createTime"` }
func (BlogListResult) HTMX ¶
func (b BlogListResult) HTMX() string
type PortfolioProject ¶
type PortfolioProject struct { Title string `json:"_id" bson:"_id"` Order int `json:"order" bson:"order"` Repository string `json:"repository" bson:"repository"` Description string `json:"description" bson:"description"` Technologies []string `json:"technologies" bson:"technologies"` Languages []struct { Language string `json:"language" bson:"language"` Dates string `json:"dates" bson:"dates"` } `json:"language" bson:"language"` }
func (PortfolioProject) HTMX ¶
func (p PortfolioProject) HTMX() string
Click to show internal directories.
Click to hide internal directories.