proto

package
v0.0.0-...-bcff216 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func RegisterCheckingServicesServer

func RegisterCheckingServicesServer(s *grpc.Server, srv CheckingServicesServer)

Types

type CheckingServicesClient

type CheckingServicesClient interface {
	GetResponse(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
	UploadFile(ctx context.Context, in *Files, opts ...grpc.CallOption) (*FileResponse, error)
	DownloadFile(ctx context.Context, in *DownloadFileName, opts ...grpc.CallOption) (*Files, error)
}

CheckingServicesClient is the client API for CheckingServices service.

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

type CheckingServicesServer

type CheckingServicesServer interface {
	GetResponse(context.Context, *Request) (*Response, error)
	UploadFile(context.Context, *Files) (*FileResponse, error)
	DownloadFile(context.Context, *DownloadFileName) (*Files, error)
}

CheckingServicesServer is the server API for CheckingServices service.

type DownloadFileName

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

func (*DownloadFileName) Descriptor deprecated

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

Deprecated: Use DownloadFileName.ProtoReflect.Descriptor instead.

func (*DownloadFileName) GetName

func (x *DownloadFileName) GetName() string

func (*DownloadFileName) ProtoMessage

func (*DownloadFileName) ProtoMessage()

func (*DownloadFileName) ProtoReflect

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

func (*DownloadFileName) Reset

func (x *DownloadFileName) Reset()

func (*DownloadFileName) String

func (x *DownloadFileName) String() string

type FileResponse

type FileResponse struct {
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*FileResponse) Descriptor deprecated

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

Deprecated: Use FileResponse.ProtoReflect.Descriptor instead.

func (*FileResponse) GetMsg

func (x *FileResponse) GetMsg() string

func (*FileResponse) ProtoMessage

func (*FileResponse) ProtoMessage()

func (*FileResponse) ProtoReflect

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

func (*FileResponse) Reset

func (x *FileResponse) Reset()

func (*FileResponse) String

func (x *FileResponse) String() string

type Files

type Files struct {
	FileName    string  `protobuf:"bytes,1,opt,name=fileName,proto3" json:"fileName,omitempty"`
	FileContent []byte  `protobuf:"bytes,17,opt,name=fileContent,proto3" json:"fileContent,omitempty"`
	Path        string  `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Checksum    float64 `protobuf:"fixed64,3,opt,name=checksum,proto3" json:"checksum,omitempty"`
	// contains filtered or unexported fields
}

func (*Files) Descriptor deprecated

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

Deprecated: Use Files.ProtoReflect.Descriptor instead.

func (*Files) GetChecksum

func (x *Files) GetChecksum() float64

func (*Files) GetFileContent

func (x *Files) GetFileContent() []byte

func (*Files) GetFileName

func (x *Files) GetFileName() string

func (*Files) GetPath

func (x *Files) GetPath() string

func (*Files) ProtoMessage

func (*Files) ProtoMessage()

func (*Files) ProtoReflect

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

func (*Files) Reset

func (x *Files) Reset()

func (*Files) String

func (x *Files) String() string

type Request

type Request struct {
	Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetBody

func (x *Request) GetBody() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {
	Body string `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetBody

func (x *Response) GetBody() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type UnimplementedCheckingServicesServer

type UnimplementedCheckingServicesServer struct {
}

UnimplementedCheckingServicesServer can be embedded to have forward compatible implementations.

func (*UnimplementedCheckingServicesServer) DownloadFile

func (*UnimplementedCheckingServicesServer) GetResponse

func (*UnimplementedCheckingServicesServer) UploadFile

Jump to

Keyboard shortcuts

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