Documentation
¶
Overview ¶
Package todo is a generated protocol buffer package.
It is generated from these files:
todo.proto
It has these top-level messages:
Task TaskList Text Void
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTasksServer ¶
func RegisterTasksServer(s *grpc.Server, srv TasksServer)
Types ¶
type Task ¶
type Task struct { Text string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"` Done bool `protobuf:"varint,2,opt,name=done" json:"done,omitempty"` }
func (*Task) Descriptor ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
type TaskList ¶
type TaskList struct {
Tasks []*Task `protobuf:"bytes,1,rep,name=tasks" json:"tasks,omitempty"`
}
func (*TaskList) Descriptor ¶
func (*TaskList) ProtoMessage ¶
func (*TaskList) ProtoMessage()
type TasksClient ¶
type TasksClient interface { List(ctx context.Context, in *Void, opts ...grpc.CallOption) (*TaskList, error) Add(ctx context.Context, in *Text, opts ...grpc.CallOption) (*Task, error) }
func NewTasksClient ¶
func NewTasksClient(cc *grpc.ClientConn) TasksClient
type TasksServer ¶
type Text ¶
type Text struct {
Text string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
}
func (*Text) Descriptor ¶
func (*Text) ProtoMessage ¶
func (*Text) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.