dl

package
v0.0.0-...-5129a00 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dl_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Dl",
	HandlerType: (*DlServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "DownloadPlatforms",
			Handler:       _Dl_DownloadPlatforms_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "dl/dl.proto",
}

Dl_ServiceDesc is the grpc.ServiceDesc for Dl 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_dl_dl_proto protoreflect.FileDescriptor

Functions

func RegisterDlServer

func RegisterDlServer(s grpc.ServiceRegistrar, srv DlServer)

Types

type DlClient

type DlClient interface {
	DownloadPlatforms(ctx context.Context, in *PlatformsDownloadReq, opts ...grpc.CallOption) (Dl_DownloadPlatformsClient, error)
}

DlClient is the client API for Dl 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 NewDlClient

func NewDlClient(cc grpc.ClientConnInterface) DlClient

type DlServer

type DlServer interface {
	DownloadPlatforms(*PlatformsDownloadReq, Dl_DownloadPlatformsServer) error
	// contains filtered or unexported methods
}

DlServer is the server API for Dl service. All implementations must embed UnimplementedDlServer for forward compatibility

type Dl_DownloadPlatformsClient

type Dl_DownloadPlatformsClient interface {
	Recv() (*PlatformsDownloadStatus, error)
	grpc.ClientStream
}

type Dl_DownloadPlatformsServer

type Dl_DownloadPlatformsServer interface {
	Send(*PlatformsDownloadStatus) error
	grpc.ServerStream
}

type PlatformsDownloadReq

type PlatformsDownloadReq struct {
	Platforms []string `protobuf:"bytes,1,rep,name=platforms,proto3" json:"platforms,omitempty"`
	// contains filtered or unexported fields
}

func (*PlatformsDownloadReq) Descriptor deprecated

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

Deprecated: Use PlatformsDownloadReq.ProtoReflect.Descriptor instead.

func (*PlatformsDownloadReq) GetPlatforms

func (x *PlatformsDownloadReq) GetPlatforms() []string

func (*PlatformsDownloadReq) ProtoMessage

func (*PlatformsDownloadReq) ProtoMessage()

func (*PlatformsDownloadReq) ProtoReflect

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

func (*PlatformsDownloadReq) Reset

func (x *PlatformsDownloadReq) Reset()

func (*PlatformsDownloadReq) String

func (x *PlatformsDownloadReq) String() string

type PlatformsDownloadStatus

type PlatformsDownloadStatus struct {
	Platform string `protobuf:"bytes,1,opt,name=platform,proto3" json:"platform,omitempty"`
	Process  string `protobuf:"bytes,2,opt,name=process,proto3" json:"process,omitempty"`
	Step     string `protobuf:"bytes,3,opt,name=step,proto3" json:"step,omitempty"`
	Message  string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*PlatformsDownloadStatus) Descriptor deprecated

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

Deprecated: Use PlatformsDownloadStatus.ProtoReflect.Descriptor instead.

func (*PlatformsDownloadStatus) GetMessage

func (x *PlatformsDownloadStatus) GetMessage() string

func (*PlatformsDownloadStatus) GetPlatform

func (x *PlatformsDownloadStatus) GetPlatform() string

func (*PlatformsDownloadStatus) GetProcess

func (x *PlatformsDownloadStatus) GetProcess() string

func (*PlatformsDownloadStatus) GetStep

func (x *PlatformsDownloadStatus) GetStep() string

func (*PlatformsDownloadStatus) ProtoMessage

func (*PlatformsDownloadStatus) ProtoMessage()

func (*PlatformsDownloadStatus) ProtoReflect

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

func (*PlatformsDownloadStatus) Reset

func (x *PlatformsDownloadStatus) Reset()

func (*PlatformsDownloadStatus) String

func (x *PlatformsDownloadStatus) String() string

type UnimplementedDlServer

type UnimplementedDlServer struct {
}

UnimplementedDlServer must be embedded to have forward compatible implementations.

func (UnimplementedDlServer) DownloadPlatforms

type UnsafeDlServer

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

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

Jump to

Keyboard shortcuts

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