Versions in this module Expand all Collapse all v1 v1.0.1 Jan 13, 2023 v1.0.0 Sep 16, 2022 Changes in this version + func Initialize(ctx context.Context) + type MutationResolver struct + func (r *MutationResolver) BlogAmendPost(ctx context.Context, post global.NewBlogPost) (*model.Post, error) + func (r *MutationResolver) BlogCreatePost(ctx context.Context, input global.NewBlogPost) (*model.Post, error) + func (r *MutationResolver) BlogLogin(ctx context.Context, account string, password string) (resp *global.BlogLoginResponse, err error) + type PostResolver struct + func (r *PostResolver) Author(ctx context.Context, obj *model.Post) (*model.User, error) + func (r *PostResolver) Category(ctx context.Context, obj *model.Post) (*model.Category, error) + func (r *PostResolver) CreatedAt(ctx context.Context, obj *model.Post) (*library.Datetime, error) + func (r *PostResolver) ID(ctx context.Context, obj *model.Post) (string, error) + func (r *PostResolver) ModifiedAt(ctx context.Context, obj *model.Post) (*library.Datetime, error) + func (r *PostResolver) Type(ctx context.Context, obj *model.Post) (global.BlogPostType, error) + type PostSeriesResolver struct + func (r *PostSeriesResolver) Children(ctx context.Context, obj *model.PostSeries) ([]*model.PostSeries, error) + func (r *PostSeriesResolver) Posts(ctx context.Context, obj *model.PostSeries) (posts []*model.Post, err error) + type QueryResolver struct + func (r *QueryResolver) BlogPostCategories(ctx context.Context) ([]*model.Category, error) + func (r *QueryResolver) BlogPostInfo(ctx context.Context) (*dto.PostInfo, error) + func (r *QueryResolver) BlogPosts(ctx context.Context, page *global.Pagination, tag string, categoryURL *string, ...) ([]*model.Post, error) + func (r *QueryResolver) BlogTwitterCard(ctx context.Context, name string) (string, error) + func (r *QueryResolver) GetBlogPostSeries(ctx context.Context, page *global.Pagination, key string) ([]*model.PostSeries, error) + func (r *QueryResolver) WhoAmI(ctx context.Context) (*model.User, error) + type Type struct + PostResolver *PostResolver + PostSeriesResolver *PostSeriesResolver + UserResolver *UserResolver + var Instance *Type + func New() *Type + type UserResolver struct + func (r *UserResolver) ID(ctx context.Context, obj *model.User) (string, error)