grpc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	apiv1.UnimplementedMiniBlogServer
	// contains filtered or unexported fields
}

Handler 负责处理博客模块的请求.

func NewHandler

func NewHandler(biz biz.IBiz) *Handler

NewHandler 创建一个新的 Handler 实例.

func (*Handler) ChangePassword

ChangePassword 修改用户密码.

func (*Handler) CreatePost

CreatePost 创建博客帖子.

func (*Handler) CreateUser

CreateUser 创建新用户.

func (*Handler) DeletePost

DeletePost 删除博客帖子.

func (*Handler) DeleteUser

DeleteUser 删除用户.

func (*Handler) GetPost

GetPost 获取博客帖子.

func (*Handler) GetUser

GetUser 获取用户信息.

func (*Handler) Healthz

func (h *Handler) Healthz(ctx context.Context, rq *emptypb.Empty) (*apiv1.HealthzResponse, error)

Healthz 服务健康检查.

func (*Handler) ListPost

ListPost 列出所有博客帖子.

func (*Handler) ListUser

ListUser 列出用户.

func (*Handler) Login

Login 用户登录.

func (*Handler) RefreshToken

RefreshToken 刷新令牌.

func (*Handler) UpdatePost

UpdatePost 更新博客帖子.

func (*Handler) UpdateUser

UpdateUser 更新用户信息.

Jump to

Keyboard shortcuts

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