provider

package
v0.0.0-...-19ca6dc Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
var File_proto_provider_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use List.ProtoReflect.Descriptor instead.

func (*List) GetIcon

func (x *List) GetIcon() string

func (*List) GetId

func (x *List) GetId() string

func (*List) GetName

func (x *List) GetName() string

func (*List) ProtoMessage

func (*List) ProtoMessage()

func (*List) ProtoReflect

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

func (*List) Reset

func (x *List) Reset()

func (*List) String

func (x *List) String() string

type Priority

type Priority int32
const (
	Priority_LOW    Priority = 0
	Priority_NORMAL Priority = 1
	Priority_HIGH   Priority = 2
)

func (Priority) Descriptor

func (Priority) Descriptor() protoreflect.EnumDescriptor

func (Priority) Enum

func (x Priority) Enum() *Priority

func (Priority) EnumDescriptor deprecated

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

Deprecated: Use Priority.Descriptor instead.

func (Priority) Number

func (x Priority) Number() protoreflect.EnumNumber

func (Priority) String

func (x Priority) String() string

func (Priority) Type

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

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
const (
	Status_NOT_STARTED Status = 0
	Status_COMPLETED   Status = 1
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

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

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

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

Deprecated: Use SubTask.ProtoReflect.Descriptor instead.

func (*SubTask) GetCompleted

func (x *SubTask) GetCompleted() bool

func (*SubTask) GetTitle

func (x *SubTask) GetTitle() string

func (*SubTask) ProtoMessage

func (*SubTask) ProtoMessage()

func (*SubTask) ProtoReflect

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

func (*SubTask) Reset

func (x *SubTask) Reset()

func (*SubTask) String

func (x *SubTask) String() string

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

Deprecated: Use Task.ProtoReflect.Descriptor instead.

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 (x *Task) GetFavorite() bool

func (*Task) GetId

func (x *Task) GetId() string

func (*Task) GetLastModifiedDateTime

func (x *Task) GetLastModifiedDateTime() *timestamppb.Timestamp

func (*Task) GetNotes

func (x *Task) GetNotes() string

func (*Task) GetParent

func (x *Task) GetParent() string

func (*Task) GetPriority

func (x *Task) GetPriority() Priority

func (*Task) GetRecurrence

func (x *Task) GetRecurrence() string

func (*Task) GetReminderDate

func (x *Task) GetReminderDate() *timestamppb.Timestamp

func (*Task) GetStatus

func (x *Task) GetStatus() Status

func (*Task) GetSubTasks

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

func (*Task) GetTags

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

func (*Task) GetTitle

func (x *Task) GetTitle() string

func (*Task) GetToday

func (x *Task) GetToday() bool

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 UnimplementedProviderServer

type UnimplementedProviderServer struct {
}

UnimplementedProviderServer must be embedded to have forward compatible implementations.

func (UnimplementedProviderServer) CreateList

func (UnimplementedProviderServer) CreateTask

func (UnimplementedProviderServer) DeleteList

func (UnimplementedProviderServer) DeleteTask

func (UnimplementedProviderServer) GetList

func (UnimplementedProviderServer) GetListIds

func (UnimplementedProviderServer) GetLists

func (UnimplementedProviderServer) GetTask

func (UnimplementedProviderServer) GetTaskCountFromList

func (UnimplementedProviderServer) GetTaskIdsFromList

func (UnimplementedProviderServer) GetTasks

func (UnimplementedProviderServer) GetTasksFromList

func (UnimplementedProviderServer) UpdateList

func (UnimplementedProviderServer) UpdateTask

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.

Jump to

Keyboard shortcuts

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