Documentation ¶
Index ¶
- type AuthenticateUserRequest
- type AuthenticateUserResponse
- type CreatePostRequest
- type CreatePostResponse
- type CreateUserRequest
- type CreateUserResponse
- type GetPostBySlugRequest
- type GetPostBySlugResponse
- type GetPostRequest
- type GetPostResponse
- type GetPostsByTagRequest
- type GetPostsByTagResponse
- type GetTagCountsRequest
- type GetTagCountsResponse
- type Handler
- type ListPostsRequest
- type ListPostsResponse
- type UpdatePostRequest
- type UpdatePostResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticateUserRequest ¶
type AuthenticateUserResponse ¶
type AuthenticateUserResponse struct {
Token string
}
type CreatePostRequest ¶
type CreatePostResponse ¶
type CreateUserRequest ¶
type CreateUserResponse ¶
type CreateUserResponse struct{}
type GetPostBySlugRequest ¶
type GetPostBySlugRequest struct {
Slug string
}
type GetPostBySlugResponse ¶
type GetPostRequest ¶
type GetPostRequest struct {
PostID string
}
type GetPostResponse ¶
type GetPostsByTagRequest ¶
type GetPostsByTagRequest struct {
Tag string
}
type GetPostsByTagResponse ¶
type GetTagCountsRequest ¶
type GetTagCountsRequest struct{}
type GetTagCountsResponse ¶
type Handler ¶
type Handler interface { ListPosts(context.Context, *ListPostsRequest) (*ListPostsResponse, error) GetPostsByTag(context.Context, *GetPostsByTagRequest) (*GetPostsByTagResponse, error) GetPost(context.Context, *GetPostRequest) (*GetPostResponse, error) GetPostBySlug(context.Context, *GetPostBySlugRequest) (*GetPostBySlugResponse, error) GetTagCounts(context.Context, *GetTagCountsRequest) (*GetTagCountsResponse, error) CreatePost(context.Context, *CreatePostRequest) (*CreatePostResponse, error) UpdatePost(context.Context, *UpdatePostRequest) (*UpdatePostResponse, error) CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error) AuthenticateUser(context.Context, *AuthenticateUserRequest) (*AuthenticateUserResponse, error) }
func New ¶
func New(db persistence.DB, tm auth.TokenManager) Handler
type ListPostsRequest ¶
type ListPostsRequest struct{}
type ListPostsResponse ¶
type UpdatePostRequest ¶
type UpdatePostResponse ¶
type UpdatePostResponse struct{}
Click to show internal directories.
Click to hide internal directories.