todo

package
v0.0.0-...-c8ed9d9 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_todo_todo_proto protoreflect.FileDescriptor

Functions

func RegisterTodoServiceService

func RegisterTodoServiceService(s grpc.ServiceRegistrar, srv *TodoServiceService)

RegisterTodoServiceService registers a service implementation with a gRPC server.

Types

type CreateTodoReply

type CreateTodoReply struct {
	Todo *Todo `protobuf:"bytes,1,opt,name=todo,proto3" json:"todo,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTodoReply) Descriptor deprecated

func (*CreateTodoReply) Descriptor() ([]byte, []int)

Deprecated: Use CreateTodoReply.ProtoReflect.Descriptor instead.

func (*CreateTodoReply) GetTodo

func (x *CreateTodoReply) GetTodo() *Todo

func (*CreateTodoReply) ProtoMessage

func (*CreateTodoReply) ProtoMessage()

func (*CreateTodoReply) ProtoReflect

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

func (*CreateTodoReply) Reset

func (x *CreateTodoReply) Reset()

func (*CreateTodoReply) String

func (x *CreateTodoReply) String() string

type CreateTodoRequest

type CreateTodoRequest struct {
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateTodoRequest) Descriptor deprecated

func (*CreateTodoRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateTodoRequest.ProtoReflect.Descriptor instead.

func (*CreateTodoRequest) GetTitle

func (x *CreateTodoRequest) GetTitle() string

func (*CreateTodoRequest) ProtoMessage

func (*CreateTodoRequest) ProtoMessage()

func (*CreateTodoRequest) ProtoReflect

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

func (*CreateTodoRequest) Reset

func (x *CreateTodoRequest) Reset()

func (*CreateTodoRequest) String

func (x *CreateTodoRequest) String() string

type DeleteTodoReply

type DeleteTodoReply struct {
	// contains filtered or unexported fields
}

func (*DeleteTodoReply) Descriptor deprecated

func (*DeleteTodoReply) Descriptor() ([]byte, []int)

Deprecated: Use DeleteTodoReply.ProtoReflect.Descriptor instead.

func (*DeleteTodoReply) ProtoMessage

func (*DeleteTodoReply) ProtoMessage()

func (*DeleteTodoReply) ProtoReflect

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

func (*DeleteTodoReply) Reset

func (x *DeleteTodoReply) Reset()

func (*DeleteTodoReply) String

func (x *DeleteTodoReply) String() string

type DeleteTodoRequest

type DeleteTodoRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteTodoRequest) Descriptor deprecated

func (*DeleteTodoRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteTodoRequest.ProtoReflect.Descriptor instead.

func (*DeleteTodoRequest) GetId

func (x *DeleteTodoRequest) GetId() int64

func (*DeleteTodoRequest) ProtoMessage

func (*DeleteTodoRequest) ProtoMessage()

func (*DeleteTodoRequest) ProtoReflect

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

func (*DeleteTodoRequest) Reset

func (x *DeleteTodoRequest) Reset()

func (*DeleteTodoRequest) String

func (x *DeleteTodoRequest) String() string

type DoneTodoReply

type DoneTodoReply struct {
	// contains filtered or unexported fields
}

func (*DoneTodoReply) Descriptor deprecated

func (*DoneTodoReply) Descriptor() ([]byte, []int)

Deprecated: Use DoneTodoReply.ProtoReflect.Descriptor instead.

func (*DoneTodoReply) ProtoMessage

func (*DoneTodoReply) ProtoMessage()

func (*DoneTodoReply) ProtoReflect

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

func (*DoneTodoReply) Reset

func (x *DoneTodoReply) Reset()

func (*DoneTodoReply) String

func (x *DoneTodoReply) String() string

type DoneTodoRequest

type DoneTodoRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DoneTodoRequest) Descriptor deprecated

func (*DoneTodoRequest) Descriptor() ([]byte, []int)

Deprecated: Use DoneTodoRequest.ProtoReflect.Descriptor instead.

func (*DoneTodoRequest) GetId

func (x *DoneTodoRequest) GetId() int64

func (*DoneTodoRequest) ProtoMessage

func (*DoneTodoRequest) ProtoMessage()

func (*DoneTodoRequest) ProtoReflect

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

func (*DoneTodoRequest) Reset

func (x *DoneTodoRequest) Reset()

func (*DoneTodoRequest) String

func (x *DoneTodoRequest) String() string

type GetTodoListReply

type GetTodoListReply struct {
	TodoList []*Todo `protobuf:"bytes,1,rep,name=todoList,proto3" json:"todoList,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTodoListReply) Descriptor deprecated

func (*GetTodoListReply) Descriptor() ([]byte, []int)

Deprecated: Use GetTodoListReply.ProtoReflect.Descriptor instead.

func (*GetTodoListReply) GetTodoList

func (x *GetTodoListReply) GetTodoList() []*Todo

func (*GetTodoListReply) ProtoMessage

func (*GetTodoListReply) ProtoMessage()

func (*GetTodoListReply) ProtoReflect

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

func (*GetTodoListReply) Reset

func (x *GetTodoListReply) Reset()

func (*GetTodoListReply) String

func (x *GetTodoListReply) String() string

type GetTodoListRequest

type GetTodoListRequest struct {
	// contains filtered or unexported fields
}

func (*GetTodoListRequest) Descriptor deprecated

func (*GetTodoListRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetTodoListRequest.ProtoReflect.Descriptor instead.

func (*GetTodoListRequest) ProtoMessage

func (*GetTodoListRequest) ProtoMessage()

func (*GetTodoListRequest) ProtoReflect

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

func (*GetTodoListRequest) Reset

func (x *GetTodoListRequest) Reset()

func (*GetTodoListRequest) String

func (x *GetTodoListRequest) String() string

type Todo

type Todo struct {

	// TodoのグローバルユニークID。正数。
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// タイトル
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// 完了したか
	Done bool `protobuf:"varint,3,opt,name=done,proto3" json:"done,omitempty"`
	// 作成日時 RFC3339
	Created string `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"`
	// contains filtered or unexported fields
}

Todo

func (*Todo) Descriptor deprecated

func (*Todo) Descriptor() ([]byte, []int)

Deprecated: Use Todo.ProtoReflect.Descriptor instead.

func (*Todo) GetCreated

func (x *Todo) GetCreated() string

func (*Todo) GetDone

func (x *Todo) GetDone() bool

func (*Todo) GetId

func (x *Todo) GetId() int64

func (*Todo) GetTitle

func (x *Todo) GetTitle() string

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 *CreateTodoRequest, opts ...grpc.CallOption) (*CreateTodoReply, error)
	GetTodoList(ctx context.Context, in *GetTodoListRequest, opts ...grpc.CallOption) (*GetTodoListReply, error)
	UpdateTodoTitle(ctx context.Context, in *UpdateTodoTitleRequest, opts ...grpc.CallOption) (*UpdateTodoTitleReply, error)
	DoneTodo(ctx context.Context, in *DoneTodoRequest, opts ...grpc.CallOption) (*DoneTodoReply, error)
	UnDoneTodo(ctx context.Context, in *UnDoneTodoRequest, opts ...grpc.CallOption) (*UnDoneTodoReply, error)
	DeleteTodo(ctx context.Context, in *DeleteTodoRequest, opts ...grpc.CallOption) (*DeleteTodoReply, error)
}

TodoServiceClient is the client API for TodoService 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 TodoServiceService

TodoServiceService is the service API for TodoService service. Fields should be assigned to their respective handler implementations only before RegisterTodoServiceService is called. Any unassigned fields will result in the handler for that method returning an Unimplemented error.

type UnDoneTodoReply

type UnDoneTodoReply struct {
	// contains filtered or unexported fields
}

func (*UnDoneTodoReply) Descriptor deprecated

func (*UnDoneTodoReply) Descriptor() ([]byte, []int)

Deprecated: Use UnDoneTodoReply.ProtoReflect.Descriptor instead.

func (*UnDoneTodoReply) ProtoMessage

func (*UnDoneTodoReply) ProtoMessage()

func (*UnDoneTodoReply) ProtoReflect

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

func (*UnDoneTodoReply) Reset

func (x *UnDoneTodoReply) Reset()

func (*UnDoneTodoReply) String

func (x *UnDoneTodoReply) String() string

type UnDoneTodoRequest

type UnDoneTodoRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*UnDoneTodoRequest) Descriptor deprecated

func (*UnDoneTodoRequest) Descriptor() ([]byte, []int)

Deprecated: Use UnDoneTodoRequest.ProtoReflect.Descriptor instead.

func (*UnDoneTodoRequest) GetId

func (x *UnDoneTodoRequest) GetId() int64

func (*UnDoneTodoRequest) ProtoMessage

func (*UnDoneTodoRequest) ProtoMessage()

func (*UnDoneTodoRequest) ProtoReflect

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

func (*UnDoneTodoRequest) Reset

func (x *UnDoneTodoRequest) Reset()

func (*UnDoneTodoRequest) String

func (x *UnDoneTodoRequest) String() string

type UpdateTodoTitleReply

type UpdateTodoTitleReply struct {
	// contains filtered or unexported fields
}

func (*UpdateTodoTitleReply) Descriptor deprecated

func (*UpdateTodoTitleReply) Descriptor() ([]byte, []int)

Deprecated: Use UpdateTodoTitleReply.ProtoReflect.Descriptor instead.

func (*UpdateTodoTitleReply) ProtoMessage

func (*UpdateTodoTitleReply) ProtoMessage()

func (*UpdateTodoTitleReply) ProtoReflect

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

func (*UpdateTodoTitleReply) Reset

func (x *UpdateTodoTitleReply) Reset()

func (*UpdateTodoTitleReply) String

func (x *UpdateTodoTitleReply) String() string

type UpdateTodoTitleRequest

type UpdateTodoTitleRequest struct {
	Id    int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateTodoTitleRequest) Descriptor deprecated

func (*UpdateTodoTitleRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateTodoTitleRequest.ProtoReflect.Descriptor instead.

func (*UpdateTodoTitleRequest) GetId

func (x *UpdateTodoTitleRequest) GetId() int64

func (*UpdateTodoTitleRequest) GetTitle

func (x *UpdateTodoTitleRequest) GetTitle() string

func (*UpdateTodoTitleRequest) ProtoMessage

func (*UpdateTodoTitleRequest) ProtoMessage()

func (*UpdateTodoTitleRequest) ProtoReflect

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

func (*UpdateTodoTitleRequest) Reset

func (x *UpdateTodoTitleRequest) Reset()

func (*UpdateTodoTitleRequest) String

func (x *UpdateTodoTitleRequest) String() string

Jump to

Keyboard shortcuts

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