Documentation
¶
Index ¶
- func RegisterTodoServer(s *grpc.Server, srv TodoServer)
- type Category
- func (*Category) Descriptor() ([]byte, []int)
- func (m *Category) GetName() string
- func (*Category) ProtoMessage()
- func (m *Category) Reset()
- func (m *Category) String() string
- func (m *Category) XXX_DiscardUnknown()
- func (m *Category) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Category) XXX_Merge(src proto.Message)
- func (m *Category) XXX_Size() int
- func (m *Category) XXX_Unmarshal(b []byte) error
- type Task
- func (*Task) Descriptor() ([]byte, []int)
- func (m *Task) GetCategory() *Category
- func (m *Task) GetDescription() string
- func (m *Task) GetDone() bool
- func (m *Task) GetId() string
- func (*Task) ProtoMessage()
- func (m *Task) Reset()
- func (m *Task) String() string
- func (m *Task) XXX_DiscardUnknown()
- func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Task) XXX_Merge(src proto.Message)
- func (m *Task) XXX_Size() int
- func (m *Task) XXX_Unmarshal(b []byte) error
- type TodoClient
- type TodoServer
- type Todo_ListClient
- type Todo_ListServer
- type UnimplementedTodoServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterTodoServer ¶
func RegisterTodoServer(s *grpc.Server, srv TodoServer)
Types ¶
type Category ¶
type Category struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Category) Descriptor ¶
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) XXX_DiscardUnknown ¶
func (m *Category) XXX_DiscardUnknown()
func (*Category) XXX_Marshal ¶
func (*Category) XXX_Unmarshal ¶
type Task ¶
type Task struct {
Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
Category *Category `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"`
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
Done bool `protobuf:"varint,4,opt,name=done,proto3" json:"done,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*Task) Descriptor ¶
func (*Task) GetCategory ¶
func (*Task) GetDescription ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) XXX_DiscardUnknown ¶
func (m *Task) XXX_DiscardUnknown()
func (*Task) XXX_Unmarshal ¶
type TodoClient ¶
type TodoClient interface {
List(ctx context.Context, in *Category, opts ...grpc.CallOption) (Todo_ListClient, error)
Add(ctx context.Context, in *Task, opts ...grpc.CallOption) (*Task, error)
}
TodoClient is the client API for Todo service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTodoClient ¶
func NewTodoClient(cc grpc.ClientConnInterface) TodoClient
type TodoServer ¶
type TodoServer interface {
List(*Category, Todo_ListServer) error
Add(context.Context, *Task) (*Task, error)
}
TodoServer is the server API for Todo service.
type Todo_ListClient ¶
type Todo_ListClient interface {
Recv() (*Task, error)
grpc.ClientStream
}
type Todo_ListServer ¶
type Todo_ListServer interface {
Send(*Task) error
grpc.ServerStream
}
type UnimplementedTodoServer ¶
type UnimplementedTodoServer struct {
}
UnimplementedTodoServer can be embedded to have forward compatible implementations.
func (*UnimplementedTodoServer) List ¶
func (*UnimplementedTodoServer) List(req *Category, srv Todo_ListServer) error
Click to show internal directories.
Click to hide internal directories.