Documentation ¶
Index ¶
- Variables
- func RegisterProviderServer(s grpc.ServiceRegistrar, srv ProviderServer)
- type List
- type Priority
- type ProviderClient
- type ProviderResponse
- func (*ProviderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ProviderResponse) GetCount() int64
- func (x *ProviderResponse) GetList() *List
- func (x *ProviderResponse) GetLists() []string
- func (x *ProviderResponse) GetMessage() string
- func (x *ProviderResponse) GetSuccessful() bool
- func (x *ProviderResponse) GetTask() *Task
- func (x *ProviderResponse) GetTasks() []string
- func (*ProviderResponse) ProtoMessage()
- func (x *ProviderResponse) ProtoReflect() protoreflect.Message
- func (x *ProviderResponse) Reset()
- func (x *ProviderResponse) String() string
- type ProviderServer
- type Provider_GetListsClient
- type Provider_GetListsServer
- type Provider_GetTasksClient
- type Provider_GetTasksFromListClient
- type Provider_GetTasksFromListServer
- type Provider_GetTasksServer
- type Status
- type SubTask
- type Task
- func (*Task) Descriptor() ([]byte, []int)deprecated
- func (x *Task) GetCompletionDate() *timestamppb.Timestamp
- func (x *Task) GetCreatedDateTime() *timestamppb.Timestamp
- func (x *Task) GetDeletionDate() *timestamppb.Timestamp
- func (x *Task) GetDueDate() *timestamppb.Timestamp
- func (x *Task) GetFavorite() bool
- func (x *Task) GetId() string
- func (x *Task) GetLastModifiedDateTime() *timestamppb.Timestamp
- func (x *Task) GetNotes() string
- func (x *Task) GetParent() string
- func (x *Task) GetPriority() Priority
- func (x *Task) GetRecurrence() string
- func (x *Task) GetReminderDate() *timestamppb.Timestamp
- func (x *Task) GetStatus() Status
- func (x *Task) GetSubTasks() []*SubTask
- func (x *Task) GetTags() []string
- func (x *Task) GetTitle() string
- func (x *Task) GetToday() bool
- func (*Task) ProtoMessage()
- func (x *Task) ProtoReflect() protoreflect.Message
- func (x *Task) Reset()
- func (x *Task) String() string
- type UnimplementedProviderServer
- func (UnimplementedProviderServer) CreateList(context.Context, *List) (*ProviderResponse, error)
- func (UnimplementedProviderServer) CreateTask(context.Context, *Task) (*ProviderResponse, error)
- func (UnimplementedProviderServer) DeleteList(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error)
- func (UnimplementedProviderServer) DeleteTask(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error)
- func (UnimplementedProviderServer) GetList(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error)
- func (UnimplementedProviderServer) GetListIds(context.Context, *emptypb.Empty) (*ProviderResponse, error)
- func (UnimplementedProviderServer) GetLists(*emptypb.Empty, Provider_GetListsServer) error
- func (UnimplementedProviderServer) GetTask(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error)
- func (UnimplementedProviderServer) GetTaskCountFromList(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error)
- func (UnimplementedProviderServer) GetTaskIdsFromList(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error)
- func (UnimplementedProviderServer) GetTasks(*wrapperspb.StringValue, Provider_GetTasksServer) error
- func (UnimplementedProviderServer) GetTasksFromList(*wrapperspb.StringValue, Provider_GetTasksFromListServer) error
- func (UnimplementedProviderServer) UpdateList(context.Context, *List) (*ProviderResponse, error)
- func (UnimplementedProviderServer) UpdateTask(context.Context, *Task) (*ProviderResponse, error)
- type UnsafeProviderServer
Constants ¶
This section is empty.
Variables ¶
var ( Priority_name = map[int32]string{ 0: "LOW", 1: "NORMAL", 2: "HIGH", } Priority_value = map[string]int32{ "LOW": 0, "NORMAL": 1, "HIGH": 2, } )
Enum value maps for Priority.
var ( Status_name = map[int32]string{ 0: "NOT_STARTED", 1: "COMPLETED", } Status_value = map[string]int32{ "NOT_STARTED": 0, "COMPLETED": 1, } )
Enum value maps for Status.
var File_proto_provider_proto protoreflect.FileDescriptor
var Provider_ServiceDesc = grpc.ServiceDesc{ ServiceName: "provider.Provider", HandlerType: (*ProviderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetTask", Handler: _Provider_GetTask_Handler, }, { MethodName: "CreateTask", Handler: _Provider_CreateTask_Handler, }, { MethodName: "UpdateTask", Handler: _Provider_UpdateTask_Handler, }, { MethodName: "DeleteTask", Handler: _Provider_DeleteTask_Handler, }, { MethodName: "GetList", Handler: _Provider_GetList_Handler, }, { MethodName: "GetListIds", Handler: _Provider_GetListIds_Handler, }, { MethodName: "CreateList", Handler: _Provider_CreateList_Handler, }, { MethodName: "UpdateList", Handler: _Provider_UpdateList_Handler, }, { MethodName: "DeleteList", Handler: _Provider_DeleteList_Handler, }, { MethodName: "GetTaskIdsFromList", Handler: _Provider_GetTaskIdsFromList_Handler, }, { MethodName: "GetTaskCountFromList", Handler: _Provider_GetTaskCountFromList_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetTasks", Handler: _Provider_GetTasks_Handler, ServerStreams: true, }, { StreamName: "GetLists", Handler: _Provider_GetLists_Handler, ServerStreams: true, }, { StreamName: "GetTasksFromList", Handler: _Provider_GetTasksFromList_Handler, ServerStreams: true, }, }, Metadata: "proto/provider.proto", }
Provider_ServiceDesc is the grpc.ServiceDesc for Provider service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProviderServer ¶
func RegisterProviderServer(s grpc.ServiceRegistrar, srv ProviderServer)
Types ¶
type List ¶
type List struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Icon *string `protobuf:"bytes,5,opt,name=icon,proto3,oneof" json:"icon,omitempty"` // contains filtered or unexported fields }
func (*List) Descriptor
deprecated
func (*List) ProtoMessage ¶
func (*List) ProtoMessage()
func (*List) ProtoReflect ¶
func (x *List) ProtoReflect() protoreflect.Message
type Priority ¶
type Priority int32
func (Priority) Descriptor ¶
func (Priority) Descriptor() protoreflect.EnumDescriptor
func (Priority) EnumDescriptor
deprecated
func (Priority) Number ¶
func (x Priority) Number() protoreflect.EnumNumber
func (Priority) Type ¶
func (Priority) Type() protoreflect.EnumType
type ProviderClient ¶
type ProviderClient interface { GetTask(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*ProviderResponse, error) GetTasks(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (Provider_GetTasksClient, error) CreateTask(ctx context.Context, in *Task, opts ...grpc.CallOption) (*ProviderResponse, error) UpdateTask(ctx context.Context, in *Task, opts ...grpc.CallOption) (*ProviderResponse, error) DeleteTask(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*ProviderResponse, error) GetList(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*ProviderResponse, error) GetLists(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (Provider_GetListsClient, error) GetListIds(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ProviderResponse, error) CreateList(ctx context.Context, in *List, opts ...grpc.CallOption) (*ProviderResponse, error) UpdateList(ctx context.Context, in *List, opts ...grpc.CallOption) (*ProviderResponse, error) DeleteList(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*ProviderResponse, error) GetTasksFromList(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (Provider_GetTasksFromListClient, error) GetTaskIdsFromList(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*ProviderResponse, error) GetTaskCountFromList(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*ProviderResponse, error) }
ProviderClient is the client API for Provider 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.
func NewProviderClient ¶
func NewProviderClient(cc grpc.ClientConnInterface) ProviderClient
type ProviderResponse ¶
type ProviderResponse struct { Successful bool `protobuf:"varint,1,opt,name=successful,proto3" json:"successful,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` Task *Task `protobuf:"bytes,4,opt,name=task,proto3,oneof" json:"task,omitempty"` List *List `protobuf:"bytes,5,opt,name=list,proto3,oneof" json:"list,omitempty"` Lists []string `protobuf:"bytes,6,rep,name=lists,proto3" json:"lists,omitempty"` Tasks []string `protobuf:"bytes,7,rep,name=tasks,proto3" json:"tasks,omitempty"` // contains filtered or unexported fields }
func (*ProviderResponse) Descriptor
deprecated
func (*ProviderResponse) Descriptor() ([]byte, []int)
Deprecated: Use ProviderResponse.ProtoReflect.Descriptor instead.
func (*ProviderResponse) GetCount ¶
func (x *ProviderResponse) GetCount() int64
func (*ProviderResponse) GetList ¶
func (x *ProviderResponse) GetList() *List
func (*ProviderResponse) GetLists ¶
func (x *ProviderResponse) GetLists() []string
func (*ProviderResponse) GetMessage ¶
func (x *ProviderResponse) GetMessage() string
func (*ProviderResponse) GetSuccessful ¶
func (x *ProviderResponse) GetSuccessful() bool
func (*ProviderResponse) GetTask ¶
func (x *ProviderResponse) GetTask() *Task
func (*ProviderResponse) GetTasks ¶
func (x *ProviderResponse) GetTasks() []string
func (*ProviderResponse) ProtoMessage ¶
func (*ProviderResponse) ProtoMessage()
func (*ProviderResponse) ProtoReflect ¶
func (x *ProviderResponse) ProtoReflect() protoreflect.Message
func (*ProviderResponse) Reset ¶
func (x *ProviderResponse) Reset()
func (*ProviderResponse) String ¶
func (x *ProviderResponse) String() string
type ProviderServer ¶
type ProviderServer interface { GetTask(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error) GetTasks(*wrapperspb.StringValue, Provider_GetTasksServer) error CreateTask(context.Context, *Task) (*ProviderResponse, error) UpdateTask(context.Context, *Task) (*ProviderResponse, error) DeleteTask(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error) GetList(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error) GetLists(*emptypb.Empty, Provider_GetListsServer) error GetListIds(context.Context, *emptypb.Empty) (*ProviderResponse, error) CreateList(context.Context, *List) (*ProviderResponse, error) UpdateList(context.Context, *List) (*ProviderResponse, error) DeleteList(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error) GetTasksFromList(*wrapperspb.StringValue, Provider_GetTasksFromListServer) error GetTaskIdsFromList(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error) GetTaskCountFromList(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error) // contains filtered or unexported methods }
ProviderServer is the server API for Provider service. All implementations must embed UnimplementedProviderServer for forward compatibility
type Provider_GetListsClient ¶
type Provider_GetListsClient interface { Recv() (*ProviderResponse, error) grpc.ClientStream }
type Provider_GetListsServer ¶
type Provider_GetListsServer interface { Send(*ProviderResponse) error grpc.ServerStream }
type Provider_GetTasksClient ¶
type Provider_GetTasksClient interface { Recv() (*ProviderResponse, error) grpc.ClientStream }
type Provider_GetTasksFromListClient ¶
type Provider_GetTasksFromListClient interface { Recv() (*ProviderResponse, error) grpc.ClientStream }
type Provider_GetTasksFromListServer ¶
type Provider_GetTasksFromListServer interface { Send(*ProviderResponse) error grpc.ServerStream }
type Provider_GetTasksServer ¶
type Provider_GetTasksServer interface { Send(*ProviderResponse) error grpc.ServerStream }
type Status ¶
type Status int32
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
func (Status) Type ¶
func (Status) Type() protoreflect.EnumType
type SubTask ¶
type SubTask struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Completed bool `protobuf:"varint,2,opt,name=completed,proto3" json:"completed,omitempty"` // contains filtered or unexported fields }
func (*SubTask) Descriptor
deprecated
func (*SubTask) GetCompleted ¶
func (*SubTask) ProtoMessage ¶
func (*SubTask) ProtoMessage()
func (*SubTask) ProtoReflect ¶
func (x *SubTask) ProtoReflect() protoreflect.Message
type Task ¶
type Task struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Parent string `protobuf:"bytes,2,opt,name=parent,proto3" json:"parent,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Favorite bool `protobuf:"varint,4,opt,name=favorite,proto3" json:"favorite,omitempty"` Today bool `protobuf:"varint,5,opt,name=today,proto3" json:"today,omitempty"` Status Status `protobuf:"varint,7,opt,name=status,proto3,enum=provider.Status" json:"status,omitempty"` Priority Priority `protobuf:"varint,8,opt,name=priority,proto3,enum=provider.Priority" json:"priority,omitempty"` SubTasks []*SubTask `protobuf:"bytes,9,rep,name=sub_tasks,json=subTasks,proto3" json:"sub_tasks,omitempty"` Tags []string `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty"` Notes *string `protobuf:"bytes,11,opt,name=notes,proto3,oneof" json:"notes,omitempty"` CompletionDate *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=completion_date,json=completionDate,proto3" json:"completion_date,omitempty"` DeletionDate *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=deletion_date,json=deletionDate,proto3" json:"deletion_date,omitempty"` DueDate *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=due_date,json=dueDate,proto3" json:"due_date,omitempty"` ReminderDate *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=reminder_date,json=reminderDate,proto3" json:"reminder_date,omitempty"` Recurrence *string `protobuf:"bytes,16,opt,name=recurrence,proto3,oneof" json:"recurrence,omitempty"` CreatedDateTime *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=created_date_time,json=createdDateTime,proto3" json:"created_date_time,omitempty"` LastModifiedDateTime *timestamppb.Timestamp `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Task) Descriptor
deprecated
func (*Task) GetCompletionDate ¶
func (x *Task) GetCompletionDate() *timestamppb.Timestamp
func (*Task) GetCreatedDateTime ¶
func (x *Task) GetCreatedDateTime() *timestamppb.Timestamp
func (*Task) GetDeletionDate ¶
func (x *Task) GetDeletionDate() *timestamppb.Timestamp
func (*Task) GetDueDate ¶
func (x *Task) GetDueDate() *timestamppb.Timestamp
func (*Task) GetFavorite ¶
func (*Task) GetLastModifiedDateTime ¶
func (x *Task) GetLastModifiedDateTime() *timestamppb.Timestamp
func (*Task) GetPriority ¶
func (*Task) GetRecurrence ¶
func (*Task) GetReminderDate ¶
func (x *Task) GetReminderDate() *timestamppb.Timestamp
func (*Task) GetSubTasks ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
type UnimplementedProviderServer ¶
type UnimplementedProviderServer struct { }
UnimplementedProviderServer must be embedded to have forward compatible implementations.
func (UnimplementedProviderServer) CreateList ¶
func (UnimplementedProviderServer) CreateList(context.Context, *List) (*ProviderResponse, error)
func (UnimplementedProviderServer) CreateTask ¶
func (UnimplementedProviderServer) CreateTask(context.Context, *Task) (*ProviderResponse, error)
func (UnimplementedProviderServer) DeleteList ¶
func (UnimplementedProviderServer) DeleteList(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error)
func (UnimplementedProviderServer) DeleteTask ¶
func (UnimplementedProviderServer) DeleteTask(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error)
func (UnimplementedProviderServer) GetList ¶
func (UnimplementedProviderServer) GetList(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error)
func (UnimplementedProviderServer) GetListIds ¶
func (UnimplementedProviderServer) GetListIds(context.Context, *emptypb.Empty) (*ProviderResponse, error)
func (UnimplementedProviderServer) GetLists ¶
func (UnimplementedProviderServer) GetLists(*emptypb.Empty, Provider_GetListsServer) error
func (UnimplementedProviderServer) GetTask ¶
func (UnimplementedProviderServer) GetTask(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error)
func (UnimplementedProviderServer) GetTaskCountFromList ¶
func (UnimplementedProviderServer) GetTaskCountFromList(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error)
func (UnimplementedProviderServer) GetTaskIdsFromList ¶
func (UnimplementedProviderServer) GetTaskIdsFromList(context.Context, *wrapperspb.StringValue) (*ProviderResponse, error)
func (UnimplementedProviderServer) GetTasks ¶
func (UnimplementedProviderServer) GetTasks(*wrapperspb.StringValue, Provider_GetTasksServer) error
func (UnimplementedProviderServer) GetTasksFromList ¶
func (UnimplementedProviderServer) GetTasksFromList(*wrapperspb.StringValue, Provider_GetTasksFromListServer) error
func (UnimplementedProviderServer) UpdateList ¶
func (UnimplementedProviderServer) UpdateList(context.Context, *List) (*ProviderResponse, error)
func (UnimplementedProviderServer) UpdateTask ¶
func (UnimplementedProviderServer) UpdateTask(context.Context, *Task) (*ProviderResponse, error)
type UnsafeProviderServer ¶
type UnsafeProviderServer interface {
// contains filtered or unexported methods
}
UnsafeProviderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProviderServer will result in compilation errors.