pb

package
v0.0.0-...-ebba24f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Category) GetName

func (m *Category) GetName() string

func (*Category) ProtoMessage

func (*Category) ProtoMessage()

func (*Category) Reset

func (m *Category) Reset()

func (*Category) String

func (m *Category) String() string

func (*Category) XXX_DiscardUnknown

func (m *Category) XXX_DiscardUnknown()

func (*Category) XXX_Marshal

func (m *Category) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Category) XXX_Merge

func (m *Category) XXX_Merge(src proto.Message)

func (*Category) XXX_Size

func (m *Category) XXX_Size() int

func (*Category) XXX_Unmarshal

func (m *Category) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Task) GetCategory

func (m *Task) GetCategory() *Category

func (*Task) GetDescription

func (m *Task) GetDescription() string

func (*Task) GetDone

func (m *Task) GetDone() bool

func (*Task) GetId

func (m *Task) GetId() string

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) Reset

func (m *Task) Reset()

func (*Task) String

func (m *Task) String() string

func (*Task) XXX_DiscardUnknown

func (m *Task) XXX_DiscardUnknown()

func (*Task) XXX_Marshal

func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Task) XXX_Merge

func (m *Task) XXX_Merge(src proto.Message)

func (*Task) XXX_Size

func (m *Task) XXX_Size() int

func (*Task) XXX_Unmarshal

func (m *Task) XXX_Unmarshal(b []byte) error

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) Add

func (*UnimplementedTodoServer) Add(ctx context.Context, req *Task) (*Task, error)

func (*UnimplementedTodoServer) List

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL