Documentation ¶
Index ¶
- func Initialize(ctx context.Context)
- type MutationResolver
- 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
- 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
- type QueryResolver
- 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
- type UserResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Types ¶
type MutationResolver ¶
type MutationResolver struct{}
func (*MutationResolver) BlogAmendPost ¶
func (r *MutationResolver) BlogAmendPost(ctx context.Context, post global.NewBlogPost) (*model.Post, error)
func (*MutationResolver) BlogCreatePost ¶
func (r *MutationResolver) BlogCreatePost(ctx context.Context, input global.NewBlogPost) (*model.Post, error)
BlogCreatePost create new blog post
func (*MutationResolver) BlogLogin ¶
func (r *MutationResolver) BlogLogin(ctx context.Context, account string, password string, ) (resp *global.BlogLoginResponse, err error)
BlogLogin login in blog page
type PostResolver ¶
type PostResolver struct{}
func (*PostResolver) ModifiedAt ¶
func (*PostResolver) Type ¶
func (r *PostResolver) Type(ctx context.Context, obj *model.Post) (global.BlogPostType, error)
type PostSeriesResolver ¶
type PostSeriesResolver struct{}
func (*PostSeriesResolver) Children ¶
func (r *PostSeriesResolver) Children(ctx context.Context, obj *model.PostSeries) ([]*model.PostSeries, error)
func (*PostSeriesResolver) Posts ¶
func (r *PostSeriesResolver) Posts(ctx context.Context, obj *model.PostSeries) (posts []*model.Post, err error)
type QueryResolver ¶
type QueryResolver struct{}
func (*QueryResolver) BlogPostCategories ¶
func (*QueryResolver) BlogPostInfo ¶
func (*QueryResolver) BlogTwitterCard ¶
func (*QueryResolver) GetBlogPostSeries ¶
func (r *QueryResolver) GetBlogPostSeries(ctx context.Context, page *global.Pagination, key string, ) ([]*model.PostSeries, error)
type Type ¶
type Type struct { PostResolver *PostResolver PostSeriesResolver *PostSeriesResolver UserResolver *UserResolver }
var Instance *Type
Click to show internal directories.
Click to hide internal directories.