Documentation ¶
Index ¶
- Variables
- func RegisterDownloadServer(s grpc.ServiceRegistrar, srv DownloadServer)
- type DownloadClient
- type DownloadMembersZipReply
- func (*DownloadMembersZipReply) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadMembersZipReply) GetData() []byte
- func (*DownloadMembersZipReply) ProtoMessage()
- func (x *DownloadMembersZipReply) ProtoReflect() protoreflect.Message
- func (x *DownloadMembersZipReply) Reset()
- func (x *DownloadMembersZipReply) String() string
- type DownloadMembersZipRequest
- func (*DownloadMembersZipRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DownloadMembersZipRequest) GetGroup() GroupType
- func (*DownloadMembersZipRequest) ProtoMessage()
- func (x *DownloadMembersZipRequest) ProtoReflect() protoreflect.Message
- func (x *DownloadMembersZipRequest) Reset()
- func (x *DownloadMembersZipRequest) String() string
- type DownloadServer
- type Download_DownloadMembersZipClient
- type Download_DownloadMembersZipServer
- type GroupType
- type HealthReply
- type HealthRequest
- type UnimplementedDownloadServer
- type UnsafeDownloadServer
Constants ¶
This section is empty.
Variables ¶
var ( GroupType_name = map[int32]string{ 0: "GROUP_ALL", 1: "NOGIZAKA", 2: "SAKURAZAKA", 3: "HINATAZAKA", } GroupType_value = map[string]int32{ "GROUP_ALL": 0, "NOGIZAKA": 1, "SAKURAZAKA": 2, "HINATAZAKA": 3, } )
Enum value maps for GroupType.
var Download_ServiceDesc = grpc.ServiceDesc{ ServiceName: "download.service.Download", HandlerType: (*DownloadServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Health", Handler: _Download_Health_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "DownloadMembersZip", Handler: _Download_DownloadMembersZip_Handler, ServerStreams: true, }, }, Metadata: "donload.proto", }
Download_ServiceDesc is the grpc.ServiceDesc for Download service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_donload_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDownloadServer ¶
func RegisterDownloadServer(s grpc.ServiceRegistrar, srv DownloadServer)
Types ¶
type DownloadClient ¶
type DownloadClient interface { // ヘルスチェックを行うエンドポイント。 Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthReply, error) // 写真も含むメンバー情報一覧を Zip でダウンロードするエンドポイント。 DownloadMembersZip(ctx context.Context, in *DownloadMembersZipRequest, opts ...grpc.CallOption) (Download_DownloadMembersZipClient, error) }
DownloadClient is the client API for Download 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 NewDownloadClient ¶
func NewDownloadClient(cc grpc.ClientConnInterface) DownloadClient
type DownloadMembersZipReply ¶
type DownloadMembersZipReply struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*DownloadMembersZipReply) Descriptor
deprecated
func (*DownloadMembersZipReply) Descriptor() ([]byte, []int)
Deprecated: Use DownloadMembersZipReply.ProtoReflect.Descriptor instead.
func (*DownloadMembersZipReply) GetData ¶
func (x *DownloadMembersZipReply) GetData() []byte
func (*DownloadMembersZipReply) ProtoMessage ¶
func (*DownloadMembersZipReply) ProtoMessage()
func (*DownloadMembersZipReply) ProtoReflect ¶
func (x *DownloadMembersZipReply) ProtoReflect() protoreflect.Message
func (*DownloadMembersZipReply) Reset ¶
func (x *DownloadMembersZipReply) Reset()
func (*DownloadMembersZipReply) String ¶
func (x *DownloadMembersZipReply) String() string
type DownloadMembersZipRequest ¶
type DownloadMembersZipRequest struct { Group GroupType `protobuf:"varint,1,opt,name=group,proto3,enum=download.service.GroupType" json:"group,omitempty"` // contains filtered or unexported fields }
func (*DownloadMembersZipRequest) Descriptor
deprecated
func (*DownloadMembersZipRequest) Descriptor() ([]byte, []int)
Deprecated: Use DownloadMembersZipRequest.ProtoReflect.Descriptor instead.
func (*DownloadMembersZipRequest) GetGroup ¶
func (x *DownloadMembersZipRequest) GetGroup() GroupType
func (*DownloadMembersZipRequest) ProtoMessage ¶
func (*DownloadMembersZipRequest) ProtoMessage()
func (*DownloadMembersZipRequest) ProtoReflect ¶
func (x *DownloadMembersZipRequest) ProtoReflect() protoreflect.Message
func (*DownloadMembersZipRequest) Reset ¶
func (x *DownloadMembersZipRequest) Reset()
func (*DownloadMembersZipRequest) String ¶
func (x *DownloadMembersZipRequest) String() string
type DownloadServer ¶
type DownloadServer interface { // ヘルスチェックを行うエンドポイント。 Health(context.Context, *HealthRequest) (*HealthReply, error) // 写真も含むメンバー情報一覧を Zip でダウンロードするエンドポイント。 DownloadMembersZip(*DownloadMembersZipRequest, Download_DownloadMembersZipServer) error // contains filtered or unexported methods }
DownloadServer is the server API for Download service. All implementations must embed UnimplementedDownloadServer for forward compatibility
type Download_DownloadMembersZipClient ¶
type Download_DownloadMembersZipClient interface { Recv() (*DownloadMembersZipReply, error) grpc.ClientStream }
type Download_DownloadMembersZipServer ¶
type Download_DownloadMembersZipServer interface { Send(*DownloadMembersZipReply) error grpc.ServerStream }
type GroupType ¶
type GroupType int32
ダウンロード対象にするグループ名。
func (GroupType) Descriptor ¶
func (GroupType) Descriptor() protoreflect.EnumDescriptor
func (GroupType) EnumDescriptor
deprecated
func (GroupType) Number ¶
func (x GroupType) Number() protoreflect.EnumNumber
func (GroupType) Type ¶
func (GroupType) Type() protoreflect.EnumType
type HealthReply ¶
type HealthReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*HealthReply) Descriptor
deprecated
func (*HealthReply) Descriptor() ([]byte, []int)
Deprecated: Use HealthReply.ProtoReflect.Descriptor instead.
func (*HealthReply) GetMessage ¶
func (x *HealthReply) GetMessage() string
func (*HealthReply) ProtoMessage ¶
func (*HealthReply) ProtoMessage()
func (*HealthReply) ProtoReflect ¶
func (x *HealthReply) ProtoReflect() protoreflect.Message
func (*HealthReply) Reset ¶
func (x *HealthReply) Reset()
func (*HealthReply) String ¶
func (x *HealthReply) String() string
type HealthRequest ¶
type HealthRequest struct {
// contains filtered or unexported fields
}
func (*HealthRequest) Descriptor
deprecated
func (*HealthRequest) Descriptor() ([]byte, []int)
Deprecated: Use HealthRequest.ProtoReflect.Descriptor instead.
func (*HealthRequest) ProtoMessage ¶
func (*HealthRequest) ProtoMessage()
func (*HealthRequest) ProtoReflect ¶
func (x *HealthRequest) ProtoReflect() protoreflect.Message
func (*HealthRequest) Reset ¶
func (x *HealthRequest) Reset()
func (*HealthRequest) String ¶
func (x *HealthRequest) String() string
type UnimplementedDownloadServer ¶
type UnimplementedDownloadServer struct { }
UnimplementedDownloadServer must be embedded to have forward compatible implementations.
func (UnimplementedDownloadServer) DownloadMembersZip ¶
func (UnimplementedDownloadServer) DownloadMembersZip(*DownloadMembersZipRequest, Download_DownloadMembersZipServer) error
func (UnimplementedDownloadServer) Health ¶
func (UnimplementedDownloadServer) Health(context.Context, *HealthRequest) (*HealthReply, error)
type UnsafeDownloadServer ¶
type UnsafeDownloadServer interface {
// contains filtered or unexported methods
}
UnsafeDownloadServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DownloadServer will result in compilation errors.