Documentation ¶
Index ¶
- Variables
- func RegisterTaskServiceServer(s *grpc.Server, srv TaskServiceServer)
- type CreateTaskRequest
- func (*CreateTaskRequest) Descriptor() ([]byte, []int)
- func (m *CreateTaskRequest) GetName() string
- func (m *CreateTaskRequest) GetProjectId() uint64
- func (*CreateTaskRequest) ProtoMessage()
- func (m *CreateTaskRequest) Reset()
- func (m *CreateTaskRequest) String() string
- func (m *CreateTaskRequest) XXX_DiscardUnknown()
- func (m *CreateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateTaskRequest) XXX_Merge(src proto.Message)
- func (m *CreateTaskRequest) XXX_Size() int
- func (m *CreateTaskRequest) XXX_Unmarshal(b []byte) error
- type CreateTaskResponse
- func (*CreateTaskResponse) Descriptor() ([]byte, []int)
- func (m *CreateTaskResponse) GetTask() *Task
- func (*CreateTaskResponse) ProtoMessage()
- func (m *CreateTaskResponse) Reset()
- func (m *CreateTaskResponse) String() string
- func (m *CreateTaskResponse) XXX_DiscardUnknown()
- func (m *CreateTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateTaskResponse) XXX_Merge(src proto.Message)
- func (m *CreateTaskResponse) XXX_Size() int
- func (m *CreateTaskResponse) XXX_Unmarshal(b []byte) error
- type FindProjectTasksRequest
- func (*FindProjectTasksRequest) Descriptor() ([]byte, []int)
- func (m *FindProjectTasksRequest) GetProjectId() uint64
- func (*FindProjectTasksRequest) ProtoMessage()
- func (m *FindProjectTasksRequest) Reset()
- func (m *FindProjectTasksRequest) String() string
- func (m *FindProjectTasksRequest) XXX_DiscardUnknown()
- func (m *FindProjectTasksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FindProjectTasksRequest) XXX_Merge(src proto.Message)
- func (m *FindProjectTasksRequest) XXX_Size() int
- func (m *FindProjectTasksRequest) XXX_Unmarshal(b []byte) error
- type FindProjectTasksResponse
- func (*FindProjectTasksResponse) Descriptor() ([]byte, []int)
- func (m *FindProjectTasksResponse) GetTasks() []*Task
- func (*FindProjectTasksResponse) ProtoMessage()
- func (m *FindProjectTasksResponse) Reset()
- func (m *FindProjectTasksResponse) String() string
- func (m *FindProjectTasksResponse) XXX_DiscardUnknown()
- func (m *FindProjectTasksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FindProjectTasksResponse) XXX_Merge(src proto.Message)
- func (m *FindProjectTasksResponse) XXX_Size() int
- func (m *FindProjectTasksResponse) XXX_Unmarshal(b []byte) error
- type FindTasksResponse
- func (*FindTasksResponse) Descriptor() ([]byte, []int)
- func (m *FindTasksResponse) GetTasks() []*Task
- func (*FindTasksResponse) ProtoMessage()
- func (m *FindTasksResponse) Reset()
- func (m *FindTasksResponse) String() string
- func (m *FindTasksResponse) XXX_DiscardUnknown()
- func (m *FindTasksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FindTasksResponse) XXX_Merge(src proto.Message)
- func (m *FindTasksResponse) XXX_Size() int
- func (m *FindTasksResponse) XXX_Unmarshal(b []byte) error
- type Status
- type Task
- func (*Task) Descriptor() ([]byte, []int)
- func (m *Task) GetCreatedAt() *timestamp.Timestamp
- func (m *Task) GetId() uint64
- func (m *Task) GetName() string
- func (m *Task) GetProjectId() uint64
- func (m *Task) GetStatus() Status
- func (m *Task) GetUpdatedAt() *timestamp.Timestamp
- func (m *Task) GetUserId() uint64
- 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 TaskServiceClient
- type TaskServiceServer
- type UnimplementedTaskServiceServer
- func (*UnimplementedTaskServiceServer) CreateTask(ctx context.Context, req *CreateTaskRequest) (*CreateTaskResponse, error)
- func (*UnimplementedTaskServiceServer) FindProjectTasks(ctx context.Context, req *FindProjectTasksRequest) (*FindProjectTasksResponse, error)
- func (*UnimplementedTaskServiceServer) FindTasks(ctx context.Context, req *empty.Empty) (*FindTasksResponse, error)
- func (*UnimplementedTaskServiceServer) UpdateTask(ctx context.Context, req *UpdateTaskRequest) (*UpdateTaskResponse, error)
- type UpdateTaskRequest
- func (*UpdateTaskRequest) Descriptor() ([]byte, []int)
- func (m *UpdateTaskRequest) GetName() string
- func (m *UpdateTaskRequest) GetStatus() Status
- func (m *UpdateTaskRequest) GetTaskId() uint64
- func (*UpdateTaskRequest) ProtoMessage()
- func (m *UpdateTaskRequest) Reset()
- func (m *UpdateTaskRequest) String() string
- func (m *UpdateTaskRequest) XXX_DiscardUnknown()
- func (m *UpdateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateTaskRequest) XXX_Merge(src proto.Message)
- func (m *UpdateTaskRequest) XXX_Size() int
- func (m *UpdateTaskRequest) XXX_Unmarshal(b []byte) error
- type UpdateTaskResponse
- func (*UpdateTaskResponse) Descriptor() ([]byte, []int)
- func (m *UpdateTaskResponse) GetTask() *Task
- func (*UpdateTaskResponse) ProtoMessage()
- func (m *UpdateTaskResponse) Reset()
- func (m *UpdateTaskResponse) String() string
- func (m *UpdateTaskResponse) XXX_DiscardUnknown()
- func (m *UpdateTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateTaskResponse) XXX_Merge(src proto.Message)
- func (m *UpdateTaskResponse) XXX_Size() int
- func (m *UpdateTaskResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Status_name = map[int32]string{
0: "UNKNOWN",
1: "WAITING",
2: "WORKING",
3: "COMPLETED",
}
View Source
var Status_value = map[string]int32{
"UNKNOWN": 0,
"WAITING": 1,
"WORKING": 2,
"COMPLETED": 3,
}
Functions ¶
func RegisterTaskServiceServer ¶
func RegisterTaskServiceServer(s *grpc.Server, srv TaskServiceServer)
Types ¶
type CreateTaskRequest ¶
type CreateTaskRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ProjectId uint64 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateTaskRequest) Descriptor ¶
func (*CreateTaskRequest) Descriptor() ([]byte, []int)
func (*CreateTaskRequest) GetName ¶
func (m *CreateTaskRequest) GetName() string
func (*CreateTaskRequest) GetProjectId ¶
func (m *CreateTaskRequest) GetProjectId() uint64
func (*CreateTaskRequest) ProtoMessage ¶
func (*CreateTaskRequest) ProtoMessage()
func (*CreateTaskRequest) Reset ¶
func (m *CreateTaskRequest) Reset()
func (*CreateTaskRequest) String ¶
func (m *CreateTaskRequest) String() string
func (*CreateTaskRequest) XXX_DiscardUnknown ¶
func (m *CreateTaskRequest) XXX_DiscardUnknown()
func (*CreateTaskRequest) XXX_Marshal ¶
func (m *CreateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateTaskRequest) XXX_Merge ¶
func (m *CreateTaskRequest) XXX_Merge(src proto.Message)
func (*CreateTaskRequest) XXX_Size ¶
func (m *CreateTaskRequest) XXX_Size() int
func (*CreateTaskRequest) XXX_Unmarshal ¶
func (m *CreateTaskRequest) XXX_Unmarshal(b []byte) error
type CreateTaskResponse ¶
type CreateTaskResponse struct { Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateTaskResponse) Descriptor ¶
func (*CreateTaskResponse) Descriptor() ([]byte, []int)
func (*CreateTaskResponse) GetTask ¶
func (m *CreateTaskResponse) GetTask() *Task
func (*CreateTaskResponse) ProtoMessage ¶
func (*CreateTaskResponse) ProtoMessage()
func (*CreateTaskResponse) Reset ¶
func (m *CreateTaskResponse) Reset()
func (*CreateTaskResponse) String ¶
func (m *CreateTaskResponse) String() string
func (*CreateTaskResponse) XXX_DiscardUnknown ¶
func (m *CreateTaskResponse) XXX_DiscardUnknown()
func (*CreateTaskResponse) XXX_Marshal ¶
func (m *CreateTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateTaskResponse) XXX_Merge ¶
func (m *CreateTaskResponse) XXX_Merge(src proto.Message)
func (*CreateTaskResponse) XXX_Size ¶
func (m *CreateTaskResponse) XXX_Size() int
func (*CreateTaskResponse) XXX_Unmarshal ¶
func (m *CreateTaskResponse) XXX_Unmarshal(b []byte) error
type FindProjectTasksRequest ¶
type FindProjectTasksRequest struct { ProjectId uint64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FindProjectTasksRequest) Descriptor ¶
func (*FindProjectTasksRequest) Descriptor() ([]byte, []int)
func (*FindProjectTasksRequest) GetProjectId ¶
func (m *FindProjectTasksRequest) GetProjectId() uint64
func (*FindProjectTasksRequest) ProtoMessage ¶
func (*FindProjectTasksRequest) ProtoMessage()
func (*FindProjectTasksRequest) Reset ¶
func (m *FindProjectTasksRequest) Reset()
func (*FindProjectTasksRequest) String ¶
func (m *FindProjectTasksRequest) String() string
func (*FindProjectTasksRequest) XXX_DiscardUnknown ¶
func (m *FindProjectTasksRequest) XXX_DiscardUnknown()
func (*FindProjectTasksRequest) XXX_Marshal ¶
func (m *FindProjectTasksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FindProjectTasksRequest) XXX_Merge ¶
func (m *FindProjectTasksRequest) XXX_Merge(src proto.Message)
func (*FindProjectTasksRequest) XXX_Size ¶
func (m *FindProjectTasksRequest) XXX_Size() int
func (*FindProjectTasksRequest) XXX_Unmarshal ¶
func (m *FindProjectTasksRequest) XXX_Unmarshal(b []byte) error
type FindProjectTasksResponse ¶
type FindProjectTasksResponse struct { Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FindProjectTasksResponse) Descriptor ¶
func (*FindProjectTasksResponse) Descriptor() ([]byte, []int)
func (*FindProjectTasksResponse) GetTasks ¶
func (m *FindProjectTasksResponse) GetTasks() []*Task
func (*FindProjectTasksResponse) ProtoMessage ¶
func (*FindProjectTasksResponse) ProtoMessage()
func (*FindProjectTasksResponse) Reset ¶
func (m *FindProjectTasksResponse) Reset()
func (*FindProjectTasksResponse) String ¶
func (m *FindProjectTasksResponse) String() string
func (*FindProjectTasksResponse) XXX_DiscardUnknown ¶
func (m *FindProjectTasksResponse) XXX_DiscardUnknown()
func (*FindProjectTasksResponse) XXX_Marshal ¶
func (m *FindProjectTasksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FindProjectTasksResponse) XXX_Merge ¶
func (m *FindProjectTasksResponse) XXX_Merge(src proto.Message)
func (*FindProjectTasksResponse) XXX_Size ¶
func (m *FindProjectTasksResponse) XXX_Size() int
func (*FindProjectTasksResponse) XXX_Unmarshal ¶
func (m *FindProjectTasksResponse) XXX_Unmarshal(b []byte) error
type FindTasksResponse ¶
type FindTasksResponse struct { Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*FindTasksResponse) Descriptor ¶
func (*FindTasksResponse) Descriptor() ([]byte, []int)
func (*FindTasksResponse) GetTasks ¶
func (m *FindTasksResponse) GetTasks() []*Task
func (*FindTasksResponse) ProtoMessage ¶
func (*FindTasksResponse) ProtoMessage()
func (*FindTasksResponse) Reset ¶
func (m *FindTasksResponse) Reset()
func (*FindTasksResponse) String ¶
func (m *FindTasksResponse) String() string
func (*FindTasksResponse) XXX_DiscardUnknown ¶
func (m *FindTasksResponse) XXX_DiscardUnknown()
func (*FindTasksResponse) XXX_Marshal ¶
func (m *FindTasksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FindTasksResponse) XXX_Merge ¶
func (m *FindTasksResponse) XXX_Merge(src proto.Message)
func (*FindTasksResponse) XXX_Size ¶
func (m *FindTasksResponse) XXX_Size() int
func (*FindTasksResponse) XXX_Unmarshal ¶
func (m *FindTasksResponse) XXX_Unmarshal(b []byte) error
type Task ¶
type Task struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=task.Status" json:"status,omitempty"` ProjectId uint64 `protobuf:"varint,4,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` UserId uint64 `protobuf:"varint,5,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Task) Descriptor ¶
func (*Task) GetCreatedAt ¶
func (*Task) GetProjectId ¶
func (*Task) GetUpdatedAt ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) XXX_DiscardUnknown ¶
func (m *Task) XXX_DiscardUnknown()
func (*Task) XXX_Unmarshal ¶
type TaskServiceClient ¶
type TaskServiceClient interface { CreateTask(ctx context.Context, in *CreateTaskRequest, opts ...grpc.CallOption) (*CreateTaskResponse, error) FindTasks(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*FindTasksResponse, error) FindProjectTasks(ctx context.Context, in *FindProjectTasksRequest, opts ...grpc.CallOption) (*FindProjectTasksResponse, error) UpdateTask(ctx context.Context, in *UpdateTaskRequest, opts ...grpc.CallOption) (*UpdateTaskResponse, error) }
TaskServiceClient is the client API for TaskService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTaskServiceClient ¶
func NewTaskServiceClient(cc *grpc.ClientConn) TaskServiceClient
type TaskServiceServer ¶
type TaskServiceServer interface { CreateTask(context.Context, *CreateTaskRequest) (*CreateTaskResponse, error) FindTasks(context.Context, *empty.Empty) (*FindTasksResponse, error) FindProjectTasks(context.Context, *FindProjectTasksRequest) (*FindProjectTasksResponse, error) UpdateTask(context.Context, *UpdateTaskRequest) (*UpdateTaskResponse, error) }
TaskServiceServer is the server API for TaskService service.
type UnimplementedTaskServiceServer ¶
type UnimplementedTaskServiceServer struct { }
UnimplementedTaskServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedTaskServiceServer) CreateTask ¶
func (*UnimplementedTaskServiceServer) CreateTask(ctx context.Context, req *CreateTaskRequest) (*CreateTaskResponse, error)
func (*UnimplementedTaskServiceServer) FindProjectTasks ¶
func (*UnimplementedTaskServiceServer) FindProjectTasks(ctx context.Context, req *FindProjectTasksRequest) (*FindProjectTasksResponse, error)
func (*UnimplementedTaskServiceServer) FindTasks ¶
func (*UnimplementedTaskServiceServer) FindTasks(ctx context.Context, req *empty.Empty) (*FindTasksResponse, error)
func (*UnimplementedTaskServiceServer) UpdateTask ¶
func (*UnimplementedTaskServiceServer) UpdateTask(ctx context.Context, req *UpdateTaskRequest) (*UpdateTaskResponse, error)
type UpdateTaskRequest ¶
type UpdateTaskRequest struct { TaskId uint64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=task.Status" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateTaskRequest) Descriptor ¶
func (*UpdateTaskRequest) Descriptor() ([]byte, []int)
func (*UpdateTaskRequest) GetName ¶
func (m *UpdateTaskRequest) GetName() string
func (*UpdateTaskRequest) GetStatus ¶
func (m *UpdateTaskRequest) GetStatus() Status
func (*UpdateTaskRequest) GetTaskId ¶
func (m *UpdateTaskRequest) GetTaskId() uint64
func (*UpdateTaskRequest) ProtoMessage ¶
func (*UpdateTaskRequest) ProtoMessage()
func (*UpdateTaskRequest) Reset ¶
func (m *UpdateTaskRequest) Reset()
func (*UpdateTaskRequest) String ¶
func (m *UpdateTaskRequest) String() string
func (*UpdateTaskRequest) XXX_DiscardUnknown ¶
func (m *UpdateTaskRequest) XXX_DiscardUnknown()
func (*UpdateTaskRequest) XXX_Marshal ¶
func (m *UpdateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateTaskRequest) XXX_Merge ¶
func (m *UpdateTaskRequest) XXX_Merge(src proto.Message)
func (*UpdateTaskRequest) XXX_Size ¶
func (m *UpdateTaskRequest) XXX_Size() int
func (*UpdateTaskRequest) XXX_Unmarshal ¶
func (m *UpdateTaskRequest) XXX_Unmarshal(b []byte) error
type UpdateTaskResponse ¶
type UpdateTaskResponse struct { Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateTaskResponse) Descriptor ¶
func (*UpdateTaskResponse) Descriptor() ([]byte, []int)
func (*UpdateTaskResponse) GetTask ¶
func (m *UpdateTaskResponse) GetTask() *Task
func (*UpdateTaskResponse) ProtoMessage ¶
func (*UpdateTaskResponse) ProtoMessage()
func (*UpdateTaskResponse) Reset ¶
func (m *UpdateTaskResponse) Reset()
func (*UpdateTaskResponse) String ¶
func (m *UpdateTaskResponse) String() string
func (*UpdateTaskResponse) XXX_DiscardUnknown ¶
func (m *UpdateTaskResponse) XXX_DiscardUnknown()
func (*UpdateTaskResponse) XXX_Marshal ¶
func (m *UpdateTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateTaskResponse) XXX_Merge ¶
func (m *UpdateTaskResponse) XXX_Merge(src proto.Message)
func (*UpdateTaskResponse) XXX_Size ¶
func (m *UpdateTaskResponse) XXX_Size() int
func (*UpdateTaskResponse) XXX_Unmarshal ¶
func (m *UpdateTaskResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.