task

package
v0.0.0-...-3ec158f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 Status

type Status int32
const (
	Status_UNKNOWN   Status = 0
	Status_WAITING   Status = 1
	Status_WORKING   Status = 2
	Status_COMPLETED Status = 3
)

func (Status) EnumDescriptor

func (Status) EnumDescriptor() ([]byte, []int)

func (Status) String

func (x Status) String() string

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) Descriptor() ([]byte, []int)

func (*Task) GetCreatedAt

func (m *Task) GetCreatedAt() *timestamp.Timestamp

func (*Task) GetId

func (m *Task) GetId() uint64

func (*Task) GetName

func (m *Task) GetName() string

func (*Task) GetProjectId

func (m *Task) GetProjectId() uint64

func (*Task) GetStatus

func (m *Task) GetStatus() Status

func (*Task) GetUpdatedAt

func (m *Task) GetUpdatedAt() *timestamp.Timestamp

func (*Task) GetUserId

func (m *Task) GetUserId() uint64

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) Reset

func (m *Task) Reset()

func (*Task) String

func (m *Task) String() string

func (*Task) XXX_DiscardUnknown

func (m *Task) XXX_DiscardUnknown()

func (*Task) XXX_Marshal

func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Task) XXX_Merge

func (m *Task) XXX_Merge(src proto.Message)

func (*Task) XXX_Size

func (m *Task) XXX_Size() int

func (*Task) XXX_Unmarshal

func (m *Task) XXX_Unmarshal(b []byte) error

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

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) FindProjectTasks

func (*UnimplementedTaskServiceServer) FindTasks

func (*UnimplementedTaskServiceServer) UpdateTask

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL