Documentation ¶
Index ¶
- Variables
- func RegisterTodosServiceServer(s grpc.ServiceRegistrar, srv TodosServiceServer)
- type CreateTodoReq
- func (*CreateTodoReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTodoReq) GetAuthor() string
- func (x *CreateTodoReq) GetBody() string
- func (x *CreateTodoReq) GetTitle() string
- func (*CreateTodoReq) ProtoMessage()
- func (x *CreateTodoReq) ProtoReflect() protoreflect.Message
- func (x *CreateTodoReq) Reset()
- func (x *CreateTodoReq) String() string
- type CreateTodoRes
- type DeleteTodoReq
- type DeleteTodoRes
- type Filters
- type GetTodoReq
- type GetTodoRes
- type GetTodosReq
- type GetTodosRes
- type ListTodosReq
- func (*ListTodosReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListTodosReq) GetFilters() *Filters
- func (x *ListTodosReq) GetLimit() int32
- func (x *ListTodosReq) GetOffset() int32
- func (*ListTodosReq) ProtoMessage()
- func (x *ListTodosReq) ProtoReflect() protoreflect.Message
- func (x *ListTodosReq) Reset()
- func (x *ListTodosReq) String() string
- type ListTodosRes
- func (*ListTodosRes) Descriptor() ([]byte, []int)deprecated
- func (x *ListTodosRes) GetLimit() int32
- func (x *ListTodosRes) GetOffset() int32
- func (x *ListTodosRes) GetTodos() []*Todo
- func (x *ListTodosRes) GetTotal() int32
- func (*ListTodosRes) ProtoMessage()
- func (x *ListTodosRes) ProtoReflect() protoreflect.Message
- func (x *ListTodosRes) Reset()
- func (x *ListTodosRes) String() string
- type Todo
- func (*Todo) Descriptor() ([]byte, []int)deprecated
- func (x *Todo) GetAuthor() string
- func (x *Todo) GetBody() string
- func (x *Todo) GetCreatedAt() *timestamp.Timestamp
- func (x *Todo) GetDeletedAt() *timestamp.Timestamp
- func (x *Todo) GetId() string
- func (x *Todo) GetIsDone() bool
- func (x *Todo) GetTitle() string
- func (x *Todo) GetUpdatedAt() *timestamp.Timestamp
- func (*Todo) ProtoMessage()
- func (x *Todo) ProtoReflect() protoreflect.Message
- func (x *Todo) Reset()
- func (x *Todo) String() string
- type TodosServiceClient
- type TodosServiceServer
- type UnimplementedTodosServiceServer
- func (UnimplementedTodosServiceServer) CreateTodo(context.Context, *CreateTodoReq) (*CreateTodoRes, error)
- func (UnimplementedTodosServiceServer) DeleteTodo(context.Context, *DeleteTodoReq) (*DeleteTodoRes, error)
- func (UnimplementedTodosServiceServer) GetTodo(context.Context, *GetTodoReq) (*GetTodoRes, error)
- func (UnimplementedTodosServiceServer) GetTodos(context.Context, *GetTodosReq) (*GetTodosRes, error)
- func (UnimplementedTodosServiceServer) ListTodos(context.Context, *ListTodosReq) (*ListTodosRes, error)
- func (UnimplementedTodosServiceServer) UpdateTodo(context.Context, *UpdateTodoReq) (*UpdateTodoRes, error)
- type UnsafeTodosServiceServer
- type UpdateTodoReq
- func (*UpdateTodoReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTodoReq) GetAuthor() string
- func (x *UpdateTodoReq) GetBody() string
- func (x *UpdateTodoReq) GetId() string
- func (x *UpdateTodoReq) GetIsDone() bool
- func (x *UpdateTodoReq) GetTitle() string
- func (*UpdateTodoReq) ProtoMessage()
- func (x *UpdateTodoReq) ProtoReflect() protoreflect.Message
- func (x *UpdateTodoReq) Reset()
- func (x *UpdateTodoReq) String() string
- type UpdateTodoRes
Constants ¶
This section is empty.
Variables ¶
var File_base_proto protoreflect.FileDescriptor
Functions ¶
func RegisterTodosServiceServer ¶
func RegisterTodosServiceServer(s grpc.ServiceRegistrar, srv TodosServiceServer)
Types ¶
type CreateTodoReq ¶
type CreateTodoReq struct { Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` Author string `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"` // contains filtered or unexported fields }
func (*CreateTodoReq) Descriptor
deprecated
func (*CreateTodoReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateTodoReq.ProtoReflect.Descriptor instead.
func (*CreateTodoReq) GetAuthor ¶
func (x *CreateTodoReq) GetAuthor() string
func (*CreateTodoReq) GetBody ¶
func (x *CreateTodoReq) GetBody() string
func (*CreateTodoReq) GetTitle ¶
func (x *CreateTodoReq) GetTitle() string
func (*CreateTodoReq) ProtoMessage ¶
func (*CreateTodoReq) ProtoMessage()
func (*CreateTodoReq) ProtoReflect ¶
func (x *CreateTodoReq) ProtoReflect() protoreflect.Message
func (*CreateTodoReq) Reset ¶
func (x *CreateTodoReq) Reset()
func (*CreateTodoReq) String ¶
func (x *CreateTodoReq) String() string
type CreateTodoRes ¶
type CreateTodoRes struct { Todo *Todo `protobuf:"bytes,1,opt,name=todo,proto3" json:"todo,omitempty"` // contains filtered or unexported fields }
func (*CreateTodoRes) Descriptor
deprecated
func (*CreateTodoRes) Descriptor() ([]byte, []int)
Deprecated: Use CreateTodoRes.ProtoReflect.Descriptor instead.
func (*CreateTodoRes) GetTodo ¶
func (x *CreateTodoRes) GetTodo() *Todo
func (*CreateTodoRes) ProtoMessage ¶
func (*CreateTodoRes) ProtoMessage()
func (*CreateTodoRes) ProtoReflect ¶
func (x *CreateTodoRes) ProtoReflect() protoreflect.Message
func (*CreateTodoRes) Reset ¶
func (x *CreateTodoRes) Reset()
func (*CreateTodoRes) String ¶
func (x *CreateTodoRes) String() string
type DeleteTodoReq ¶
type DeleteTodoReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteTodoReq) Descriptor
deprecated
func (*DeleteTodoReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTodoReq.ProtoReflect.Descriptor instead.
func (*DeleteTodoReq) GetId ¶
func (x *DeleteTodoReq) GetId() string
func (*DeleteTodoReq) ProtoMessage ¶
func (*DeleteTodoReq) ProtoMessage()
func (*DeleteTodoReq) ProtoReflect ¶
func (x *DeleteTodoReq) ProtoReflect() protoreflect.Message
func (*DeleteTodoReq) Reset ¶
func (x *DeleteTodoReq) Reset()
func (*DeleteTodoReq) String ¶
func (x *DeleteTodoReq) String() string
type DeleteTodoRes ¶
type DeleteTodoRes struct {
// contains filtered or unexported fields
}
func (*DeleteTodoRes) Descriptor
deprecated
func (*DeleteTodoRes) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTodoRes.ProtoReflect.Descriptor instead.
func (*DeleteTodoRes) ProtoMessage ¶
func (*DeleteTodoRes) ProtoMessage()
func (*DeleteTodoRes) ProtoReflect ¶
func (x *DeleteTodoRes) ProtoReflect() protoreflect.Message
func (*DeleteTodoRes) Reset ¶
func (x *DeleteTodoRes) Reset()
func (*DeleteTodoRes) String ¶
func (x *DeleteTodoRes) String() string
type Filters ¶
type Filters struct { Done *bool `protobuf:"varint,1,opt,name=done,proto3,oneof" json:"done,omitempty"` // contains filtered or unexported fields }
func (*Filters) Descriptor
deprecated
func (*Filters) ProtoMessage ¶
func (*Filters) ProtoMessage()
func (*Filters) ProtoReflect ¶
func (x *Filters) ProtoReflect() protoreflect.Message
type GetTodoReq ¶
type GetTodoReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetTodoReq) Descriptor
deprecated
func (*GetTodoReq) Descriptor() ([]byte, []int)
Deprecated: Use GetTodoReq.ProtoReflect.Descriptor instead.
func (*GetTodoReq) GetId ¶
func (x *GetTodoReq) GetId() string
func (*GetTodoReq) ProtoMessage ¶
func (*GetTodoReq) ProtoMessage()
func (*GetTodoReq) ProtoReflect ¶
func (x *GetTodoReq) ProtoReflect() protoreflect.Message
func (*GetTodoReq) Reset ¶
func (x *GetTodoReq) Reset()
func (*GetTodoReq) String ¶
func (x *GetTodoReq) String() string
type GetTodoRes ¶
type GetTodoRes struct { Todo *Todo `protobuf:"bytes,1,opt,name=todo,proto3" json:"todo,omitempty"` // contains filtered or unexported fields }
func (*GetTodoRes) Descriptor
deprecated
func (*GetTodoRes) Descriptor() ([]byte, []int)
Deprecated: Use GetTodoRes.ProtoReflect.Descriptor instead.
func (*GetTodoRes) GetTodo ¶
func (x *GetTodoRes) GetTodo() *Todo
func (*GetTodoRes) ProtoMessage ¶
func (*GetTodoRes) ProtoMessage()
func (*GetTodoRes) ProtoReflect ¶
func (x *GetTodoRes) ProtoReflect() protoreflect.Message
func (*GetTodoRes) Reset ¶
func (x *GetTodoRes) Reset()
func (*GetTodoRes) String ¶
func (x *GetTodoRes) String() string
type GetTodosReq ¶
type GetTodosReq struct { Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*GetTodosReq) Descriptor
deprecated
func (*GetTodosReq) Descriptor() ([]byte, []int)
Deprecated: Use GetTodosReq.ProtoReflect.Descriptor instead.
func (*GetTodosReq) GetIds ¶
func (x *GetTodosReq) GetIds() []string
func (*GetTodosReq) ProtoMessage ¶
func (*GetTodosReq) ProtoMessage()
func (*GetTodosReq) ProtoReflect ¶
func (x *GetTodosReq) ProtoReflect() protoreflect.Message
func (*GetTodosReq) Reset ¶
func (x *GetTodosReq) Reset()
func (*GetTodosReq) String ¶
func (x *GetTodosReq) String() string
type GetTodosRes ¶
type GetTodosRes struct { Todos []*Todo `protobuf:"bytes,1,rep,name=todos,proto3" json:"todos,omitempty"` // contains filtered or unexported fields }
func (*GetTodosRes) Descriptor
deprecated
func (*GetTodosRes) Descriptor() ([]byte, []int)
Deprecated: Use GetTodosRes.ProtoReflect.Descriptor instead.
func (*GetTodosRes) GetTodos ¶
func (x *GetTodosRes) GetTodos() []*Todo
func (*GetTodosRes) ProtoMessage ¶
func (*GetTodosRes) ProtoMessage()
func (*GetTodosRes) ProtoReflect ¶
func (x *GetTodosRes) ProtoReflect() protoreflect.Message
func (*GetTodosRes) Reset ¶
func (x *GetTodosRes) Reset()
func (*GetTodosRes) String ¶
func (x *GetTodosRes) String() string
type ListTodosReq ¶
type ListTodosReq struct { Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Filters *Filters `protobuf:"bytes,3,opt,name=filters,proto3" json:"filters,omitempty"` // contains filtered or unexported fields }
func (*ListTodosReq) Descriptor
deprecated
func (*ListTodosReq) Descriptor() ([]byte, []int)
Deprecated: Use ListTodosReq.ProtoReflect.Descriptor instead.
func (*ListTodosReq) GetFilters ¶
func (x *ListTodosReq) GetFilters() *Filters
func (*ListTodosReq) GetLimit ¶
func (x *ListTodosReq) GetLimit() int32
func (*ListTodosReq) GetOffset ¶
func (x *ListTodosReq) GetOffset() int32
func (*ListTodosReq) ProtoMessage ¶
func (*ListTodosReq) ProtoMessage()
func (*ListTodosReq) ProtoReflect ¶
func (x *ListTodosReq) ProtoReflect() protoreflect.Message
func (*ListTodosReq) Reset ¶
func (x *ListTodosReq) Reset()
func (*ListTodosReq) String ¶
func (x *ListTodosReq) String() string
type ListTodosRes ¶
type ListTodosRes struct { Todos []*Todo `protobuf:"bytes,1,rep,name=todos,proto3" json:"todos,omitempty"` Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListTodosRes) Descriptor
deprecated
func (*ListTodosRes) Descriptor() ([]byte, []int)
Deprecated: Use ListTodosRes.ProtoReflect.Descriptor instead.
func (*ListTodosRes) GetLimit ¶
func (x *ListTodosRes) GetLimit() int32
func (*ListTodosRes) GetOffset ¶
func (x *ListTodosRes) GetOffset() int32
func (*ListTodosRes) GetTodos ¶
func (x *ListTodosRes) GetTodos() []*Todo
func (*ListTodosRes) GetTotal ¶
func (x *ListTodosRes) GetTotal() int32
func (*ListTodosRes) ProtoMessage ¶
func (*ListTodosRes) ProtoMessage()
func (*ListTodosRes) ProtoReflect ¶
func (x *ListTodosRes) ProtoReflect() protoreflect.Message
func (*ListTodosRes) Reset ¶
func (x *ListTodosRes) Reset()
func (*ListTodosRes) String ¶
func (x *ListTodosRes) String() string
type Todo ¶
type Todo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` Author string `protobuf:"bytes,4,opt,name=author,proto3" json:"author,omitempty"` IsDone bool `protobuf:"varint,5,opt,name=is_done,json=isDone,proto3" json:"is_done,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` DeletedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
func (*Todo) Descriptor
deprecated
func (*Todo) GetCreatedAt ¶
func (*Todo) GetDeletedAt ¶
func (*Todo) GetUpdatedAt ¶
func (*Todo) ProtoMessage ¶
func (*Todo) ProtoMessage()
func (*Todo) ProtoReflect ¶
func (x *Todo) ProtoReflect() protoreflect.Message
type TodosServiceClient ¶
type TodosServiceClient interface { CreateTodo(ctx context.Context, in *CreateTodoReq, opts ...grpc.CallOption) (*CreateTodoRes, error) GetTodo(ctx context.Context, in *GetTodoReq, opts ...grpc.CallOption) (*GetTodoRes, error) GetTodos(ctx context.Context, in *GetTodosReq, opts ...grpc.CallOption) (*GetTodosRes, error) UpdateTodo(ctx context.Context, in *UpdateTodoReq, opts ...grpc.CallOption) (*UpdateTodoRes, error) DeleteTodo(ctx context.Context, in *DeleteTodoReq, opts ...grpc.CallOption) (*DeleteTodoRes, error) ListTodos(ctx context.Context, in *ListTodosReq, opts ...grpc.CallOption) (*ListTodosRes, error) }
TodosServiceClient is the client API for TodosService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewTodosServiceClient ¶
func NewTodosServiceClient(cc grpc.ClientConnInterface) TodosServiceClient
type TodosServiceServer ¶
type TodosServiceServer interface { CreateTodo(context.Context, *CreateTodoReq) (*CreateTodoRes, error) GetTodo(context.Context, *GetTodoReq) (*GetTodoRes, error) GetTodos(context.Context, *GetTodosReq) (*GetTodosRes, error) UpdateTodo(context.Context, *UpdateTodoReq) (*UpdateTodoRes, error) DeleteTodo(context.Context, *DeleteTodoReq) (*DeleteTodoRes, error) ListTodos(context.Context, *ListTodosReq) (*ListTodosRes, error) }
TodosServiceServer is the server API for TodosService service. All implementations should embed UnimplementedTodosServiceServer for forward compatibility
type UnimplementedTodosServiceServer ¶
type UnimplementedTodosServiceServer struct { }
UnimplementedTodosServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedTodosServiceServer) CreateTodo ¶
func (UnimplementedTodosServiceServer) CreateTodo(context.Context, *CreateTodoReq) (*CreateTodoRes, error)
func (UnimplementedTodosServiceServer) DeleteTodo ¶
func (UnimplementedTodosServiceServer) DeleteTodo(context.Context, *DeleteTodoReq) (*DeleteTodoRes, error)
func (UnimplementedTodosServiceServer) GetTodo ¶
func (UnimplementedTodosServiceServer) GetTodo(context.Context, *GetTodoReq) (*GetTodoRes, error)
func (UnimplementedTodosServiceServer) GetTodos ¶
func (UnimplementedTodosServiceServer) GetTodos(context.Context, *GetTodosReq) (*GetTodosRes, error)
func (UnimplementedTodosServiceServer) ListTodos ¶
func (UnimplementedTodosServiceServer) ListTodos(context.Context, *ListTodosReq) (*ListTodosRes, error)
func (UnimplementedTodosServiceServer) UpdateTodo ¶
func (UnimplementedTodosServiceServer) UpdateTodo(context.Context, *UpdateTodoReq) (*UpdateTodoRes, error)
type UnsafeTodosServiceServer ¶
type UnsafeTodosServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTodosServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TodosServiceServer will result in compilation errors.
type UpdateTodoReq ¶
type UpdateTodoReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title *string `protobuf:"bytes,2,opt,name=title,proto3,oneof" json:"title,omitempty"` Body *string `protobuf:"bytes,3,opt,name=body,proto3,oneof" json:"body,omitempty"` Author *string `protobuf:"bytes,4,opt,name=author,proto3,oneof" json:"author,omitempty"` IsDone *bool `protobuf:"varint,5,opt,name=is_done,json=isDone,proto3,oneof" json:"is_done,omitempty"` // contains filtered or unexported fields }
func (*UpdateTodoReq) Descriptor
deprecated
func (*UpdateTodoReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTodoReq.ProtoReflect.Descriptor instead.
func (*UpdateTodoReq) GetAuthor ¶
func (x *UpdateTodoReq) GetAuthor() string
func (*UpdateTodoReq) GetBody ¶
func (x *UpdateTodoReq) GetBody() string
func (*UpdateTodoReq) GetId ¶
func (x *UpdateTodoReq) GetId() string
func (*UpdateTodoReq) GetIsDone ¶
func (x *UpdateTodoReq) GetIsDone() bool
func (*UpdateTodoReq) GetTitle ¶
func (x *UpdateTodoReq) GetTitle() string
func (*UpdateTodoReq) ProtoMessage ¶
func (*UpdateTodoReq) ProtoMessage()
func (*UpdateTodoReq) ProtoReflect ¶
func (x *UpdateTodoReq) ProtoReflect() protoreflect.Message
func (*UpdateTodoReq) Reset ¶
func (x *UpdateTodoReq) Reset()
func (*UpdateTodoReq) String ¶
func (x *UpdateTodoReq) String() string
type UpdateTodoRes ¶
type UpdateTodoRes struct { Todo *Todo `protobuf:"bytes,1,opt,name=todo,proto3" json:"todo,omitempty"` // contains filtered or unexported fields }
func (*UpdateTodoRes) Descriptor
deprecated
func (*UpdateTodoRes) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTodoRes.ProtoReflect.Descriptor instead.
func (*UpdateTodoRes) GetTodo ¶
func (x *UpdateTodoRes) GetTodo() *Todo
func (*UpdateTodoRes) ProtoMessage ¶
func (*UpdateTodoRes) ProtoMessage()
func (*UpdateTodoRes) ProtoReflect ¶
func (x *UpdateTodoRes) ProtoReflect() protoreflect.Message
func (*UpdateTodoRes) Reset ¶
func (x *UpdateTodoRes) Reset()
func (*UpdateTodoRes) String ¶
func (x *UpdateTodoRes) String() string