task

package
v0.0.0-...-931afa0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TaskService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "task.TaskService",
	HandlerType: (*TaskServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateTask",
			Handler:    _TaskService_CreateTask_Handler,
		},
		{
			MethodName: "GetTask",
			Handler:    _TaskService_GetTask_Handler,
		},
		{
			MethodName: "ListTasks",
			Handler:    _TaskService_ListTasks_Handler,
		},
		{
			MethodName: "DeleteTask",
			Handler:    _TaskService_DeleteTask_Handler,
		},
		{
			MethodName: "UpdateTask",
			Handler:    _TaskService_UpdateTask_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "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 RegisterTaskServiceServer

func RegisterTaskServiceServer(s grpc.ServiceRegistrar, srv TaskServiceServer)

Types

type CreateTaskRequest

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

func (*CreateTaskRequest) Descriptor deprecated

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

Deprecated: Use CreateTaskRequest.ProtoReflect.Descriptor instead.

func (*CreateTaskRequest) GetTask

func (x *CreateTaskRequest) GetTask() *Task

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 CreateTaskResponse

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

func (*CreateTaskResponse) Descriptor deprecated

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

Deprecated: Use CreateTaskResponse.ProtoReflect.Descriptor instead.

func (*CreateTaskResponse) GetId

func (x *CreateTaskResponse) GetId() string

func (*CreateTaskResponse) ProtoMessage

func (*CreateTaskResponse) ProtoMessage()

func (*CreateTaskResponse) ProtoReflect

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

func (*CreateTaskResponse) Reset

func (x *CreateTaskResponse) Reset()

func (*CreateTaskResponse) String

func (x *CreateTaskResponse) String() string

type DeleteTaskRequest

type DeleteTaskRequest struct {
	Id string `protobuf:"bytes,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() string

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 DeleteTaskResponse

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

func (*DeleteTaskResponse) Descriptor deprecated

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

Deprecated: Use DeleteTaskResponse.ProtoReflect.Descriptor instead.

func (*DeleteTaskResponse) ProtoMessage

func (*DeleteTaskResponse) ProtoMessage()

func (*DeleteTaskResponse) ProtoReflect

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

func (*DeleteTaskResponse) Reset

func (x *DeleteTaskResponse) Reset()

func (*DeleteTaskResponse) String

func (x *DeleteTaskResponse) String() string

type GetTaskRequest

type GetTaskRequest struct {
	Id string `protobuf:"bytes,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() string

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"`
	// contains filtered or unexported fields
}

func (*GetTaskResponse) Descriptor deprecated

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

Deprecated: Use GetTaskResponse.ProtoReflect.Descriptor instead.

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 ListTasksRequest

type ListTasksRequest struct {
	Limit   int32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset  int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Pending bool  `protobuf:"varint,4,opt,name=pending,proto3" json:"pending,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTasksRequest) Descriptor deprecated

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

Deprecated: Use ListTasksRequest.ProtoReflect.Descriptor instead.

func (*ListTasksRequest) GetLimit

func (x *ListTasksRequest) GetLimit() int32

func (*ListTasksRequest) GetOffset

func (x *ListTasksRequest) GetOffset() int32

func (*ListTasksRequest) GetPending

func (x *ListTasksRequest) GetPending() bool

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 {
	Tasks      []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"`
	TotalCount int64   `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTasksResponse) Descriptor deprecated

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

Deprecated: Use ListTasksResponse.ProtoReflect.Descriptor instead.

func (*ListTasksResponse) GetTasks

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

func (*ListTasksResponse) GetTotalCount

func (x *ListTasksResponse) GetTotalCount() int64

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 MockTaskServiceClient

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

MockTaskServiceClient is a mock of TaskServiceClient interface.

func NewMockTaskServiceClient

func NewMockTaskServiceClient(ctrl *gomock.Controller) *MockTaskServiceClient

NewMockTaskServiceClient creates a new mock instance.

func (*MockTaskServiceClient) CreateTask

CreateTask mocks base method.

func (*MockTaskServiceClient) DeleteTask

DeleteTask mocks base method.

func (*MockTaskServiceClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTaskServiceClient) GetTask

GetTask mocks base method.

func (*MockTaskServiceClient) ListTasks

ListTasks mocks base method.

func (*MockTaskServiceClient) UpdateTask

UpdateTask mocks base method.

type MockTaskServiceClientMockRecorder

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

MockTaskServiceClientMockRecorder is the mock recorder for MockTaskServiceClient.

func (*MockTaskServiceClientMockRecorder) CreateTask

func (mr *MockTaskServiceClientMockRecorder) CreateTask(ctx, in interface{}, opts ...interface{}) *gomock.Call

CreateTask indicates an expected call of CreateTask.

func (*MockTaskServiceClientMockRecorder) DeleteTask

func (mr *MockTaskServiceClientMockRecorder) DeleteTask(ctx, in interface{}, opts ...interface{}) *gomock.Call

DeleteTask indicates an expected call of DeleteTask.

func (*MockTaskServiceClientMockRecorder) GetTask

func (mr *MockTaskServiceClientMockRecorder) GetTask(ctx, in interface{}, opts ...interface{}) *gomock.Call

GetTask indicates an expected call of GetTask.

func (*MockTaskServiceClientMockRecorder) ListTasks

func (mr *MockTaskServiceClientMockRecorder) ListTasks(ctx, in interface{}, opts ...interface{}) *gomock.Call

ListTasks indicates an expected call of ListTasks.

func (*MockTaskServiceClientMockRecorder) UpdateTask

func (mr *MockTaskServiceClientMockRecorder) UpdateTask(ctx, in interface{}, opts ...interface{}) *gomock.Call

UpdateTask indicates an expected call of UpdateTask.

type MockTaskServiceServer

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

MockTaskServiceServer is a mock of TaskServiceServer interface.

func NewMockTaskServiceServer

func NewMockTaskServiceServer(ctrl *gomock.Controller) *MockTaskServiceServer

NewMockTaskServiceServer creates a new mock instance.

func (*MockTaskServiceServer) CreateTask

CreateTask mocks base method.

func (*MockTaskServiceServer) DeleteTask

DeleteTask mocks base method.

func (*MockTaskServiceServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockTaskServiceServer) GetTask

GetTask mocks base method.

func (*MockTaskServiceServer) ListTasks

ListTasks mocks base method.

func (*MockTaskServiceServer) UpdateTask

UpdateTask mocks base method.

type MockTaskServiceServerMockRecorder

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

MockTaskServiceServerMockRecorder is the mock recorder for MockTaskServiceServer.

func (*MockTaskServiceServerMockRecorder) CreateTask

func (mr *MockTaskServiceServerMockRecorder) CreateTask(ctx, in interface{}) *gomock.Call

CreateTask indicates an expected call of CreateTask.

func (*MockTaskServiceServerMockRecorder) DeleteTask

func (mr *MockTaskServiceServerMockRecorder) DeleteTask(ctx, in interface{}) *gomock.Call

DeleteTask indicates an expected call of DeleteTask.

func (*MockTaskServiceServerMockRecorder) GetTask

func (mr *MockTaskServiceServerMockRecorder) GetTask(ctx, in interface{}) *gomock.Call

GetTask indicates an expected call of GetTask.

func (*MockTaskServiceServerMockRecorder) ListTasks

func (mr *MockTaskServiceServerMockRecorder) ListTasks(ctx, in interface{}) *gomock.Call

ListTasks indicates an expected call of ListTasks.

func (*MockTaskServiceServerMockRecorder) UpdateTask

func (mr *MockTaskServiceServerMockRecorder) UpdateTask(ctx, in interface{}) *gomock.Call

UpdateTask indicates an expected call of UpdateTask.

type Task

type Task struct {
	Id          string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Title       string                 `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	Description string                 `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Status      string                 `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"`
	DueDate     *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=due_date,json=dueDate,proto3" json:"due_date,omitempty"`
	CreatedAt   *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_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() *timestamppb.Timestamp

func (*Task) GetDescription

func (x *Task) GetDescription() string

func (*Task) GetDueDate

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

func (*Task) GetId

func (x *Task) GetId() string

func (*Task) GetStatus

func (x *Task) GetStatus() string

func (*Task) GetTitle

func (x *Task) GetTitle() string

func (*Task) GetUpdatedAt

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

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) (*CreateTaskResponse, error)
	GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*GetTaskResponse, error)
	ListTasks(ctx context.Context, in *ListTasksRequest, opts ...grpc.CallOption) (*ListTasksResponse, error)
	DeleteTask(ctx context.Context, in *DeleteTaskRequest, opts ...grpc.CallOption) (*DeleteTaskResponse, 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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type TaskServiceServer

type TaskServiceServer interface {
	CreateTask(context.Context, *CreateTaskRequest) (*CreateTaskResponse, error)
	GetTask(context.Context, *GetTaskRequest) (*GetTaskResponse, error)
	ListTasks(context.Context, *ListTasksRequest) (*ListTasksResponse, error)
	DeleteTask(context.Context, *DeleteTaskRequest) (*DeleteTaskResponse, error)
	UpdateTask(context.Context, *UpdateTaskRequest) (*UpdateTaskResponse, error)
	// contains filtered or unexported methods
}

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

type UnimplementedTaskServiceServer

type UnimplementedTaskServiceServer struct {
}

UnimplementedTaskServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTaskServiceServer) CreateTask

func (UnimplementedTaskServiceServer) DeleteTask

func (UnimplementedTaskServiceServer) GetTask

func (UnimplementedTaskServiceServer) ListTasks

func (UnimplementedTaskServiceServer) UpdateTask

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 UpdateTaskRequest

type UpdateTaskRequest struct {
	Task *Task `protobuf:"bytes,1,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) GetTask

func (x *UpdateTaskRequest) GetTask() *Task

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

type UpdateTaskResponse

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

func (*UpdateTaskResponse) Descriptor deprecated

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

Deprecated: Use UpdateTaskResponse.ProtoReflect.Descriptor instead.

func (*UpdateTaskResponse) ProtoMessage

func (*UpdateTaskResponse) ProtoMessage()

func (*UpdateTaskResponse) ProtoReflect

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

func (*UpdateTaskResponse) Reset

func (x *UpdateTaskResponse) Reset()

func (*UpdateTaskResponse) String

func (x *UpdateTaskResponse) String() string

Jump to

Keyboard shortcuts

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