Documentation ¶
Index ¶
- func RegisterTaskServiceHandler(s server.Server, hdlr TaskServiceHandler, opts ...server.HandlerOption)
- type CompleteTaskRequest
- func (*CompleteTaskRequest) Descriptor() ([]byte, []int)
- func (m *CompleteTaskRequest) GetCompleted() bool
- func (m *CompleteTaskRequest) GetTaskId() string
- func (*CompleteTaskRequest) ProtoMessage()
- func (m *CompleteTaskRequest) Reset()
- func (m *CompleteTaskRequest) String() string
- func (m *CompleteTaskRequest) XXX_DiscardUnknown()
- func (m *CompleteTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CompleteTaskRequest) XXX_Merge(src proto.Message)
- func (m *CompleteTaskRequest) XXX_Size() int
- func (m *CompleteTaskRequest) XXX_Unmarshal(b []byte) error
- type CreateTask
- func (*CreateTask) Descriptor() ([]byte, []int)
- func (m *CreateTask) GetDailyDo() bool
- func (m *CreateTask) GetDescription() string
- func (m *CreateTask) GetTitle() string
- func (*CreateTask) ProtoMessage()
- func (m *CreateTask) Reset()
- func (m *CreateTask) String() string
- func (m *CreateTask) XXX_DiscardUnknown()
- func (m *CreateTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateTask) XXX_Merge(src proto.Message)
- func (m *CreateTask) XXX_Size() int
- func (m *CreateTask) XXX_Unmarshal(b []byte) error
- type DailyDoStatusRequest
- func (*DailyDoStatusRequest) Descriptor() ([]byte, []int)
- func (m *DailyDoStatusRequest) GetStatus() bool
- func (m *DailyDoStatusRequest) GetTaskId() string
- func (*DailyDoStatusRequest) ProtoMessage()
- func (m *DailyDoStatusRequest) Reset()
- func (m *DailyDoStatusRequest) String() string
- func (m *DailyDoStatusRequest) XXX_DiscardUnknown()
- func (m *DailyDoStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DailyDoStatusRequest) XXX_Merge(src proto.Message)
- func (m *DailyDoStatusRequest) XXX_Size() int
- func (m *DailyDoStatusRequest) XXX_Unmarshal(b []byte) error
- type Error
- func (*Error) Descriptor() ([]byte, []int)
- func (m *Error) GetCode() int32
- func (m *Error) GetDescription() string
- func (*Error) ProtoMessage()
- func (m *Error) Reset()
- func (m *Error) String() string
- func (m *Error) XXX_DiscardUnknown()
- func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Error) XXX_Merge(src proto.Message)
- func (m *Error) XXX_Size() int
- func (m *Error) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetErrors() []*Error
- func (m *Response) GetTask() *Task
- func (m *Response) GetTasks() []*Task
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type Task
- func (*Task) Descriptor() ([]byte, []int)
- func (m *Task) GetCompletedDate() int64
- func (m *Task) GetCreatedDate() int64
- func (m *Task) GetDailyDo() bool
- func (m *Task) GetDescription() string
- func (m *Task) GetId() string
- func (m *Task) GetTitle() string
- func (m *Task) GetUserId() string
- func (*Task) ProtoMessage()
- func (m *Task) Reset()
- func (m *Task) String() string
- func (m *Task) XXX_DiscardUnknown()
- func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Task) XXX_Merge(src proto.Message)
- func (m *Task) XXX_Size() int
- func (m *Task) XXX_Unmarshal(b []byte) error
- type TaskService
- func (h *TaskService) ChangeDailyDoStatus(ctx context.Context, in *DailyDoStatusRequest, out *Response) error
- func (h *TaskService) CompleteTask(ctx context.Context, in *CompleteTaskRequest, out *Response) error
- func (h *TaskService) Create(ctx context.Context, in *CreateTask, out *Response) error
- func (h *TaskService) Get(ctx context.Context, in *Request, out *Response) error
- func (h *TaskService) Update(ctx context.Context, in *UpdateTask, out *Response) error
- type TaskServiceClient
- type TaskServiceHandler
- type UpdateTask
- func (*UpdateTask) Descriptor() ([]byte, []int)
- func (m *UpdateTask) GetDescription() string
- func (m *UpdateTask) GetTaskId() string
- func (m *UpdateTask) GetTitle() string
- func (*UpdateTask) ProtoMessage()
- func (m *UpdateTask) Reset()
- func (m *UpdateTask) String() string
- func (m *UpdateTask) XXX_DiscardUnknown()
- func (m *UpdateTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateTask) XXX_Merge(src proto.Message)
- func (m *UpdateTask) XXX_Size() int
- func (m *UpdateTask) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTaskServiceHandler ¶
func RegisterTaskServiceHandler(s server.Server, hdlr TaskServiceHandler, opts ...server.HandlerOption)
Types ¶
type CompleteTaskRequest ¶
type CompleteTaskRequest struct { TaskId string `protobuf:"bytes,1,opt,name=taskId,proto3" json:"taskId,omitempty"` Completed bool `protobuf:"varint,2,opt,name=completed,proto3" json:"completed,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CompleteTaskRequest) Descriptor ¶
func (*CompleteTaskRequest) Descriptor() ([]byte, []int)
func (*CompleteTaskRequest) GetCompleted ¶
func (m *CompleteTaskRequest) GetCompleted() bool
func (*CompleteTaskRequest) GetTaskId ¶
func (m *CompleteTaskRequest) GetTaskId() string
func (*CompleteTaskRequest) ProtoMessage ¶
func (*CompleteTaskRequest) ProtoMessage()
func (*CompleteTaskRequest) Reset ¶
func (m *CompleteTaskRequest) Reset()
func (*CompleteTaskRequest) String ¶
func (m *CompleteTaskRequest) String() string
func (*CompleteTaskRequest) XXX_DiscardUnknown ¶
func (m *CompleteTaskRequest) XXX_DiscardUnknown()
func (*CompleteTaskRequest) XXX_Marshal ¶
func (m *CompleteTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CompleteTaskRequest) XXX_Merge ¶
func (m *CompleteTaskRequest) XXX_Merge(src proto.Message)
func (*CompleteTaskRequest) XXX_Size ¶
func (m *CompleteTaskRequest) XXX_Size() int
func (*CompleteTaskRequest) XXX_Unmarshal ¶
func (m *CompleteTaskRequest) XXX_Unmarshal(b []byte) error
type CreateTask ¶
type CreateTask struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` DailyDo bool `protobuf:"varint,3,opt,name=dailyDo,proto3" json:"dailyDo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateTask) Descriptor ¶
func (*CreateTask) Descriptor() ([]byte, []int)
func (*CreateTask) GetDailyDo ¶
func (m *CreateTask) GetDailyDo() bool
func (*CreateTask) GetDescription ¶
func (m *CreateTask) GetDescription() string
func (*CreateTask) GetTitle ¶
func (m *CreateTask) GetTitle() string
func (*CreateTask) ProtoMessage ¶
func (*CreateTask) ProtoMessage()
func (*CreateTask) Reset ¶
func (m *CreateTask) Reset()
func (*CreateTask) String ¶
func (m *CreateTask) String() string
func (*CreateTask) XXX_DiscardUnknown ¶
func (m *CreateTask) XXX_DiscardUnknown()
func (*CreateTask) XXX_Marshal ¶
func (m *CreateTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateTask) XXX_Merge ¶
func (m *CreateTask) XXX_Merge(src proto.Message)
func (*CreateTask) XXX_Size ¶
func (m *CreateTask) XXX_Size() int
func (*CreateTask) XXX_Unmarshal ¶
func (m *CreateTask) XXX_Unmarshal(b []byte) error
type DailyDoStatusRequest ¶
type DailyDoStatusRequest struct { TaskId string `protobuf:"bytes,1,opt,name=taskId,proto3" json:"taskId,omitempty"` Status bool `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DailyDoStatusRequest) Descriptor ¶
func (*DailyDoStatusRequest) Descriptor() ([]byte, []int)
func (*DailyDoStatusRequest) GetStatus ¶
func (m *DailyDoStatusRequest) GetStatus() bool
func (*DailyDoStatusRequest) GetTaskId ¶
func (m *DailyDoStatusRequest) GetTaskId() string
func (*DailyDoStatusRequest) ProtoMessage ¶
func (*DailyDoStatusRequest) ProtoMessage()
func (*DailyDoStatusRequest) Reset ¶
func (m *DailyDoStatusRequest) Reset()
func (*DailyDoStatusRequest) String ¶
func (m *DailyDoStatusRequest) String() string
func (*DailyDoStatusRequest) XXX_DiscardUnknown ¶
func (m *DailyDoStatusRequest) XXX_DiscardUnknown()
func (*DailyDoStatusRequest) XXX_Marshal ¶
func (m *DailyDoStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DailyDoStatusRequest) XXX_Merge ¶
func (m *DailyDoStatusRequest) XXX_Merge(src proto.Message)
func (*DailyDoStatusRequest) XXX_Size ¶
func (m *DailyDoStatusRequest) XXX_Size() int
func (*DailyDoStatusRequest) XXX_Unmarshal ¶
func (m *DailyDoStatusRequest) XXX_Unmarshal(b []byte) error
type Error ¶
type Error struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Error) Descriptor ¶
func (*Error) GetDescription ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) XXX_DiscardUnknown ¶
func (m *Error) XXX_DiscardUnknown()
func (*Error) XXX_Marshal ¶
func (*Error) XXX_Unmarshal ¶
type Request ¶
type Request struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` Tasks []*Task `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"` Errors []*Error `protobuf:"bytes,3,rep,name=errors,proto3" json:"errors,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type Task ¶
type Task struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` UserId string `protobuf:"bytes,4,opt,name=userId,proto3" json:"userId,omitempty"` CreatedDate int64 `protobuf:"varint,5,opt,name=createdDate,proto3" json:"createdDate,omitempty"` CompletedDate int64 `protobuf:"varint,6,opt,name=completedDate,proto3" json:"completedDate,omitempty"` DailyDo bool `protobuf:"varint,7,opt,name=dailyDo,proto3" json:"dailyDo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Task) Descriptor ¶
func (*Task) GetCompletedDate ¶
func (*Task) GetCreatedDate ¶
func (*Task) GetDailyDo ¶
func (*Task) GetDescription ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) XXX_DiscardUnknown ¶
func (m *Task) XXX_DiscardUnknown()
func (*Task) XXX_Unmarshal ¶
type TaskService ¶
type TaskService struct {
TaskServiceHandler
}
func (*TaskService) ChangeDailyDoStatus ¶
func (h *TaskService) ChangeDailyDoStatus(ctx context.Context, in *DailyDoStatusRequest, out *Response) error
func (*TaskService) CompleteTask ¶
func (h *TaskService) CompleteTask(ctx context.Context, in *CompleteTaskRequest, out *Response) error
func (*TaskService) Create ¶
func (h *TaskService) Create(ctx context.Context, in *CreateTask, out *Response) error
func (*TaskService) Update ¶
func (h *TaskService) Update(ctx context.Context, in *UpdateTask, out *Response) error
type TaskServiceClient ¶
type TaskServiceClient interface { Get(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) Create(ctx context.Context, in *CreateTask, opts ...client.CallOption) (*Response, error) Update(ctx context.Context, in *UpdateTask, opts ...client.CallOption) (*Response, error) ChangeDailyDoStatus(ctx context.Context, in *DailyDoStatusRequest, opts ...client.CallOption) (*Response, error) CompleteTask(ctx context.Context, in *CompleteTaskRequest, opts ...client.CallOption) (*Response, error) }
func NewTaskServiceClient ¶
func NewTaskServiceClient(serviceName string, c client.Client) TaskServiceClient
type TaskServiceHandler ¶
type TaskServiceHandler interface { Get(context.Context, *Request, *Response) error Create(context.Context, *CreateTask, *Response) error Update(context.Context, *UpdateTask, *Response) error ChangeDailyDoStatus(context.Context, *DailyDoStatusRequest, *Response) error CompleteTask(context.Context, *CompleteTaskRequest, *Response) error }
type UpdateTask ¶
type UpdateTask struct { TaskId string `protobuf:"bytes,1,opt,name=taskId,proto3" json:"taskId,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateTask) Descriptor ¶
func (*UpdateTask) Descriptor() ([]byte, []int)
func (*UpdateTask) GetDescription ¶
func (m *UpdateTask) GetDescription() string
func (*UpdateTask) GetTaskId ¶
func (m *UpdateTask) GetTaskId() string
func (*UpdateTask) GetTitle ¶
func (m *UpdateTask) GetTitle() string
func (*UpdateTask) ProtoMessage ¶
func (*UpdateTask) ProtoMessage()
func (*UpdateTask) Reset ¶
func (m *UpdateTask) Reset()
func (*UpdateTask) String ¶
func (m *UpdateTask) String() string
func (*UpdateTask) XXX_DiscardUnknown ¶
func (m *UpdateTask) XXX_DiscardUnknown()
func (*UpdateTask) XXX_Marshal ¶
func (m *UpdateTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateTask) XXX_Merge ¶
func (m *UpdateTask) XXX_Merge(src proto.Message)
func (*UpdateTask) XXX_Size ¶
func (m *UpdateTask) XXX_Size() int
func (*UpdateTask) XXX_Unmarshal ¶
func (m *UpdateTask) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.