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"`
	Data                 []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FileRequest) Descriptor

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

func (*FileRequest) GetData

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

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 {
	Size                 int64    `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*FileResponse) Descriptor

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

func (*FileResponse) GetSize

func (m *FileResponse) GetSize() int64

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 {
	Upload(ctx context.Context, opts ...grpc.CallOption) (FileService_UploadClient, 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 {
	Upload(FileService_UploadServer) error
}

FileServiceServer is the server API for FileService service.

type FileService_UploadClient

type FileService_UploadClient interface {
	Send(*FileRequest) error
	CloseAndRecv() (*FileResponse, error)
	grpc.ClientStream
}

type FileService_UploadServer

type FileService_UploadServer interface {
	SendAndClose(*FileResponse) error
	Recv() (*FileRequest, error)
	grpc.ServerStream
}

type UnimplementedFileServiceServer

type UnimplementedFileServiceServer struct {
}

UnimplementedFileServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedFileServiceServer) Upload

Jump to

Keyboard shortcuts

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