proto

package
v0.0.0-...-6d11654 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use Filters.ProtoReflect.Descriptor instead.

func (*Filters) GetDone

func (x *Filters) GetDone() bool

func (*Filters) ProtoMessage

func (*Filters) ProtoMessage()

func (*Filters) ProtoReflect

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

func (*Filters) Reset

func (x *Filters) Reset()

func (*Filters) String

func (x *Filters) String() string

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

Deprecated: Use Todo.ProtoReflect.Descriptor instead.

func (*Todo) GetAuthor

func (x *Todo) GetAuthor() string

func (*Todo) GetBody

func (x *Todo) GetBody() string

func (*Todo) GetCreatedAt

func (x *Todo) GetCreatedAt() *timestamp.Timestamp

func (*Todo) GetDeletedAt

func (x *Todo) GetDeletedAt() *timestamp.Timestamp

func (*Todo) GetId

func (x *Todo) GetId() string

func (*Todo) GetIsDone

func (x *Todo) GetIsDone() bool

func (*Todo) GetTitle

func (x *Todo) GetTitle() string

func (*Todo) GetUpdatedAt

func (x *Todo) GetUpdatedAt() *timestamp.Timestamp

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 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.

type TodosServiceServer

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

func (UnimplementedTodosServiceServer) GetTodo

func (UnimplementedTodosServiceServer) GetTodos

func (UnimplementedTodosServiceServer) ListTodos

func (UnimplementedTodosServiceServer) UpdateTodo

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

Jump to

Keyboard shortcuts

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