file

package
v0.0.0-...-8960aa7 Latest Latest
Warning

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

Go to latest
Published: May 4, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterFileServiceServer

func RegisterFileServiceServer(s *grpc.Server, srv FileServiceServer)

Types

type FileRequest

type FileRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FileRequest) Descriptor

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

func (*FileRequest) GetName

func (m *FileRequest) GetName() string

func (*FileRequest) ProtoMessage

func (*FileRequest) ProtoMessage()

func (*FileRequest) Reset

func (m *FileRequest) Reset()

func (*FileRequest) String

func (m *FileRequest) String() string

func (*FileRequest) XXX_DiscardUnknown

func (m *FileRequest) XXX_DiscardUnknown()

func (*FileRequest) XXX_Marshal

func (m *FileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileRequest) XXX_Merge

func (m *FileRequest) XXX_Merge(src proto.Message)

func (*FileRequest) XXX_Size

func (m *FileRequest) XXX_Size() int

func (*FileRequest) XXX_Unmarshal

func (m *FileRequest) XXX_Unmarshal(b []byte) error

type FileResponse

type FileResponse struct {
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FileResponse) Descriptor

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

func (*FileResponse) GetData

func (m *FileResponse) GetData() []byte

func (*FileResponse) ProtoMessage

func (*FileResponse) ProtoMessage()

func (*FileResponse) Reset

func (m *FileResponse) Reset()

func (*FileResponse) String

func (m *FileResponse) String() string

func (*FileResponse) XXX_DiscardUnknown

func (m *FileResponse) XXX_DiscardUnknown()

func (*FileResponse) XXX_Marshal

func (m *FileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FileResponse) XXX_Merge

func (m *FileResponse) XXX_Merge(src proto.Message)

func (*FileResponse) XXX_Size

func (m *FileResponse) XXX_Size() int

func (*FileResponse) XXX_Unmarshal

func (m *FileResponse) XXX_Unmarshal(b []byte) error

type FileServiceClient

type FileServiceClient interface {
	Download(ctx context.Context, in *FileRequest, opts ...grpc.CallOption) (FileService_DownloadClient, error)
}

FileServiceClient is the client API for FileService service.

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

func NewFileServiceClient

func NewFileServiceClient(cc *grpc.ClientConn) FileServiceClient

type FileServiceServer

type FileServiceServer interface {
	Download(*FileRequest, FileService_DownloadServer) error
}

FileServiceServer is the server API for FileService service.

type FileService_DownloadClient

type FileService_DownloadClient interface {
	Recv() (*FileResponse, error)
	grpc.ClientStream
}

type FileService_DownloadServer

type FileService_DownloadServer interface {
	Send(*FileResponse) error
	grpc.ServerStream
}

type UnimplementedFileServiceServer

type UnimplementedFileServiceServer struct {
}

UnimplementedFileServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedFileServiceServer) Download

Jump to

Keyboard shortcuts

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