protobuf

package module
v0.0.0-...-5f359d5 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

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

View Source
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)

View Source
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 (*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

ダウンロード対象にするグループ名。

const (
	GroupType_GROUP_ALL  GroupType = 0
	GroupType_NOGIZAKA   GroupType = 1
	GroupType_SAKURAZAKA GroupType = 2
	GroupType_HINATAZAKA GroupType = 3
)

func (GroupType) Descriptor

func (GroupType) Descriptor() protoreflect.EnumDescriptor

func (GroupType) Enum

func (x GroupType) Enum() *GroupType

func (GroupType) EnumDescriptor deprecated

func (GroupType) EnumDescriptor() ([]byte, []int)

Deprecated: Use GroupType.Descriptor instead.

func (GroupType) Number

func (x GroupType) Number() protoreflect.EnumNumber

func (GroupType) String

func (x GroupType) String() string

func (GroupType) Type

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

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.

Directories

Path Synopsis
Package mockpb is a generated GoMock package.
Package mockpb is a generated GoMock package.

Jump to

Keyboard shortcuts

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