Documentation ¶
Index ¶
- type ToDo
- type ToDoManager
- func (m *ToDoManager) Create(cxt context.Context, toDo ToDo) (string, error)
- func (m *ToDoManager) Delete(cxt context.Context, id string) (bool, error)
- func (m *ToDoManager) Read(cxt context.Context, id string) (*ToDo, error)
- func (m *ToDoManager) Search(cxt context.Context, pattern string, tags []string, states []string) ([]ToDo, error)
- func (m *ToDoManager) Update(cxt context.Context, toDo ToDo) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ToDo ¶
type ToDo struct { //ID of todo ID string //Title of todo Title string //Description of todo Description string //State of todo State string //Tags of todo Tags []string //Reminder of todo Reminder int64 }
ToDo a todo
type ToDoManager ¶
type ToDoManager struct {
Client pb.ToDoServiceClient
}
ToDoManager manages your todo
func NewToDoManager ¶
func NewToDoManager(cc *grpc.ClientConn) *ToDoManager
NewToDoManager create a manager of todos
Click to show internal directories.
Click to hide internal directories.