pb

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use Code.ProtoReflect.Descriptor instead.

func (*Code) GetId

func (x *Code) GetId() int64

func (*Code) ProtoMessage

func (*Code) ProtoMessage()

func (*Code) ProtoReflect

func (x *Code) ProtoReflect() protoreflect.Message

func (*Code) Reset

func (x *Code) Reset()

func (*Code) String

func (x *Code) String() string

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

Deprecated: Use Todo.ProtoReflect.Descriptor instead.

func (*Todo) GetCodes

func (x *Todo) GetCodes() []*Code

func (*Todo) GetCompleted

func (x *Todo) GetCompleted() bool

func (*Todo) GetId

func (x *Todo) GetId() string

func (*Todo) GetName

func (x *Todo) GetName() string

func (*Todo) GetNumberCode

func (x *Todo) GetNumberCode() int32

func (*Todo) GetNumberProduct

func (x *Todo) GetNumberProduct() uint64

func (*Todo) ProtoMessage

func (*Todo) ProtoMessage()

func (*Todo) ProtoReflect

func (x *Todo) ProtoReflect() protoreflect.Message

func (*Todo) Reset

func (x *Todo) Reset()

func (*Todo) String

func (x *Todo) String() string

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.

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

Deprecated: Use Todos.ProtoReflect.Descriptor instead.

func (*Todos) GetTodos

func (x *Todos) GetTodos() []*Todo

func (*Todos) ProtoMessage

func (*Todos) ProtoMessage()

func (*Todos) ProtoReflect

func (x *Todos) ProtoReflect() protoreflect.Message

func (*Todos) Reset

func (x *Todos) Reset()

func (*Todos) String

func (x *Todos) String() string

type UnimplementedTodoServiceServer

type UnimplementedTodoServiceServer struct {
}

UnimplementedTodoServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTodoServiceServer) CreateTodo

func (*UnimplementedTodoServiceServer) RetrieveTodos

Jump to

Keyboard shortcuts

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