Documentation ¶
Overview ¶
Package todo is a generated protocol buffer package.
It is generated from these files:
todo.proto
It has these top-level messages:
Todo Response
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTodoServiceServer ¶
func RegisterTodoServiceServer(s *grpc.Server, srv TodoServiceServer)
Types ¶
type Response ¶
type Response struct { Status int32 `protobuf:"varint,1,opt,name=status" json:"status,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason" json:"reason,omitempty"` }
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
type Todo ¶
type Todo struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}
func (*Todo) ProtoMessage ¶
func (*Todo) ProtoMessage()
type TodoServiceClient ¶
type TodoServiceClient interface {
CreateTodo(ctx context.Context, in *Todo, opts ...grpc.CallOption) (*Response, error)
}
func NewTodoServiceClient ¶
func NewTodoServiceClient(cc *grpc.ClientConn) TodoServiceClient
Click to show internal directories.
Click to hide internal directories.