Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartRPCServer ¶
Types ¶
type Client ¶
type Client struct {
TodoClient
}
type CreateTodoReq ¶
type CreateTodoRes ¶
type CreateTodoRes struct {
Err error
}
type DeleteTodoReq ¶
type DeleteTodoReq struct {
ID uuid.UUID
}
type DeleteTodoRes ¶
type DeleteTodoRes struct {
Err error
}
type GetTodoReq ¶
type GetTodoReq struct {
ID uuid.UUID
}
type GetTodoRes ¶
type GetTodoRes struct {
Data Todo
}
type TodoClient ¶
func (*TodoClient) Get ¶
func (cl *TodoClient) Get(id uuid.UUID) (*Todo, error)
type TodoServer ¶
type TodoServer struct{}
func NewTodoServer ¶
func NewTodoServer() *TodoServer
func (*TodoServer) Create ¶
func (srv *TodoServer) Create(req CreateTodoReq, res *CreateTodoRes) error
func (*TodoServer) Delete ¶
func (srv *TodoServer) Delete(req DeleteTodoReq, res *DeleteTodoRes) error
func (*TodoServer) Get ¶
func (srv *TodoServer) Get(req GetTodoReq, res *GetTodoRes) error
func (*TodoServer) Update ¶
func (srv *TodoServer) Update(req UpdateTodoReq, res *UpdateTodoRes) error
type UpdateTodoReq ¶
type UpdateTodoReq struct { ID uuid.UUID New Todo }
type UpdateTodoRes ¶
type UpdateTodoRes struct {
Err error
}
Click to show internal directories.
Click to hide internal directories.