servicev1

package
v0.0.0-...-ffe4551 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToDoService_CreateToDos_FullMethodName = "/to_do.service.v1.ToDoService/CreateToDos"
	ToDoService_ListToDos_FullMethodName   = "/to_do.service.v1.ToDoService/ListToDos"
)

Variables

View Source
var File_to_do_service_v1_service_proto protoreflect.FileDescriptor
View Source
var ToDoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "to_do.service.v1.ToDoService",
	HandlerType: (*ToDoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateToDos",
			Handler:    _ToDoService_CreateToDos_Handler,
		},
		{
			MethodName: "ListToDos",
			Handler:    _ToDoService_ListToDos_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "to_do/service/v1/service.proto",
}

ToDoService_ServiceDesc is the grpc.ServiceDesc for ToDoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterToDoServiceServer

func RegisterToDoServiceServer(s grpc.ServiceRegistrar, srv ToDoServiceServer)

Types

type CreateToDos

type CreateToDos struct {
	Message       string                 `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Details       *string                `protobuf:"bytes,2,opt,name=details,proto3,oneof" json:"details,omitempty"`
	DueDate       *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=due_date,json=dueDate,proto3,oneof" json:"due_date,omitempty"`
	Priority      *v1.Priority           `protobuf:"varint,4,opt,name=priority,proto3,enum=to_do.model.v1.Priority,oneof" json:"priority,omitempty"`
	LevelOfEffort *v1.LevelOfEffort      `` /* 143-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreateToDos) Descriptor deprecated

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

Deprecated: Use CreateToDos.ProtoReflect.Descriptor instead.

func (*CreateToDos) GetDetails

func (x *CreateToDos) GetDetails() string

func (*CreateToDos) GetDueDate

func (x *CreateToDos) GetDueDate() *timestamppb.Timestamp

func (*CreateToDos) GetLevelOfEffort

func (x *CreateToDos) GetLevelOfEffort() v1.LevelOfEffort

func (*CreateToDos) GetMessage

func (x *CreateToDos) GetMessage() string

func (*CreateToDos) GetPriority

func (x *CreateToDos) GetPriority() v1.Priority

func (*CreateToDos) ProtoMessage

func (*CreateToDos) ProtoMessage()

func (*CreateToDos) ProtoReflect

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

func (*CreateToDos) Reset

func (x *CreateToDos) Reset()

func (*CreateToDos) String

func (x *CreateToDos) String() string

type CreateToDosRequest

type CreateToDosRequest struct {
	CreateToDos []*CreateToDos `protobuf:"bytes,1,rep,name=create_to_dos,json=createToDos,proto3" json:"create_to_dos,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateToDosRequest) Descriptor deprecated

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

Deprecated: Use CreateToDosRequest.ProtoReflect.Descriptor instead.

func (*CreateToDosRequest) GetCreateToDos

func (x *CreateToDosRequest) GetCreateToDos() []*CreateToDos

func (*CreateToDosRequest) ProtoMessage

func (*CreateToDosRequest) ProtoMessage()

func (*CreateToDosRequest) ProtoReflect

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

func (*CreateToDosRequest) Reset

func (x *CreateToDosRequest) Reset()

func (*CreateToDosRequest) String

func (x *CreateToDosRequest) String() string

type CreateToDosResponse

type CreateToDosResponse struct {
	ToDos []*v1.ToDo `protobuf:"bytes,1,rep,name=to_dos,json=toDos,proto3" json:"to_dos,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateToDosResponse) Descriptor deprecated

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

Deprecated: Use CreateToDosResponse.ProtoReflect.Descriptor instead.

func (*CreateToDosResponse) GetToDos

func (x *CreateToDosResponse) GetToDos() []*v1.ToDo

func (*CreateToDosResponse) ProtoMessage

func (*CreateToDosResponse) ProtoMessage()

func (*CreateToDosResponse) ProtoReflect

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

func (*CreateToDosResponse) Reset

func (x *CreateToDosResponse) Reset()

func (*CreateToDosResponse) String

func (x *CreateToDosResponse) String() string

type ListToDosRequest

type ListToDosRequest struct {

	// ids
	Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	// pagination
	PageSize  int32  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListToDosRequest) Descriptor deprecated

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

Deprecated: Use ListToDosRequest.ProtoReflect.Descriptor instead.

func (*ListToDosRequest) GetIds

func (x *ListToDosRequest) GetIds() []string

func (*ListToDosRequest) GetPageSize

func (x *ListToDosRequest) GetPageSize() int32

func (*ListToDosRequest) GetPageToken

func (x *ListToDosRequest) GetPageToken() string

func (*ListToDosRequest) ProtoMessage

func (*ListToDosRequest) ProtoMessage()

func (*ListToDosRequest) ProtoReflect

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

func (*ListToDosRequest) Reset

func (x *ListToDosRequest) Reset()

func (*ListToDosRequest) String

func (x *ListToDosRequest) String() string

type ListToDosResponse

type ListToDosResponse struct {
	ToDos         []*v1.ToDo `protobuf:"bytes,1,rep,name=to_dos,json=toDos,proto3" json:"to_dos,omitempty"`
	NextPageToken string     `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListToDosResponse) Descriptor deprecated

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

Deprecated: Use ListToDosResponse.ProtoReflect.Descriptor instead.

func (*ListToDosResponse) GetNextPageToken

func (x *ListToDosResponse) GetNextPageToken() string

func (*ListToDosResponse) GetToDos

func (x *ListToDosResponse) GetToDos() []*v1.ToDo

func (*ListToDosResponse) ProtoMessage

func (*ListToDosResponse) ProtoMessage()

func (*ListToDosResponse) ProtoReflect

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

func (*ListToDosResponse) Reset

func (x *ListToDosResponse) Reset()

func (*ListToDosResponse) String

func (x *ListToDosResponse) String() string

type ToDoServiceClient

type ToDoServiceClient interface {
	CreateToDos(ctx context.Context, in *CreateToDosRequest, opts ...grpc.CallOption) (*CreateToDosResponse, error)
	ListToDos(ctx context.Context, in *ListToDosRequest, opts ...grpc.CallOption) (*ListToDosResponse, 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 ToDoServiceServer

type ToDoServiceServer interface {
	CreateToDos(context.Context, *CreateToDosRequest) (*CreateToDosResponse, error)
	ListToDos(context.Context, *ListToDosRequest) (*ListToDosResponse, error)
}

ToDoServiceServer is the server API for ToDoService service. All implementations should embed UnimplementedToDoServiceServer for forward compatibility

type UnimplementedToDoServiceServer

type UnimplementedToDoServiceServer struct {
}

UnimplementedToDoServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedToDoServiceServer) CreateToDos

func (UnimplementedToDoServiceServer) ListToDos

type UnsafeToDoServiceServer

type UnsafeToDoServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeToDoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ToDoServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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