handler

package
v0.0.0-...-b0a8868 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2024 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticateUserRequest

type AuthenticateUserRequest struct {
	Username string
	Password string
}

type AuthenticateUserResponse

type AuthenticateUserResponse struct {
	Token string
}

type CreatePostRequest

type CreatePostRequest struct {
	Post *model.Post
}

type CreatePostResponse

type CreatePostResponse struct {
	PostID string
	Slug   string
}

type CreateUserRequest

type CreateUserRequest struct {
	Username string
	Password string
}

type CreateUserResponse

type CreateUserResponse struct{}

type GetPostBySlugRequest

type GetPostBySlugRequest struct {
	Slug string
}

type GetPostBySlugResponse

type GetPostBySlugResponse struct {
	Post *model.Post
}

type GetPostRequest

type GetPostRequest struct {
	PostID string
}

type GetPostResponse

type GetPostResponse struct {
	Post *model.Post
}

type GetPostsByTagRequest

type GetPostsByTagRequest struct {
	Tag string
}

type GetPostsByTagResponse

type GetPostsByTagResponse struct {
	Posts []*model.Post
}

type GetTagCountsRequest

type GetTagCountsRequest struct{}

type GetTagCountsResponse

type GetTagCountsResponse struct {
	TagCounts map[string]int64
}

type ListPostsRequest

type ListPostsRequest struct{}

type ListPostsResponse

type ListPostsResponse struct {
	Posts []*model.Post
}

type UpdatePostRequest

type UpdatePostRequest struct {
	OriginalSlug string
	Post         *model.Post
}

type UpdatePostResponse

type UpdatePostResponse struct{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL