todoist

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CreateActivityRequest_Action_name = map[int32]string{
		0: "ACTION_UNSPECIFIED",
		1: "ADDED",
		2: "CHANGED",
	}
	CreateActivityRequest_Action_value = map[string]int32{
		"ACTION_UNSPECIFIED": 0,
		"ADDED":              1,
		"CHANGED":            2,
	}
)

Enum value maps for CreateActivityRequest_Action.

View Source
var ActivityService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "todoist.v1.ActivityService",
	HandlerType: (*ActivityServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateActivity",
			Handler:    _ActivityService_CreateActivity_Handler,
		},
		{
			MethodName: "ListActivities",
			Handler:    _ActivityService_ListActivities_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "todoist/v1/activity.proto",
}

ActivityService_ServiceDesc is the grpc.ServiceDesc for ActivityService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var CommentService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "todoist.v1.CommentService",
	HandlerType: (*CommentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateComment",
			Handler:    _CommentService_CreateComment_Handler,
		},
		{
			MethodName: "DeleteComment",
			Handler:    _CommentService_DeleteComment_Handler,
		},
		{
			MethodName: "ListComments",
			Handler:    _CommentService_ListComments_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "todoist/v1/comment.proto",
}

CommentService_ServiceDesc is the grpc.ServiceDesc for CommentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_todoist_v1_activity_proto protoreflect.FileDescriptor
View Source
var File_todoist_v1_comment_proto protoreflect.FileDescriptor
View Source
var File_todoist_v1_project_proto protoreflect.FileDescriptor
View Source
var File_todoist_v1_task_proto protoreflect.FileDescriptor
View Source
var ProjectService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "todoist.v1.ProjectService",
	HandlerType: (*ProjectServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListProjects",
			Handler:    _ProjectService_ListProjects_Handler,
		},
		{
			MethodName: "GetProject",
			Handler:    _ProjectService_GetProject_Handler,
		},
		{
			MethodName: "CreateProject",
			Handler:    _ProjectService_CreateProject_Handler,
		},
		{
			MethodName: "UpdateProject",
			Handler:    _ProjectService_UpdateProject_Handler,
		},
		{
			MethodName: "DeleteProject",
			Handler:    _ProjectService_DeleteProject_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "todoist/v1/project.proto",
}

ProjectService_ServiceDesc is the grpc.ServiceDesc for ProjectService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var TaskService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "todoist.v1.TaskService",
	HandlerType: (*TaskServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateTask",
			Handler:    _TaskService_CreateTask_Handler,
		},
		{
			MethodName: "ListTasks",
			Handler:    _TaskService_ListTasks_Handler,
		},
		{
			MethodName: "GetTask",
			Handler:    _TaskService_GetTask_Handler,
		},
		{
			MethodName: "SetTaskDone",
			Handler:    _TaskService_SetTaskDone_Handler,
		},
		{
			MethodName: "UpdateTask",
			Handler:    _TaskService_UpdateTask_Handler,
		},
		{
			MethodName: "DeleteTask",
			Handler:    _TaskService_DeleteTask_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "todoist/v1/task.proto",
}

TaskService_ServiceDesc is the grpc.ServiceDesc for TaskService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterActivityServiceServer

func RegisterActivityServiceServer(s grpc.ServiceRegistrar, srv ActivityServiceServer)

func RegisterCommentServiceServer

func RegisterCommentServiceServer(s grpc.ServiceRegistrar, srv CommentServiceServer)

func RegisterProjectServiceServer

func RegisterProjectServiceServer(s grpc.ServiceRegistrar, srv ProjectServiceServer)

func RegisterTaskServiceServer

func RegisterTaskServiceServer(s grpc.ServiceRegistrar, srv TaskServiceServer)

Types

type Activity

type Activity struct {
	Id        int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Data      string `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	CreatedAt string `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Activity) Descriptor deprecated

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

Deprecated: Use Activity.ProtoReflect.Descriptor instead.

func (*Activity) GetCreatedAt

func (x *Activity) GetCreatedAt() string

func (*Activity) GetData

func (x *Activity) GetData() string

func (*Activity) GetId

func (x *Activity) GetId() int64

func (*Activity) ProtoMessage

func (*Activity) ProtoMessage()

func (*Activity) ProtoReflect

func (x *Activity) ProtoReflect() protoreflect.Message

func (*Activity) Reset

func (x *Activity) Reset()

func (*Activity) String

func (x *Activity) String() string

type ActivityServiceClient

type ActivityServiceClient interface {
	CreateActivity(ctx context.Context, in *CreateActivityRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ListActivities(ctx context.Context, in *ListActivitiesRequest, opts ...grpc.CallOption) (*ListActivitiesResponse, error)
}

ActivityServiceClient is the client API for ActivityService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ActivityServiceServer

type ActivityServiceServer interface {
	CreateActivity(context.Context, *CreateActivityRequest) (*emptypb.Empty, error)
	ListActivities(context.Context, *ListActivitiesRequest) (*ListActivitiesResponse, error)
}

ActivityServiceServer is the server API for ActivityService service. All implementations should embed UnimplementedActivityServiceServer for forward compatibility

type Comment

type Comment struct {
	Id        int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Text      string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	CreatedAt string `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Comment) Descriptor deprecated

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

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) GetCreatedAt

func (x *Comment) GetCreatedAt() string

func (*Comment) GetId

func (x *Comment) GetId() int64

func (*Comment) GetText

func (x *Comment) GetText() string

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) ProtoReflect

func (x *Comment) ProtoReflect() protoreflect.Message

func (*Comment) Reset

func (x *Comment) Reset()

func (*Comment) String

func (x *Comment) String() string

type CommentServiceClient

type CommentServiceClient interface {
	CreateComment(ctx context.Context, in *CreateCommentRequest, opts ...grpc.CallOption) (*Comment, error)
	DeleteComment(ctx context.Context, in *DeleteCommentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	ListComments(ctx context.Context, in *ListCommentsRequest, opts ...grpc.CallOption) (*ListCommentsResponse, error)
}

CommentServiceClient is the client API for CommentService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type CommentServiceServer

type CommentServiceServer interface {
	CreateComment(context.Context, *CreateCommentRequest) (*Comment, error)
	DeleteComment(context.Context, *DeleteCommentRequest) (*emptypb.Empty, error)
	ListComments(context.Context, *ListCommentsRequest) (*ListCommentsResponse, error)
}

CommentServiceServer is the server API for CommentService service. All implementations should embed UnimplementedCommentServiceServer for forward compatibility

type CreateActivityRequest

type CreateActivityRequest struct {
	TaskId int64                        `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	Action CreateActivityRequest_Action `protobuf:"varint,3,opt,name=action,proto3,enum=todoist.v1.CreateActivityRequest_Action" json:"action,omitempty"`
	Data   string                       `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateActivityRequest) Descriptor deprecated

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

Deprecated: Use CreateActivityRequest.ProtoReflect.Descriptor instead.

func (*CreateActivityRequest) GetAction

func (*CreateActivityRequest) GetData

func (x *CreateActivityRequest) GetData() string

func (*CreateActivityRequest) GetTaskId

func (x *CreateActivityRequest) GetTaskId() int64

func (*CreateActivityRequest) ProtoMessage

func (*CreateActivityRequest) ProtoMessage()

func (*CreateActivityRequest) ProtoReflect

func (x *CreateActivityRequest) ProtoReflect() protoreflect.Message

func (*CreateActivityRequest) Reset

func (x *CreateActivityRequest) Reset()

func (*CreateActivityRequest) String

func (x *CreateActivityRequest) String() string

type CreateActivityRequest_Action

type CreateActivityRequest_Action int32
const (
	CreateActivityRequest_ACTION_UNSPECIFIED CreateActivityRequest_Action = 0
	CreateActivityRequest_ADDED              CreateActivityRequest_Action = 1
	CreateActivityRequest_CHANGED            CreateActivityRequest_Action = 2
)

func (CreateActivityRequest_Action) Descriptor

func (CreateActivityRequest_Action) Enum

func (CreateActivityRequest_Action) EnumDescriptor deprecated

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

Deprecated: Use CreateActivityRequest_Action.Descriptor instead.

func (CreateActivityRequest_Action) Number

func (CreateActivityRequest_Action) String

func (CreateActivityRequest_Action) Type

type CreateCommentRequest

type CreateCommentRequest struct {
	TaskId int64  `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	Text   string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCommentRequest) Descriptor deprecated

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

Deprecated: Use CreateCommentRequest.ProtoReflect.Descriptor instead.

func (*CreateCommentRequest) GetTaskId

func (x *CreateCommentRequest) GetTaskId() int64

func (*CreateCommentRequest) GetText

func (x *CreateCommentRequest) GetText() string

func (*CreateCommentRequest) ProtoMessage

func (*CreateCommentRequest) ProtoMessage()

func (*CreateCommentRequest) ProtoReflect

func (x *CreateCommentRequest) ProtoReflect() protoreflect.Message

func (*CreateCommentRequest) Reset

func (x *CreateCommentRequest) Reset()

func (*CreateCommentRequest) String

func (x *CreateCommentRequest) String() string

type CreateProjectRequest

type CreateProjectRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateProjectRequest) Descriptor deprecated

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

Deprecated: Use CreateProjectRequest.ProtoReflect.Descriptor instead.

func (*CreateProjectRequest) GetName

func (x *CreateProjectRequest) GetName() string

func (*CreateProjectRequest) ProtoMessage

func (*CreateProjectRequest) ProtoMessage()

func (*CreateProjectRequest) ProtoReflect

func (x *CreateProjectRequest) ProtoReflect() protoreflect.Message

func (*CreateProjectRequest) Reset

func (x *CreateProjectRequest) Reset()

func (*CreateProjectRequest) String

func (x *CreateProjectRequest) String() string

type CreateTaskRequest

type CreateTaskRequest struct {
	Name        string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string   `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	StartTime   string   `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	EndTime     string   `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	Tags        []string `protobuf:"bytes,7,rep,name=tags,proto3" json:"tags,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTaskRequest) Descriptor deprecated

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

Deprecated: Use CreateTaskRequest.ProtoReflect.Descriptor instead.

func (*CreateTaskRequest) GetDescription

func (x *CreateTaskRequest) GetDescription() string

func (*CreateTaskRequest) GetEndTime

func (x *CreateTaskRequest) GetEndTime() string

func (*CreateTaskRequest) GetName

func (x *CreateTaskRequest) GetName() string

func (*CreateTaskRequest) GetStartTime

func (x *CreateTaskRequest) GetStartTime() string

func (*CreateTaskRequest) GetTags

func (x *CreateTaskRequest) GetTags() []string

func (*CreateTaskRequest) ProtoMessage

func (*CreateTaskRequest) ProtoMessage()

func (*CreateTaskRequest) ProtoReflect

func (x *CreateTaskRequest) ProtoReflect() protoreflect.Message

func (*CreateTaskRequest) Reset

func (x *CreateTaskRequest) Reset()

func (*CreateTaskRequest) String

func (x *CreateTaskRequest) String() string

type DeleteCommentRequest

type DeleteCommentRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteCommentRequest) Descriptor deprecated

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

Deprecated: Use DeleteCommentRequest.ProtoReflect.Descriptor instead.

func (*DeleteCommentRequest) GetId

func (x *DeleteCommentRequest) GetId() int64

func (*DeleteCommentRequest) ProtoMessage

func (*DeleteCommentRequest) ProtoMessage()

func (*DeleteCommentRequest) ProtoReflect

func (x *DeleteCommentRequest) ProtoReflect() protoreflect.Message

func (*DeleteCommentRequest) Reset

func (x *DeleteCommentRequest) Reset()

func (*DeleteCommentRequest) String

func (x *DeleteCommentRequest) String() string

type DeleteProjectRequest

type DeleteProjectRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteProjectRequest) Descriptor deprecated

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

Deprecated: Use DeleteProjectRequest.ProtoReflect.Descriptor instead.

func (*DeleteProjectRequest) GetId

func (x *DeleteProjectRequest) GetId() int64

func (*DeleteProjectRequest) ProtoMessage

func (*DeleteProjectRequest) ProtoMessage()

func (*DeleteProjectRequest) ProtoReflect

func (x *DeleteProjectRequest) ProtoReflect() protoreflect.Message

func (*DeleteProjectRequest) Reset

func (x *DeleteProjectRequest) Reset()

func (*DeleteProjectRequest) String

func (x *DeleteProjectRequest) String() string

type DeleteTaskRequest

type DeleteTaskRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteTaskRequest) Descriptor deprecated

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

Deprecated: Use DeleteTaskRequest.ProtoReflect.Descriptor instead.

func (*DeleteTaskRequest) GetId

func (x *DeleteTaskRequest) GetId() int64

func (*DeleteTaskRequest) ProtoMessage

func (*DeleteTaskRequest) ProtoMessage()

func (*DeleteTaskRequest) ProtoReflect

func (x *DeleteTaskRequest) ProtoReflect() protoreflect.Message

func (*DeleteTaskRequest) Reset

func (x *DeleteTaskRequest) Reset()

func (*DeleteTaskRequest) String

func (x *DeleteTaskRequest) String() string

type GetProjectRequest

type GetProjectRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProjectRequest) Descriptor deprecated

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

Deprecated: Use GetProjectRequest.ProtoReflect.Descriptor instead.

func (*GetProjectRequest) GetId

func (x *GetProjectRequest) GetId() string

func (*GetProjectRequest) ProtoMessage

func (*GetProjectRequest) ProtoMessage()

func (*GetProjectRequest) ProtoReflect

func (x *GetProjectRequest) ProtoReflect() protoreflect.Message

func (*GetProjectRequest) Reset

func (x *GetProjectRequest) Reset()

func (*GetProjectRequest) String

func (x *GetProjectRequest) String() string

type GetTaskRequest

type GetTaskRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTaskRequest) Descriptor deprecated

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

Deprecated: Use GetTaskRequest.ProtoReflect.Descriptor instead.

func (*GetTaskRequest) GetId

func (x *GetTaskRequest) GetId() int64

func (*GetTaskRequest) ProtoMessage

func (*GetTaskRequest) ProtoMessage()

func (*GetTaskRequest) ProtoReflect

func (x *GetTaskRequest) ProtoReflect() protoreflect.Message

func (*GetTaskRequest) Reset

func (x *GetTaskRequest) Reset()

func (*GetTaskRequest) String

func (x *GetTaskRequest) String() string

type GetTaskResponse

type GetTaskResponse struct {
	Task     *Task   `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	SubTasks []*Task `protobuf:"bytes,2,rep,name=sub_tasks,json=subTasks,proto3" json:"sub_tasks,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTaskResponse) Descriptor deprecated

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

Deprecated: Use GetTaskResponse.ProtoReflect.Descriptor instead.

func (*GetTaskResponse) GetSubTasks

func (x *GetTaskResponse) GetSubTasks() []*Task

func (*GetTaskResponse) GetTask

func (x *GetTaskResponse) GetTask() *Task

func (*GetTaskResponse) ProtoMessage

func (*GetTaskResponse) ProtoMessage()

func (*GetTaskResponse) ProtoReflect

func (x *GetTaskResponse) ProtoReflect() protoreflect.Message

func (*GetTaskResponse) Reset

func (x *GetTaskResponse) Reset()

func (*GetTaskResponse) String

func (x *GetTaskResponse) String() string

type ListActivitiesRequest

type ListActivitiesRequest struct {
	TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListActivitiesRequest) Descriptor deprecated

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

Deprecated: Use ListActivitiesRequest.ProtoReflect.Descriptor instead.

func (*ListActivitiesRequest) GetTaskId

func (x *ListActivitiesRequest) GetTaskId() int64

func (*ListActivitiesRequest) ProtoMessage

func (*ListActivitiesRequest) ProtoMessage()

func (*ListActivitiesRequest) ProtoReflect

func (x *ListActivitiesRequest) ProtoReflect() protoreflect.Message

func (*ListActivitiesRequest) Reset

func (x *ListActivitiesRequest) Reset()

func (*ListActivitiesRequest) String

func (x *ListActivitiesRequest) String() string

type ListActivitiesResponse

type ListActivitiesResponse struct {
	Activities []*Activity `protobuf:"bytes,1,rep,name=activities,proto3" json:"activities,omitempty"`
	// contains filtered or unexported fields
}

func (*ListActivitiesResponse) Descriptor deprecated

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

Deprecated: Use ListActivitiesResponse.ProtoReflect.Descriptor instead.

func (*ListActivitiesResponse) GetActivities

func (x *ListActivitiesResponse) GetActivities() []*Activity

func (*ListActivitiesResponse) ProtoMessage

func (*ListActivitiesResponse) ProtoMessage()

func (*ListActivitiesResponse) ProtoReflect

func (x *ListActivitiesResponse) ProtoReflect() protoreflect.Message

func (*ListActivitiesResponse) Reset

func (x *ListActivitiesResponse) Reset()

func (*ListActivitiesResponse) String

func (x *ListActivitiesResponse) String() string

type ListCommentsRequest

type ListCommentsRequest struct {
	TaskId int64 `protobuf:"varint,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCommentsRequest) Descriptor deprecated

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

Deprecated: Use ListCommentsRequest.ProtoReflect.Descriptor instead.

func (*ListCommentsRequest) GetTaskId

func (x *ListCommentsRequest) GetTaskId() int64

func (*ListCommentsRequest) ProtoMessage

func (*ListCommentsRequest) ProtoMessage()

func (*ListCommentsRequest) ProtoReflect

func (x *ListCommentsRequest) ProtoReflect() protoreflect.Message

func (*ListCommentsRequest) Reset

func (x *ListCommentsRequest) Reset()

func (*ListCommentsRequest) String

func (x *ListCommentsRequest) String() string

type ListCommentsResponse

type ListCommentsResponse struct {
	Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCommentsResponse) Descriptor deprecated

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

Deprecated: Use ListCommentsResponse.ProtoReflect.Descriptor instead.

func (*ListCommentsResponse) GetComments

func (x *ListCommentsResponse) GetComments() []*Comment

func (*ListCommentsResponse) ProtoMessage

func (*ListCommentsResponse) ProtoMessage()

func (*ListCommentsResponse) ProtoReflect

func (x *ListCommentsResponse) ProtoReflect() protoreflect.Message

func (*ListCommentsResponse) Reset

func (x *ListCommentsResponse) Reset()

func (*ListCommentsResponse) String

func (x *ListCommentsResponse) String() string

type ListProjectsRequest

type ListProjectsRequest struct {
	// contains filtered or unexported fields
}

func (*ListProjectsRequest) Descriptor deprecated

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

Deprecated: Use ListProjectsRequest.ProtoReflect.Descriptor instead.

func (*ListProjectsRequest) ProtoMessage

func (*ListProjectsRequest) ProtoMessage()

func (*ListProjectsRequest) ProtoReflect

func (x *ListProjectsRequest) ProtoReflect() protoreflect.Message

func (*ListProjectsRequest) Reset

func (x *ListProjectsRequest) Reset()

func (*ListProjectsRequest) String

func (x *ListProjectsRequest) String() string

type ListProjectsResponse

type ListProjectsResponse struct {
	Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"`
	// contains filtered or unexported fields
}

func (*ListProjectsResponse) Descriptor deprecated

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

Deprecated: Use ListProjectsResponse.ProtoReflect.Descriptor instead.

func (*ListProjectsResponse) GetProjects

func (x *ListProjectsResponse) GetProjects() []*Project

func (*ListProjectsResponse) ProtoMessage

func (*ListProjectsResponse) ProtoMessage()

func (*ListProjectsResponse) ProtoReflect

func (x *ListProjectsResponse) ProtoReflect() protoreflect.Message

func (*ListProjectsResponse) Reset

func (x *ListProjectsResponse) Reset()

func (*ListProjectsResponse) String

func (x *ListProjectsResponse) String() string

type ListTasksRequest

type ListTasksRequest struct {
	// contains filtered or unexported fields
}

func (*ListTasksRequest) Descriptor deprecated

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

Deprecated: Use ListTasksRequest.ProtoReflect.Descriptor instead.

func (*ListTasksRequest) ProtoMessage

func (*ListTasksRequest) ProtoMessage()

func (*ListTasksRequest) ProtoReflect

func (x *ListTasksRequest) ProtoReflect() protoreflect.Message

func (*ListTasksRequest) Reset

func (x *ListTasksRequest) Reset()

func (*ListTasksRequest) String

func (x *ListTasksRequest) String() string

type ListTasksResponse

type ListTasksResponse struct {
	Task []*Task `protobuf:"bytes,1,rep,name=task,proto3" json:"task,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTasksResponse) Descriptor deprecated

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

Deprecated: Use ListTasksResponse.ProtoReflect.Descriptor instead.

func (*ListTasksResponse) GetTask

func (x *ListTasksResponse) GetTask() []*Task

func (*ListTasksResponse) ProtoMessage

func (*ListTasksResponse) ProtoMessage()

func (*ListTasksResponse) ProtoReflect

func (x *ListTasksResponse) ProtoReflect() protoreflect.Message

func (*ListTasksResponse) Reset

func (x *ListTasksResponse) Reset()

func (*ListTasksResponse) String

func (x *ListTasksResponse) String() string

type Project

type Project struct {
	Id   int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Project) Descriptor deprecated

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

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetId

func (x *Project) GetId() int64

func (*Project) GetName

func (x *Project) GetName() string

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

func (x *Project) ProtoReflect() protoreflect.Message

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

type ProjectServiceClient

type ProjectServiceClient interface {
	ListProjects(ctx context.Context, in *ListProjectsRequest, opts ...grpc.CallOption) (*ListProjectsResponse, error)
	GetProject(ctx context.Context, in *GetProjectRequest, opts ...grpc.CallOption) (*Project, error)
	CreateProject(ctx context.Context, in *CreateProjectRequest, opts ...grpc.CallOption) (*Project, error)
	UpdateProject(ctx context.Context, in *UpdateProjectRequest, opts ...grpc.CallOption) (*Project, error)
	DeleteProject(ctx context.Context, in *DeleteProjectRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ProjectServiceClient is the client API for ProjectService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ProjectServiceServer

type ProjectServiceServer interface {
	ListProjects(context.Context, *ListProjectsRequest) (*ListProjectsResponse, error)
	GetProject(context.Context, *GetProjectRequest) (*Project, error)
	CreateProject(context.Context, *CreateProjectRequest) (*Project, error)
	UpdateProject(context.Context, *UpdateProjectRequest) (*Project, error)
	DeleteProject(context.Context, *DeleteProjectRequest) (*emptypb.Empty, error)
}

ProjectServiceServer is the server API for ProjectService service. All implementations should embed UnimplementedProjectServiceServer for forward compatibility

type SetTaskDoneRequest

type SetTaskDoneRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*SetTaskDoneRequest) Descriptor deprecated

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

Deprecated: Use SetTaskDoneRequest.ProtoReflect.Descriptor instead.

func (*SetTaskDoneRequest) GetId

func (x *SetTaskDoneRequest) GetId() int64

func (*SetTaskDoneRequest) ProtoMessage

func (*SetTaskDoneRequest) ProtoMessage()

func (*SetTaskDoneRequest) ProtoReflect

func (x *SetTaskDoneRequest) ProtoReflect() protoreflect.Message

func (*SetTaskDoneRequest) Reset

func (x *SetTaskDoneRequest) Reset()

func (*SetTaskDoneRequest) String

func (x *SetTaskDoneRequest) String() string

type Task

type Task struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Done        bool   `protobuf:"varint,4,opt,name=done,proto3" json:"done,omitempty"`
	StartTime   string `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	EndTime     string `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	CreatedAt   string `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Task) Descriptor deprecated

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

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetCreatedAt

func (x *Task) GetCreatedAt() string

func (*Task) GetDescription

func (x *Task) GetDescription() string

func (*Task) GetDone

func (x *Task) GetDone() bool

func (*Task) GetEndTime

func (x *Task) GetEndTime() string

func (*Task) GetId

func (x *Task) GetId() int64

func (*Task) GetName

func (x *Task) GetName() string

func (*Task) GetStartTime

func (x *Task) GetStartTime() string

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

func (x *Task) ProtoReflect() protoreflect.Message

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

type TaskServiceClient

type TaskServiceClient interface {
	CreateTask(ctx context.Context, in *CreateTaskRequest, opts ...grpc.CallOption) (*Task, error)
	ListTasks(ctx context.Context, in *ListTasksRequest, opts ...grpc.CallOption) (*ListTasksResponse, error)
	GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*GetTaskResponse, error)
	SetTaskDone(ctx context.Context, in *SetTaskDoneRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	UpdateTask(ctx context.Context, in *UpdateTaskRequest, opts ...grpc.CallOption) (*Task, error)
	DeleteTask(ctx context.Context, in *DeleteTaskRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

TaskServiceClient is the client API for TaskService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type TaskServiceServer

TaskServiceServer is the server API for TaskService service. All implementations should embed UnimplementedTaskServiceServer for forward compatibility

type TaskUpdate

type TaskUpdate struct {
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	StartTime   string `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	EndTime     string `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

func (*TaskUpdate) Descriptor deprecated

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

Deprecated: Use TaskUpdate.ProtoReflect.Descriptor instead.

func (*TaskUpdate) GetDescription

func (x *TaskUpdate) GetDescription() string

func (*TaskUpdate) GetEndTime

func (x *TaskUpdate) GetEndTime() string

func (*TaskUpdate) GetName

func (x *TaskUpdate) GetName() string

func (*TaskUpdate) GetStartTime

func (x *TaskUpdate) GetStartTime() string

func (*TaskUpdate) ProtoMessage

func (*TaskUpdate) ProtoMessage()

func (*TaskUpdate) ProtoReflect

func (x *TaskUpdate) ProtoReflect() protoreflect.Message

func (*TaskUpdate) Reset

func (x *TaskUpdate) Reset()

func (*TaskUpdate) String

func (x *TaskUpdate) String() string

type UnimplementedActivityServiceServer

type UnimplementedActivityServiceServer struct {
}

UnimplementedActivityServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedActivityServiceServer) CreateActivity

func (UnimplementedActivityServiceServer) ListActivities

type UnimplementedCommentServiceServer

type UnimplementedCommentServiceServer struct {
}

UnimplementedCommentServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedCommentServiceServer) CreateComment

func (UnimplementedCommentServiceServer) DeleteComment

func (UnimplementedCommentServiceServer) ListComments

type UnimplementedProjectServiceServer

type UnimplementedProjectServiceServer struct {
}

UnimplementedProjectServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedProjectServiceServer) CreateProject

func (UnimplementedProjectServiceServer) DeleteProject

func (UnimplementedProjectServiceServer) GetProject

func (UnimplementedProjectServiceServer) ListProjects

func (UnimplementedProjectServiceServer) UpdateProject

type UnimplementedTaskServiceServer

type UnimplementedTaskServiceServer struct {
}

UnimplementedTaskServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedTaskServiceServer) CreateTask

func (UnimplementedTaskServiceServer) DeleteTask

func (UnimplementedTaskServiceServer) GetTask

func (UnimplementedTaskServiceServer) ListTasks

func (UnimplementedTaskServiceServer) SetTaskDone

func (UnimplementedTaskServiceServer) UpdateTask

type UnsafeActivityServiceServer

type UnsafeActivityServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeActivityServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ActivityServiceServer will result in compilation errors.

type UnsafeCommentServiceServer

type UnsafeCommentServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCommentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommentServiceServer will result in compilation errors.

type UnsafeProjectServiceServer

type UnsafeProjectServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeProjectServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProjectServiceServer will result in compilation errors.

type UnsafeTaskServiceServer

type UnsafeTaskServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeTaskServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TaskServiceServer will result in compilation errors.

type UpdateProjectRequest

type UpdateProjectRequest struct {
	Id   int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateProjectRequest) Descriptor deprecated

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

Deprecated: Use UpdateProjectRequest.ProtoReflect.Descriptor instead.

func (*UpdateProjectRequest) GetId

func (x *UpdateProjectRequest) GetId() int64

func (*UpdateProjectRequest) GetName

func (x *UpdateProjectRequest) GetName() string

func (*UpdateProjectRequest) ProtoMessage

func (*UpdateProjectRequest) ProtoMessage()

func (*UpdateProjectRequest) ProtoReflect

func (x *UpdateProjectRequest) ProtoReflect() protoreflect.Message

func (*UpdateProjectRequest) Reset

func (x *UpdateProjectRequest) Reset()

func (*UpdateProjectRequest) String

func (x *UpdateProjectRequest) String() string

type UpdateTaskRequest

type UpdateTaskRequest struct {
	Id   int64       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Task *TaskUpdate `protobuf:"bytes,2,opt,name=task,proto3" json:"task,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTaskRequest) Descriptor deprecated

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

Deprecated: Use UpdateTaskRequest.ProtoReflect.Descriptor instead.

func (*UpdateTaskRequest) GetId

func (x *UpdateTaskRequest) GetId() int64

func (*UpdateTaskRequest) GetTask

func (x *UpdateTaskRequest) GetTask() *TaskUpdate

func (*UpdateTaskRequest) ProtoMessage

func (*UpdateTaskRequest) ProtoMessage()

func (*UpdateTaskRequest) ProtoReflect

func (x *UpdateTaskRequest) ProtoReflect() protoreflect.Message

func (*UpdateTaskRequest) Reset

func (x *UpdateTaskRequest) Reset()

func (*UpdateTaskRequest) String

func (x *UpdateTaskRequest) String() string

Jump to

Keyboard shortcuts

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