Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTodoServiceServer ¶
func NewTodoServiceServer(db *sqlx.DB) v1.TodoServiceServer
NewTodoServiceServer creates a Todo service
Types ¶
type TodoServiceServer ¶
type TodoServiceServer struct {
// contains filtered or unexported fields
}
TodoServiceServer ...
func (*TodoServiceServer) Create ¶
func (s *TodoServiceServer) Create(ctx context.Context, req *v1.CreateRequest) (*v1.CreateResponse, error)
Create new Todo task
func (*TodoServiceServer) ReadAll ¶
func (s *TodoServiceServer) ReadAll(ctx context.Context, req *v1.ReadAllRequest) (*v1.ReadAllResponse, error)
ReadAll reads all
Click to show internal directories.
Click to hide internal directories.