data

package
v0.0.0-...-d694966 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TaskStatus_name = map[int32]string{
	0: "Pending",
	1: "Progress",
	2: "Done",
	3: "Cancelled",
	4: "Deleted",
}
View Source
var TaskStatus_value = map[string]int32{
	"Pending":   0,
	"Progress":  1,
	"Done":      2,
	"Cancelled": 3,
	"Deleted":   4,
}

Functions

func RegisterTodoServiceServer

func RegisterTodoServiceServer(s *grpc.Server, srv TodoServiceServer)

func RegisterTrackerServiceServer

func RegisterTrackerServiceServer(s *grpc.Server, srv TrackerServiceServer)

Types

type DeleteTaskRequest

type DeleteTaskRequest struct {
	TaskId               string   `protobuf:"bytes,1,opt,name=taskId,proto3" json:"taskId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteTaskRequest) Descriptor

func (*DeleteTaskRequest) Descriptor() ([]byte, []int)

func (*DeleteTaskRequest) GetTaskId

func (m *DeleteTaskRequest) GetTaskId() string

func (*DeleteTaskRequest) ProtoMessage

func (*DeleteTaskRequest) ProtoMessage()

func (*DeleteTaskRequest) Reset

func (m *DeleteTaskRequest) Reset()

func (*DeleteTaskRequest) String

func (m *DeleteTaskRequest) String() string

func (*DeleteTaskRequest) XXX_DiscardUnknown

func (m *DeleteTaskRequest) XXX_DiscardUnknown()

func (*DeleteTaskRequest) XXX_Marshal

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

func (*DeleteTaskRequest) XXX_Merge

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

func (*DeleteTaskRequest) XXX_Size

func (m *DeleteTaskRequest) XXX_Size() int

func (*DeleteTaskRequest) XXX_Unmarshal

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

type DeleteTaskResponse

type DeleteTaskResponse struct {
	Item                 *Item    `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeleteTaskResponse) Descriptor

func (*DeleteTaskResponse) Descriptor() ([]byte, []int)

func (*DeleteTaskResponse) GetItem

func (m *DeleteTaskResponse) GetItem() *Item

func (*DeleteTaskResponse) ProtoMessage

func (*DeleteTaskResponse) ProtoMessage()

func (*DeleteTaskResponse) Reset

func (m *DeleteTaskResponse) Reset()

func (*DeleteTaskResponse) String

func (m *DeleteTaskResponse) String() string

func (*DeleteTaskResponse) XXX_DiscardUnknown

func (m *DeleteTaskResponse) XXX_DiscardUnknown()

func (*DeleteTaskResponse) XXX_Marshal

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

func (*DeleteTaskResponse) XXX_Merge

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

func (*DeleteTaskResponse) XXX_Size

func (m *DeleteTaskResponse) XXX_Size() int

func (*DeleteTaskResponse) XXX_Unmarshal

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

type Item

type Item struct {
	Owner                string   `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	Title                string   `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Tasks                []*Task  `protobuf:"bytes,3,rep,name=tasks,proto3" json:"tasks,omitempty"`
	Tags                 []string `protobuf:"bytes,4,rep,name=tags,proto3" json:"tags,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

TodoItem that includes multiple tasks

func (*Item) Descriptor

func (*Item) Descriptor() ([]byte, []int)

func (*Item) GetOwner

func (m *Item) GetOwner() string

func (*Item) GetTags

func (m *Item) GetTags() []string

func (*Item) GetTasks

func (m *Item) GetTasks() []*Task

func (*Item) GetTitle

func (m *Item) GetTitle() string

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) Reset

func (m *Item) Reset()

func (*Item) String

func (m *Item) String() string

func (*Item) XXX_DiscardUnknown

func (m *Item) XXX_DiscardUnknown()

func (*Item) XXX_Marshal

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

func (*Item) XXX_Merge

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

func (*Item) XXX_Size

func (m *Item) XXX_Size() int

func (*Item) XXX_Unmarshal

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

type SearchTaskRequest

type SearchTaskRequest struct {
	TaskId               string   `protobuf:"bytes,1,opt,name=taskId,proto3" json:"taskId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SearchTaskRequest) Descriptor

func (*SearchTaskRequest) Descriptor() ([]byte, []int)

func (*SearchTaskRequest) GetTaskId

func (m *SearchTaskRequest) GetTaskId() string

func (*SearchTaskRequest) ProtoMessage

func (*SearchTaskRequest) ProtoMessage()

func (*SearchTaskRequest) Reset

func (m *SearchTaskRequest) Reset()

func (*SearchTaskRequest) String

func (m *SearchTaskRequest) String() string

func (*SearchTaskRequest) XXX_DiscardUnknown

func (m *SearchTaskRequest) XXX_DiscardUnknown()

func (*SearchTaskRequest) XXX_Marshal

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

func (*SearchTaskRequest) XXX_Merge

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

func (*SearchTaskRequest) XXX_Size

func (m *SearchTaskRequest) XXX_Size() int

func (*SearchTaskRequest) XXX_Unmarshal

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

type SearchTaskResponse

type SearchTaskResponse struct {
	Item                 *Item    `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SearchTaskResponse) Descriptor

func (*SearchTaskResponse) Descriptor() ([]byte, []int)

func (*SearchTaskResponse) GetItem

func (m *SearchTaskResponse) GetItem() *Item

func (*SearchTaskResponse) ProtoMessage

func (*SearchTaskResponse) ProtoMessage()

func (*SearchTaskResponse) Reset

func (m *SearchTaskResponse) Reset()

func (*SearchTaskResponse) String

func (m *SearchTaskResponse) String() string

func (*SearchTaskResponse) XXX_DiscardUnknown

func (m *SearchTaskResponse) XXX_DiscardUnknown()

func (*SearchTaskResponse) XXX_Marshal

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

func (*SearchTaskResponse) XXX_Merge

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

func (*SearchTaskResponse) XXX_Size

func (m *SearchTaskResponse) XXX_Size() int

func (*SearchTaskResponse) XXX_Unmarshal

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

type Task

type Task struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ParentId    string `protobuf:"bytes,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Refer to TaskStatus
	Status               string               `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	Tags                 []string             `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"`
	Created              *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"`
	LastUpdated          *timestamp.Timestamp `protobuf:"bytes,7,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Task

func (*Task) Descriptor

func (*Task) Descriptor() ([]byte, []int)

func (*Task) GetCreated

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

func (*Task) GetDescription

func (m *Task) GetDescription() string

func (*Task) GetId

func (m *Task) GetId() string

func (*Task) GetLastUpdated

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

func (*Task) GetParentId

func (m *Task) GetParentId() string

func (*Task) GetStatus

func (m *Task) GetStatus() string

func (*Task) GetTags

func (m *Task) GetTags() []string

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 TaskChange

type TaskChange struct {
	TaskId               string               `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	Owner                string               `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	Title                string               `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Description          string               `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	ParentTaskId         string               `protobuf:"bytes,5,opt,name=parent_task_id,json=parentTaskId,proto3" json:"parent_task_id,omitempty"`
	PreviousStatus       string               `protobuf:"bytes,6,opt,name=previous_status,json=previousStatus,proto3" json:"previous_status,omitempty"`
	AfterStatus          string               `protobuf:"bytes,7,opt,name=after_status,json=afterStatus,proto3" json:"after_status,omitempty"`
	Updated              *timestamp.Timestamp `protobuf:"bytes,8,opt,name=updated,proto3" json:"updated,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Task change record

func (*TaskChange) Descriptor

func (*TaskChange) Descriptor() ([]byte, []int)

func (*TaskChange) GetAfterStatus

func (m *TaskChange) GetAfterStatus() string

func (*TaskChange) GetDescription

func (m *TaskChange) GetDescription() string

func (*TaskChange) GetOwner

func (m *TaskChange) GetOwner() string

func (*TaskChange) GetParentTaskId

func (m *TaskChange) GetParentTaskId() string

func (*TaskChange) GetPreviousStatus

func (m *TaskChange) GetPreviousStatus() string

func (*TaskChange) GetTaskId

func (m *TaskChange) GetTaskId() string

func (*TaskChange) GetTitle

func (m *TaskChange) GetTitle() string

func (*TaskChange) GetUpdated

func (m *TaskChange) GetUpdated() *timestamp.Timestamp

func (*TaskChange) ProtoMessage

func (*TaskChange) ProtoMessage()

func (*TaskChange) Reset

func (m *TaskChange) Reset()

func (*TaskChange) String

func (m *TaskChange) String() string

func (*TaskChange) XXX_DiscardUnknown

func (m *TaskChange) XXX_DiscardUnknown()

func (*TaskChange) XXX_Marshal

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

func (*TaskChange) XXX_Merge

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

func (*TaskChange) XXX_Size

func (m *TaskChange) XXX_Size() int

func (*TaskChange) XXX_Unmarshal

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

type TaskChangeRequest

type TaskChangeRequest struct {
	TaskChange           *TaskChange `protobuf:"bytes,1,opt,name=taskChange,proto3" json:"taskChange,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*TaskChangeRequest) Descriptor

func (*TaskChangeRequest) Descriptor() ([]byte, []int)

func (*TaskChangeRequest) GetTaskChange

func (m *TaskChangeRequest) GetTaskChange() *TaskChange

func (*TaskChangeRequest) ProtoMessage

func (*TaskChangeRequest) ProtoMessage()

func (*TaskChangeRequest) Reset

func (m *TaskChangeRequest) Reset()

func (*TaskChangeRequest) String

func (m *TaskChangeRequest) String() string

func (*TaskChangeRequest) XXX_DiscardUnknown

func (m *TaskChangeRequest) XXX_DiscardUnknown()

func (*TaskChangeRequest) XXX_Marshal

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

func (*TaskChangeRequest) XXX_Merge

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

func (*TaskChangeRequest) XXX_Size

func (m *TaskChangeRequest) XXX_Size() int

func (*TaskChangeRequest) XXX_Unmarshal

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

type TaskChangeResponse

type TaskChangeResponse struct {
	TaskChange           *TaskChange `protobuf:"bytes,1,opt,name=taskChange,proto3" json:"taskChange,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*TaskChangeResponse) Descriptor

func (*TaskChangeResponse) Descriptor() ([]byte, []int)

func (*TaskChangeResponse) GetTaskChange

func (m *TaskChangeResponse) GetTaskChange() *TaskChange

func (*TaskChangeResponse) ProtoMessage

func (*TaskChangeResponse) ProtoMessage()

func (*TaskChangeResponse) Reset

func (m *TaskChangeResponse) Reset()

func (*TaskChangeResponse) String

func (m *TaskChangeResponse) String() string

func (*TaskChangeResponse) XXX_DiscardUnknown

func (m *TaskChangeResponse) XXX_DiscardUnknown()

func (*TaskChangeResponse) XXX_Marshal

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

func (*TaskChangeResponse) XXX_Merge

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

func (*TaskChangeResponse) XXX_Size

func (m *TaskChangeResponse) XXX_Size() int

func (*TaskChangeResponse) XXX_Unmarshal

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

type TaskStatus

type TaskStatus int32
const (
	TaskStatus_Pending   TaskStatus = 0
	TaskStatus_Progress  TaskStatus = 1
	TaskStatus_Done      TaskStatus = 2
	TaskStatus_Cancelled TaskStatus = 3
	TaskStatus_Deleted   TaskStatus = 4
)

func (TaskStatus) EnumDescriptor

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

func (TaskStatus) String

func (x TaskStatus) String() string

type TodoServiceClient

type TodoServiceClient interface {
	SearchTaskById(ctx context.Context, in *SearchTaskRequest, opts ...grpc.CallOption) (*Item, error)
	DeleteTaskById(ctx context.Context, in *DeleteTaskRequest, opts ...grpc.CallOption) (*Item, error)
}

TodoServiceClient is the client API for TodoService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTodoServiceClient

func NewTodoServiceClient(cc *grpc.ClientConn) TodoServiceClient

type TodoServiceServer

type TodoServiceServer interface {
	SearchTaskById(context.Context, *SearchTaskRequest) (*Item, error)
	DeleteTaskById(context.Context, *DeleteTaskRequest) (*Item, error)
}

TodoServiceServer is the server API for TodoService service.

type TrackerServiceClient

type TrackerServiceClient interface {
	SaveTaskChange(ctx context.Context, in *TaskChangeRequest, opts ...grpc.CallOption) (*TaskChangeResponse, error)
}

TrackerServiceClient is the client API for TrackerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTrackerServiceClient

func NewTrackerServiceClient(cc *grpc.ClientConn) TrackerServiceClient

type TrackerServiceServer

type TrackerServiceServer interface {
	SaveTaskChange(context.Context, *TaskChangeRequest) (*TaskChangeResponse, error)
}

TrackerServiceServer is the server API for TrackerService service.

type UnimplementedTodoServiceServer

type UnimplementedTodoServiceServer struct {
}

UnimplementedTodoServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTodoServiceServer) DeleteTaskById

func (*UnimplementedTodoServiceServer) SearchTaskById

type UnimplementedTrackerServiceServer

type UnimplementedTrackerServiceServer struct {
}

UnimplementedTrackerServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTrackerServiceServer) SaveTaskChange

Jump to

Keyboard shortcuts

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