Documentation ¶
Index ¶
- Variables
- func RegisterTodoServiceServer(s *grpc.Server, srv TodoServiceServer)
- type Code
- type Todo
- func (*Todo) Descriptor() ([]byte, []int)deprecated
- func (x *Todo) GetCodes() []*Code
- func (x *Todo) GetCompleted() bool
- func (x *Todo) GetId() string
- func (x *Todo) GetName() string
- func (x *Todo) GetNumberCode() int32
- func (x *Todo) GetNumberProduct() uint64
- func (*Todo) ProtoMessage()
- func (x *Todo) ProtoReflect() protoreflect.Message
- func (x *Todo) Reset()
- func (x *Todo) String() string
- type TodoServiceClient
- type TodoServiceServer
- type Todos
- type UnimplementedTodoServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_todo_proto protoreflect.FileDescriptor
Functions ¶
func RegisterTodoServiceServer ¶
func RegisterTodoServiceServer(s *grpc.Server, srv TodoServiceServer)
Types ¶
type Code ¶
type Code struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Code) Descriptor
deprecated
func (*Code) ProtoMessage ¶
func (*Code) ProtoMessage()
func (*Code) ProtoReflect ¶
func (x *Code) ProtoReflect() protoreflect.Message
type Todo ¶
type Todo 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"` Completed bool `protobuf:"varint,3,opt,name=completed,proto3" json:"completed,omitempty"` NumberCode int32 `protobuf:"varint,4,opt,name=number_code,json=numberCode,proto3" json:"number_code,omitempty"` NumberProduct uint64 `protobuf:"varint,5,opt,name=number_product,json=numberProduct,proto3" json:"number_product,omitempty"` Codes []*Code `protobuf:"bytes,6,rep,name=codes,proto3" json:"codes,omitempty"` // contains filtered or unexported fields }
func (*Todo) Descriptor
deprecated
func (*Todo) GetCompleted ¶
func (*Todo) GetNumberCode ¶
func (*Todo) GetNumberProduct ¶
func (*Todo) ProtoMessage ¶
func (*Todo) ProtoMessage()
func (*Todo) ProtoReflect ¶
func (x *Todo) ProtoReflect() protoreflect.Message
type TodoServiceClient ¶
type TodoServiceClient interface { CreateTodo(ctx context.Context, in *Todo, opts ...grpc.CallOption) (*emptypb.Empty, error) RetrieveTodos(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Todos, error) }
TodoServiceClient is the client API for TodoService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTodoServiceClient ¶
func NewTodoServiceClient(cc grpc.ClientConnInterface) TodoServiceClient
type TodoServiceServer ¶
type TodoServiceServer interface { CreateTodo(context.Context, *Todo) (*emptypb.Empty, error) RetrieveTodos(context.Context, *emptypb.Empty) (*Todos, error) }
TodoServiceServer is the server API for TodoService service.
type Todos ¶
type Todos struct { Todos []*Todo `protobuf:"bytes,1,rep,name=todos,proto3" json:"todos,omitempty"` // contains filtered or unexported fields }
func (*Todos) Descriptor
deprecated
func (*Todos) ProtoMessage ¶
func (*Todos) ProtoMessage()
func (*Todos) ProtoReflect ¶
func (x *Todos) ProtoReflect() protoreflect.Message
type UnimplementedTodoServiceServer ¶
type UnimplementedTodoServiceServer struct { }
UnimplementedTodoServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedTodoServiceServer) CreateTodo ¶
func (*UnimplementedTodoServiceServer) RetrieveTodos ¶
Click to show internal directories.
Click to hide internal directories.