Documentation ¶
Index ¶
- type ToDoService
- func (s *ToDoService) Create(ctx context.Context, req *v1.CreateRequest) (*v1.CreateResponse, error)
- func (s *ToDoService) Delete(ctx context.Context, req *v1.DeleteRequest) (*v1.DeleteResponse, error)
- func (s *ToDoService) Read(ctx context.Context, req *v1.ReadRequest) (*v1.ReadResponse, error)
- func (s *ToDoService) ReadAll(ctx context.Context, req *v1.ReadAllRequest) (*v1.ReadAllResponse, error)
- func (s *ToDoService) Update(ctx context.Context, req *v1.UpdateRequest) (*v1.UpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ToDoService ¶
type ToDoService struct { v1.UnimplementedToDoServiceServer // contains filtered or unexported fields }
ToDoService implements the v1.ToDoServiceServer proto interface
func NewToDoService ¶
func NewToDoService() *ToDoService
NewToDoService creates and returns a new ToDoService
func (*ToDoService) Create ¶
func (s *ToDoService) Create(ctx context.Context, req *v1.CreateRequest) (*v1.CreateResponse, error)
Create a todo task
func (*ToDoService) Delete ¶
func (s *ToDoService) Delete(ctx context.Context, req *v1.DeleteRequest) (*v1.DeleteResponse, error)
Delete a todo task
func (*ToDoService) Read ¶
func (s *ToDoService) Read(ctx context.Context, req *v1.ReadRequest) (*v1.ReadResponse, error)
Read a todo task
func (*ToDoService) ReadAll ¶
func (s *ToDoService) ReadAll(ctx context.Context, req *v1.ReadAllRequest) (*v1.ReadAllResponse, error)
ReadAll todo tasks
func (*ToDoService) Update ¶
func (s *ToDoService) Update(ctx context.Context, req *v1.UpdateRequest) (*v1.UpdateResponse, error)
Update a todo task
Click to show internal directories.
Click to hide internal directories.