todov1

package
v0.0.0-...-ff1810e Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TodoService_AddTask_FullMethodName     = "/todov1.TodoService/AddTask"
	TodoService_ListTasks_FullMethodName   = "/todov1.TodoService/ListTasks"
	TodoService_UpdateTasks_FullMethodName = "/todov1.TodoService/UpdateTasks"
	TodoService_DeleteTasks_FullMethodName = "/todov1.TodoService/DeleteTasks"
)

Variables

View Source
var File_proto_todov1_todo_proto protoreflect.FileDescriptor
View Source
var TodoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "todov1.TodoService",
	HandlerType: (*TodoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddTask",
			Handler:    _TodoService_AddTask_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "ListTasks",
			Handler:       _TodoService_ListTasks_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "UpdateTasks",
			Handler:       _TodoService_UpdateTasks_Handler,
			ClientStreams: true,
		},
		{
			StreamName:    "DeleteTasks",
			Handler:       _TodoService_DeleteTasks_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "proto/todov1/todo.proto",
}

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

Functions

func RegisterTodoServiceServer

func RegisterTodoServiceServer(s grpc.ServiceRegistrar, srv TodoServiceServer)

Types

type AddTaskRequest

type AddTaskRequest struct {
	Description string                 `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	DueDate     *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=due_date,json=dueDate,proto3" json:"due_date,omitempty"`
	// contains filtered or unexported fields
}

func (*AddTaskRequest) Descriptor deprecated

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

Deprecated: Use AddTaskRequest.ProtoReflect.Descriptor instead.

func (*AddTaskRequest) GetDescription

func (x *AddTaskRequest) GetDescription() string

func (*AddTaskRequest) GetDueDate

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

func (*AddTaskRequest) ProtoMessage

func (*AddTaskRequest) ProtoMessage()

func (*AddTaskRequest) ProtoReflect

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

func (*AddTaskRequest) Reset

func (x *AddTaskRequest) Reset()

func (*AddTaskRequest) String

func (x *AddTaskRequest) String() string

type AddTaskResponse

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

func (*AddTaskResponse) Descriptor deprecated

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

Deprecated: Use AddTaskResponse.ProtoReflect.Descriptor instead.

func (*AddTaskResponse) GetId

func (x *AddTaskResponse) GetId() uint64

func (*AddTaskResponse) ProtoMessage

func (*AddTaskResponse) ProtoMessage()

func (*AddTaskResponse) ProtoReflect

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

func (*AddTaskResponse) Reset

func (x *AddTaskResponse) Reset()

func (*AddTaskResponse) String

func (x *AddTaskResponse) String() string

type DeleteTasksRequest

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

func (*DeleteTasksRequest) Descriptor deprecated

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

Deprecated: Use DeleteTasksRequest.ProtoReflect.Descriptor instead.

func (*DeleteTasksRequest) GetId

func (x *DeleteTasksRequest) GetId() uint64

func (*DeleteTasksRequest) ProtoMessage

func (*DeleteTasksRequest) ProtoMessage()

func (*DeleteTasksRequest) ProtoReflect

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

func (*DeleteTasksRequest) Reset

func (x *DeleteTasksRequest) Reset()

func (*DeleteTasksRequest) String

func (x *DeleteTasksRequest) String() string

type DeleteTasksResponse

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

func (*DeleteTasksResponse) Descriptor deprecated

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

Deprecated: Use DeleteTasksResponse.ProtoReflect.Descriptor instead.

func (*DeleteTasksResponse) ProtoMessage

func (*DeleteTasksResponse) ProtoMessage()

func (*DeleteTasksResponse) ProtoReflect

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

func (*DeleteTasksResponse) Reset

func (x *DeleteTasksResponse) Reset()

func (*DeleteTasksResponse) String

func (x *DeleteTasksResponse) 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,opt,name=task,proto3" json:"task,omitempty"`
	Overdue bool  `protobuf:"varint,2,opt,name=overdue,proto3" json:"overdue,omitempty"`
	// contains filtered or unexported fields
}

func (*ListTasksResponse) Descriptor deprecated

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

Deprecated: Use ListTasksResponse.ProtoReflect.Descriptor instead.

func (*ListTasksResponse) GetOverdue

func (x *ListTasksResponse) GetOverdue() bool

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 Task

type Task struct {
	Id          uint64                 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Description string                 `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Done        bool                   `protobuf:"varint,3,opt,name=done,proto3" json:"done,omitempty"`
	DueDate     *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=due_date,json=dueDate,proto3" json:"due_date,omitempty"`
	// contains filtered or unexported fields
}

func (*Task) Descriptor deprecated

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

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetDescription

func (x *Task) GetDescription() string

func (*Task) GetDone

func (x *Task) GetDone() bool

func (*Task) GetDueDate

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

func (*Task) GetId

func (x *Task) GetId() uint64

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 TodoServiceClient

type TodoServiceClient interface {
	AddTask(ctx context.Context, in *AddTaskRequest, opts ...grpc.CallOption) (*AddTaskResponse, error)
	ListTasks(ctx context.Context, in *ListTasksRequest, opts ...grpc.CallOption) (TodoService_ListTasksClient, error)
	UpdateTasks(ctx context.Context, opts ...grpc.CallOption) (TodoService_UpdateTasksClient, error)
	DeleteTasks(ctx context.Context, opts ...grpc.CallOption) (TodoService_DeleteTasksClient, error)
}

TodoServiceClient is the client API for TodoService 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 TodoServiceServer

type TodoServiceServer interface {
	AddTask(context.Context, *AddTaskRequest) (*AddTaskResponse, error)
	ListTasks(*ListTasksRequest, TodoService_ListTasksServer) error
	UpdateTasks(TodoService_UpdateTasksServer) error
	DeleteTasks(TodoService_DeleteTasksServer) error
	// contains filtered or unexported methods
}

TodoServiceServer is the server API for TodoService service. All implementations must embed UnimplementedTodoServiceServer for forward compatibility

type TodoService_DeleteTasksClient

type TodoService_DeleteTasksClient interface {
	Send(*DeleteTasksRequest) error
	Recv() (*DeleteTasksResponse, error)
	grpc.ClientStream
}

type TodoService_DeleteTasksServer

type TodoService_DeleteTasksServer interface {
	Send(*DeleteTasksResponse) error
	Recv() (*DeleteTasksRequest, error)
	grpc.ServerStream
}

type TodoService_ListTasksClient

type TodoService_ListTasksClient interface {
	Recv() (*ListTasksResponse, error)
	grpc.ClientStream
}

type TodoService_ListTasksServer

type TodoService_ListTasksServer interface {
	Send(*ListTasksResponse) error
	grpc.ServerStream
}

type TodoService_UpdateTasksClient

type TodoService_UpdateTasksClient interface {
	Send(*UpdateTasksRequest) error
	CloseAndRecv() (*UpdateTasksResponse, error)
	grpc.ClientStream
}

type TodoService_UpdateTasksServer

type TodoService_UpdateTasksServer interface {
	SendAndClose(*UpdateTasksResponse) error
	Recv() (*UpdateTasksRequest, error)
	grpc.ServerStream
}

type UnimplementedTodoServiceServer

type UnimplementedTodoServiceServer struct {
}

UnimplementedTodoServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTodoServiceServer) AddTask

func (UnimplementedTodoServiceServer) DeleteTasks

func (UnimplementedTodoServiceServer) ListTasks

func (UnimplementedTodoServiceServer) UpdateTasks

type UnsafeTodoServiceServer

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

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

type UpdateTasksRequest

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

func (*UpdateTasksRequest) Descriptor deprecated

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

Deprecated: Use UpdateTasksRequest.ProtoReflect.Descriptor instead.

func (*UpdateTasksRequest) GetTask

func (x *UpdateTasksRequest) GetTask() *Task

func (*UpdateTasksRequest) ProtoMessage

func (*UpdateTasksRequest) ProtoMessage()

func (*UpdateTasksRequest) ProtoReflect

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

func (*UpdateTasksRequest) Reset

func (x *UpdateTasksRequest) Reset()

func (*UpdateTasksRequest) String

func (x *UpdateTasksRequest) String() string

type UpdateTasksResponse

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

func (*UpdateTasksResponse) Descriptor deprecated

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

Deprecated: Use UpdateTasksResponse.ProtoReflect.Descriptor instead.

func (*UpdateTasksResponse) ProtoMessage

func (*UpdateTasksResponse) ProtoMessage()

func (*UpdateTasksResponse) ProtoReflect

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

func (*UpdateTasksResponse) Reset

func (x *UpdateTasksResponse) Reset()

func (*UpdateTasksResponse) String

func (x *UpdateTasksResponse) String() string

Jump to

Keyboard shortcuts

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