Documentation
¶
Overview ¶
Package cloud_storage_service is a generated protocol buffer package.
It is generated from these files:
cloud_storage_service.proto
It has these top-level messages:
StoreRequest DeleteRequest DeleteResponse StorageObject
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCloudStorageServiceServer ¶
func RegisterCloudStorageServiceServer(s *grpc.Server, srv CloudStorageServiceServer)
Types ¶
type CloudStorageServiceClient ¶
type CloudStorageServiceClient interface { Store(ctx context.Context, in *StoreRequest, opts ...grpc.CallOption) (*StorageObject, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error) }
func NewCloudStorageServiceClient ¶
func NewCloudStorageServiceClient(cc *grpc.ClientConn) CloudStorageServiceClient
type CloudStorageServiceServer ¶
type CloudStorageServiceServer interface { Store(context.Context, *StoreRequest) (*StorageObject, error) Delete(context.Context, *DeleteRequest) (*DeleteResponse, error) }
type DeleteRequest ¶
type DeleteRequest struct {
Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"`
}
func (*DeleteRequest) Descriptor ¶
func (*DeleteRequest) Descriptor() ([]byte, []int)
func (*DeleteRequest) GetFilename ¶
func (m *DeleteRequest) GetFilename() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) Reset ¶
func (m *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (m *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct {
Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"`
}
func (*DeleteResponse) Descriptor ¶
func (*DeleteResponse) Descriptor() ([]byte, []int)
func (*DeleteResponse) GetFilename ¶
func (m *DeleteResponse) GetFilename() string
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) Reset ¶
func (m *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (m *DeleteResponse) String() string
type StorageObject ¶
type StorageObject struct { Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"` }
func (*StorageObject) Descriptor ¶
func (*StorageObject) Descriptor() ([]byte, []int)
func (*StorageObject) GetFilename ¶
func (m *StorageObject) GetFilename() string
func (*StorageObject) GetUrl ¶
func (m *StorageObject) GetUrl() string
func (*StorageObject) ProtoMessage ¶
func (*StorageObject) ProtoMessage()
func (*StorageObject) Reset ¶
func (m *StorageObject) Reset()
func (*StorageObject) String ¶
func (m *StorageObject) String() string
type StoreRequest ¶
type StoreRequest struct { Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` // The raw data of the object to be stored Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
func (*StoreRequest) Descriptor ¶
func (*StoreRequest) Descriptor() ([]byte, []int)
func (*StoreRequest) GetData ¶
func (m *StoreRequest) GetData() []byte
func (*StoreRequest) GetFilename ¶
func (m *StoreRequest) GetFilename() string
func (*StoreRequest) ProtoMessage ¶
func (*StoreRequest) ProtoMessage()
func (*StoreRequest) Reset ¶
func (m *StoreRequest) Reset()
func (*StoreRequest) String ¶
func (m *StoreRequest) String() string
Click to show internal directories.
Click to hide internal directories.