Documentation ¶
Index ¶
- Variables
- func RegisterTodoListServiceServer(s *grpc.Server, srv TodoListServiceServer)
- type CreateTodoRequest
- type CreateTodoResponse
- type DeleteTodoRequest
- type DeleteTodoResponse
- type ListTodosRequest
- type ListTodosResponse
- type ReadTodoRequest
- type ReadTodoResponse
- type Todo
- func (*Todo) Descriptor() ([]byte, []int)deprecated
- func (x *Todo) GetDueDate() *timestamp.Timestamp
- func (x *Todo) GetId() int32
- func (x *Todo) GetNote() string
- func (x *Todo) GetTitle() string
- func (*Todo) ProtoMessage()
- func (x *Todo) ProtoReflect() protoreflect.Message
- func (x *Todo) Reset()
- func (x *Todo) String() string
- type TodoListServiceClient
- type TodoListServiceServer
- type TodoListService_ListTodosClient
- type TodoListService_ListTodosServer
- type UnimplementedTodoListServiceServer
- func (*UnimplementedTodoListServiceServer) CreateTodo(context.Context, *CreateTodoRequest) (*CreateTodoResponse, error)
- func (*UnimplementedTodoListServiceServer) DeleteTodo(context.Context, *DeleteTodoRequest) (*DeleteTodoResponse, error)
- func (*UnimplementedTodoListServiceServer) ListTodos(*ListTodosRequest, TodoListService_ListTodosServer) error
- func (*UnimplementedTodoListServiceServer) ReadTodo(context.Context, *ReadTodoRequest) (*ReadTodoResponse, error)
- func (*UnimplementedTodoListServiceServer) UpdateTodo(context.Context, *UpdateTodoRequest) (*UpdateTodoResponse, error)
- type UpdateTodoRequest
- type UpdateTodoResponse
Constants ¶
This section is empty.
Variables ¶
var File_todolistpb_todolist_proto protoreflect.FileDescriptor
Functions ¶
func RegisterTodoListServiceServer ¶
func RegisterTodoListServiceServer(s *grpc.Server, srv TodoListServiceServer)
Types ¶
type CreateTodoRequest ¶
type CreateTodoRequest struct { Todo *Todo `protobuf:"bytes,1,opt,name=todo,proto3" json:"todo,omitempty"` // contains filtered or unexported fields }
func (*CreateTodoRequest) Descriptor
deprecated
func (*CreateTodoRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTodoRequest.ProtoReflect.Descriptor instead.
func (*CreateTodoRequest) GetTodo ¶
func (x *CreateTodoRequest) GetTodo() *Todo
func (*CreateTodoRequest) ProtoMessage ¶
func (*CreateTodoRequest) ProtoMessage()
func (*CreateTodoRequest) ProtoReflect ¶
func (x *CreateTodoRequest) ProtoReflect() protoreflect.Message
func (*CreateTodoRequest) Reset ¶
func (x *CreateTodoRequest) Reset()
func (*CreateTodoRequest) String ¶
func (x *CreateTodoRequest) String() string
type CreateTodoResponse ¶
type CreateTodoResponse struct { Todo *Todo `protobuf:"bytes,1,opt,name=todo,proto3" json:"todo,omitempty"` // contains filtered or unexported fields }
func (*CreateTodoResponse) Descriptor
deprecated
func (*CreateTodoResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateTodoResponse.ProtoReflect.Descriptor instead.
func (*CreateTodoResponse) GetTodo ¶
func (x *CreateTodoResponse) GetTodo() *Todo
func (*CreateTodoResponse) ProtoMessage ¶
func (*CreateTodoResponse) ProtoMessage()
func (*CreateTodoResponse) ProtoReflect ¶
func (x *CreateTodoResponse) ProtoReflect() protoreflect.Message
func (*CreateTodoResponse) Reset ¶
func (x *CreateTodoResponse) Reset()
func (*CreateTodoResponse) String ¶
func (x *CreateTodoResponse) String() string
type DeleteTodoRequest ¶
type DeleteTodoRequest struct { TodoId int32 `protobuf:"varint,1,opt,name=todo_id,json=todoId,proto3" json:"todo_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteTodoRequest) Descriptor
deprecated
func (*DeleteTodoRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTodoRequest.ProtoReflect.Descriptor instead.
func (*DeleteTodoRequest) GetTodoId ¶
func (x *DeleteTodoRequest) GetTodoId() int32
func (*DeleteTodoRequest) ProtoMessage ¶
func (*DeleteTodoRequest) ProtoMessage()
func (*DeleteTodoRequest) ProtoReflect ¶
func (x *DeleteTodoRequest) ProtoReflect() protoreflect.Message
func (*DeleteTodoRequest) Reset ¶
func (x *DeleteTodoRequest) Reset()
func (*DeleteTodoRequest) String ¶
func (x *DeleteTodoRequest) String() string
type DeleteTodoResponse ¶
type DeleteTodoResponse struct {
// contains filtered or unexported fields
}
func (*DeleteTodoResponse) Descriptor
deprecated
func (*DeleteTodoResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTodoResponse.ProtoReflect.Descriptor instead.
func (*DeleteTodoResponse) ProtoMessage ¶
func (*DeleteTodoResponse) ProtoMessage()
func (*DeleteTodoResponse) ProtoReflect ¶
func (x *DeleteTodoResponse) ProtoReflect() protoreflect.Message
func (*DeleteTodoResponse) Reset ¶
func (x *DeleteTodoResponse) Reset()
func (*DeleteTodoResponse) String ¶
func (x *DeleteTodoResponse) String() string
type ListTodosRequest ¶
type ListTodosRequest struct {
// contains filtered or unexported fields
}
func (*ListTodosRequest) Descriptor
deprecated
func (*ListTodosRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTodosRequest.ProtoReflect.Descriptor instead.
func (*ListTodosRequest) ProtoMessage ¶
func (*ListTodosRequest) ProtoMessage()
func (*ListTodosRequest) ProtoReflect ¶
func (x *ListTodosRequest) ProtoReflect() protoreflect.Message
func (*ListTodosRequest) Reset ¶
func (x *ListTodosRequest) Reset()
func (*ListTodosRequest) String ¶
func (x *ListTodosRequest) String() string
type ListTodosResponse ¶
type ListTodosResponse struct { Todo *Todo `protobuf:"bytes,1,opt,name=todo,proto3" json:"todo,omitempty"` // contains filtered or unexported fields }
func (*ListTodosResponse) Descriptor
deprecated
func (*ListTodosResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTodosResponse.ProtoReflect.Descriptor instead.
func (*ListTodosResponse) GetTodo ¶
func (x *ListTodosResponse) GetTodo() *Todo
func (*ListTodosResponse) ProtoMessage ¶
func (*ListTodosResponse) ProtoMessage()
func (*ListTodosResponse) ProtoReflect ¶
func (x *ListTodosResponse) ProtoReflect() protoreflect.Message
func (*ListTodosResponse) Reset ¶
func (x *ListTodosResponse) Reset()
func (*ListTodosResponse) String ¶
func (x *ListTodosResponse) String() string
type ReadTodoRequest ¶
type ReadTodoRequest struct { TodoId int32 `protobuf:"varint,1,opt,name=todo_id,json=todoId,proto3" json:"todo_id,omitempty"` // contains filtered or unexported fields }
func (*ReadTodoRequest) Descriptor
deprecated
func (*ReadTodoRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadTodoRequest.ProtoReflect.Descriptor instead.
func (*ReadTodoRequest) GetTodoId ¶
func (x *ReadTodoRequest) GetTodoId() int32
func (*ReadTodoRequest) ProtoMessage ¶
func (*ReadTodoRequest) ProtoMessage()
func (*ReadTodoRequest) ProtoReflect ¶
func (x *ReadTodoRequest) ProtoReflect() protoreflect.Message
func (*ReadTodoRequest) Reset ¶
func (x *ReadTodoRequest) Reset()
func (*ReadTodoRequest) String ¶
func (x *ReadTodoRequest) String() string
type ReadTodoResponse ¶
type ReadTodoResponse struct { Todo *Todo `protobuf:"bytes,1,opt,name=todo,proto3" json:"todo,omitempty"` // contains filtered or unexported fields }
func (*ReadTodoResponse) Descriptor
deprecated
func (*ReadTodoResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadTodoResponse.ProtoReflect.Descriptor instead.
func (*ReadTodoResponse) GetTodo ¶
func (x *ReadTodoResponse) GetTodo() *Todo
func (*ReadTodoResponse) ProtoMessage ¶
func (*ReadTodoResponse) ProtoMessage()
func (*ReadTodoResponse) ProtoReflect ¶
func (x *ReadTodoResponse) ProtoReflect() protoreflect.Message
func (*ReadTodoResponse) Reset ¶
func (x *ReadTodoResponse) Reset()
func (*ReadTodoResponse) String ¶
func (x *ReadTodoResponse) String() string
type Todo ¶
type Todo struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Note string `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"` DueDate *timestamp.Timestamp `protobuf:"bytes,4,opt,name=due_date,json=dueDate,proto3" json:"due_date,omitempty"` // contains filtered or unexported fields }
func (*Todo) Descriptor
deprecated
func (*Todo) GetDueDate ¶
func (*Todo) ProtoMessage ¶
func (*Todo) ProtoMessage()
func (*Todo) ProtoReflect ¶
func (x *Todo) ProtoReflect() protoreflect.Message
type TodoListServiceClient ¶
type TodoListServiceClient interface { CreateTodo(ctx context.Context, in *CreateTodoRequest, opts ...grpc.CallOption) (*CreateTodoResponse, error) ReadTodo(ctx context.Context, in *ReadTodoRequest, opts ...grpc.CallOption) (*ReadTodoResponse, error) UpdateTodo(ctx context.Context, in *UpdateTodoRequest, opts ...grpc.CallOption) (*UpdateTodoResponse, error) DeleteTodo(ctx context.Context, in *DeleteTodoRequest, opts ...grpc.CallOption) (*DeleteTodoResponse, error) ListTodos(ctx context.Context, in *ListTodosRequest, opts ...grpc.CallOption) (TodoListService_ListTodosClient, error) }
TodoListServiceClient is the client API for TodoListService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTodoListServiceClient ¶
func NewTodoListServiceClient(cc grpc.ClientConnInterface) TodoListServiceClient
type TodoListServiceServer ¶
type TodoListServiceServer interface { CreateTodo(context.Context, *CreateTodoRequest) (*CreateTodoResponse, error) ReadTodo(context.Context, *ReadTodoRequest) (*ReadTodoResponse, error) UpdateTodo(context.Context, *UpdateTodoRequest) (*UpdateTodoResponse, error) DeleteTodo(context.Context, *DeleteTodoRequest) (*DeleteTodoResponse, error) ListTodos(*ListTodosRequest, TodoListService_ListTodosServer) error }
TodoListServiceServer is the server API for TodoListService service.
type TodoListService_ListTodosClient ¶
type TodoListService_ListTodosClient interface { Recv() (*ListTodosResponse, error) grpc.ClientStream }
type TodoListService_ListTodosServer ¶
type TodoListService_ListTodosServer interface { Send(*ListTodosResponse) error grpc.ServerStream }
type UnimplementedTodoListServiceServer ¶
type UnimplementedTodoListServiceServer struct { }
UnimplementedTodoListServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedTodoListServiceServer) CreateTodo ¶
func (*UnimplementedTodoListServiceServer) CreateTodo(context.Context, *CreateTodoRequest) (*CreateTodoResponse, error)
func (*UnimplementedTodoListServiceServer) DeleteTodo ¶
func (*UnimplementedTodoListServiceServer) DeleteTodo(context.Context, *DeleteTodoRequest) (*DeleteTodoResponse, error)
func (*UnimplementedTodoListServiceServer) ListTodos ¶
func (*UnimplementedTodoListServiceServer) ListTodos(*ListTodosRequest, TodoListService_ListTodosServer) error
func (*UnimplementedTodoListServiceServer) ReadTodo ¶
func (*UnimplementedTodoListServiceServer) ReadTodo(context.Context, *ReadTodoRequest) (*ReadTodoResponse, error)
func (*UnimplementedTodoListServiceServer) UpdateTodo ¶
func (*UnimplementedTodoListServiceServer) UpdateTodo(context.Context, *UpdateTodoRequest) (*UpdateTodoResponse, error)
type UpdateTodoRequest ¶
type UpdateTodoRequest struct { Todo *Todo `protobuf:"bytes,1,opt,name=todo,proto3" json:"todo,omitempty"` // contains filtered or unexported fields }
func (*UpdateTodoRequest) Descriptor
deprecated
func (*UpdateTodoRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTodoRequest.ProtoReflect.Descriptor instead.
func (*UpdateTodoRequest) GetTodo ¶
func (x *UpdateTodoRequest) GetTodo() *Todo
func (*UpdateTodoRequest) ProtoMessage ¶
func (*UpdateTodoRequest) ProtoMessage()
func (*UpdateTodoRequest) ProtoReflect ¶
func (x *UpdateTodoRequest) ProtoReflect() protoreflect.Message
func (*UpdateTodoRequest) Reset ¶
func (x *UpdateTodoRequest) Reset()
func (*UpdateTodoRequest) String ¶
func (x *UpdateTodoRequest) String() string
type UpdateTodoResponse ¶
type UpdateTodoResponse struct { Todo *Todo `protobuf:"bytes,1,opt,name=todo,proto3" json:"todo,omitempty"` // contains filtered or unexported fields }
func (*UpdateTodoResponse) Descriptor
deprecated
func (*UpdateTodoResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTodoResponse.ProtoReflect.Descriptor instead.
func (*UpdateTodoResponse) GetTodo ¶
func (x *UpdateTodoResponse) GetTodo() *Todo
func (*UpdateTodoResponse) ProtoMessage ¶
func (*UpdateTodoResponse) ProtoMessage()
func (*UpdateTodoResponse) ProtoReflect ¶
func (x *UpdateTodoResponse) ProtoReflect() protoreflect.Message
func (*UpdateTodoResponse) Reset ¶
func (x *UpdateTodoResponse) Reset()
func (*UpdateTodoResponse) String ¶
func (x *UpdateTodoResponse) String() string