mcd

package
v1.0.3-mcd Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterDownloaderServer

func RegisterDownloaderServer(s *grpc.Server, srv DownloaderServer)

Types

type DownloadRequest

type DownloadRequest struct {
	ProjectID  string     `protobuf:"bytes,1,opt,name=projectID,proto3" json:"projectID,omitempty"`
	CommitHash string     `protobuf:"bytes,2,opt,name=commitHash,proto3" json:"commitHash,omitempty"`
	Libraries  []*Library `protobuf:"bytes,3,rep,name=libraries,proto3" json:"libraries,omitempty"`
	// contains filtered or unexported fields
}

func (*DownloadRequest) Descriptor deprecated

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

Deprecated: Use DownloadRequest.ProtoReflect.Descriptor instead.

func (*DownloadRequest) GetCommitHash

func (x *DownloadRequest) GetCommitHash() string

func (*DownloadRequest) GetLibraries

func (x *DownloadRequest) GetLibraries() []*Library

func (*DownloadRequest) GetProjectID

func (x *DownloadRequest) GetProjectID() string

func (*DownloadRequest) ProtoMessage

func (*DownloadRequest) ProtoMessage()

func (*DownloadRequest) ProtoReflect

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

func (*DownloadRequest) Reset

func (x *DownloadRequest) Reset()

func (*DownloadRequest) String

func (x *DownloadRequest) String() string

type DownloadResponse

type DownloadResponse struct {
	ProjectID  string `protobuf:"bytes,1,opt,name=projectID,proto3" json:"projectID,omitempty"`
	CommitHash string `protobuf:"bytes,2,opt,name=commitHash,proto3" json:"commitHash,omitempty"`
	// contains filtered or unexported fields
}

func (*DownloadResponse) Descriptor deprecated

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

Deprecated: Use DownloadResponse.ProtoReflect.Descriptor instead.

func (*DownloadResponse) GetCommitHash

func (x *DownloadResponse) GetCommitHash() string

func (*DownloadResponse) GetProjectID

func (x *DownloadResponse) GetProjectID() string

func (*DownloadResponse) ProtoMessage

func (*DownloadResponse) ProtoMessage()

func (*DownloadResponse) ProtoReflect

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

func (*DownloadResponse) Reset

func (x *DownloadResponse) Reset()

func (*DownloadResponse) String

func (x *DownloadResponse) String() string

type DownloaderClient

type DownloaderClient interface {
	Download(ctx context.Context, in *DownloadRequest, opts ...grpc.CallOption) (*DownloadResponse, error)
}

DownloaderClient is the client API for Downloader service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDownloaderClient

func NewDownloaderClient(cc grpc.ClientConnInterface) DownloaderClient

type DownloaderServer

type DownloaderServer interface {
	Download(context.Context, *DownloadRequest) (*DownloadResponse, error)
}

DownloaderServer is the server API for Downloader service.

type Library

type Library struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*Library) Descriptor deprecated

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

Deprecated: Use Library.ProtoReflect.Descriptor instead.

func (*Library) GetName

func (x *Library) GetName() string

func (*Library) GetType

func (x *Library) GetType() string

func (*Library) ProtoMessage

func (*Library) ProtoMessage()

func (*Library) ProtoReflect

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

func (*Library) Reset

func (x *Library) Reset()

func (*Library) String

func (x *Library) String() string

type UnimplementedDownloaderServer

type UnimplementedDownloaderServer struct {
}

UnimplementedDownloaderServer can be embedded to have forward compatible implementations.

func (*UnimplementedDownloaderServer) Download

Jump to

Keyboard shortcuts

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