Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlogPost ¶
type BlogPost struct { PostId uint64 Creator profileservice.UserProfile Date string Title string Content string }
type BlogService ¶
type BlogService interface { CreatePost(ctx context.Context, userId uint64, title string, content string) (uint64, error) GetPost(ctx context.Context, userId uint64, postId uint64) (BlogPost, error) GetPosts(ctx context.Context, userId uint64, start uint64, end uint64, filter string) (uint64, []BlogPost, error) DeletePost(ctx context.Context, userId uint64, postId uint64) error CreateRight(ctx context.Context, userId uint64) bool DeleteRight(ctx context.Context, userId uint64) bool }
Click to show internal directories.
Click to hide internal directories.