Documentation ¶
Index ¶
- Variables
- func RegisterStorageAPIServer(s grpc.ServiceRegistrar, srv StorageAPIServer)
- type AggregateSitemapResponse
- type CreateFileRequest
- func (*CreateFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateFileRequest) GetFilename() string
- func (x *CreateFileRequest) GetService() string
- func (*CreateFileRequest) ProtoMessage()
- func (x *CreateFileRequest) ProtoReflect() protoreflect.Message
- func (x *CreateFileRequest) Reset()
- func (x *CreateFileRequest) String() string
- type CreateFileResponse
- func (*CreateFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateFileResponse) GetId() string
- func (x *CreateFileResponse) GetUploadUrl() string
- func (*CreateFileResponse) ProtoMessage()
- func (x *CreateFileResponse) ProtoReflect() protoreflect.Message
- func (x *CreateFileResponse) Reset()
- func (x *CreateFileResponse) String() string
- type DeleteFileRequest
- type DeleteFileResponse
- func (*DeleteFileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFileResponse) GetFilename() string
- func (*DeleteFileResponse) ProtoMessage()
- func (x *DeleteFileResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteFileResponse) Reset()
- func (x *DeleteFileResponse) String() string
- type File
- func (*File) Descriptor() ([]byte, []int)deprecated
- func (x *File) GetContentType() string
- func (x *File) GetCreatedAt() *timestamppb.Timestamp
- func (x *File) GetId() string
- func (x *File) GetImageMeta() *File_ImageFileMeta
- func (x *File) GetOriginalFileBucketLocation() string
- func (x *File) GetOwner() string
- func (x *File) GetSize() int64
- func (x *File) GetVideoMeta() *File_VideoFileMeta
- func (*File) ProtoMessage()
- func (x *File) ProtoReflect() protoreflect.Message
- func (x *File) Reset()
- func (x *File) String() string
- type FileInfo
- func (*FileInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FileInfo) GetFileName() string
- func (x *FileInfo) GetService() string
- func (x *FileInfo) GetSize() int64
- func (x *FileInfo) GetTranscoderTemplate() string
- func (x *FileInfo) GetType() string
- func (*FileInfo) ProtoMessage()
- func (x *FileInfo) ProtoReflect() protoreflect.Message
- func (x *FileInfo) Reset()
- func (x *FileInfo) String() string
- type FileRecord
- func (*FileRecord) Descriptor() ([]byte, []int)deprecated
- func (x *FileRecord) GetCreatedAt() string
- func (x *FileRecord) GetFileType() string
- func (x *FileRecord) GetFilename() string
- func (x *FileRecord) GetId() string
- func (x *FileRecord) GetSize() int64
- func (*FileRecord) ProtoMessage()
- func (x *FileRecord) ProtoReflect() protoreflect.Message
- func (x *FileRecord) Reset()
- func (x *FileRecord) String() string
- type File_ImageFileMeta
- func (*File_ImageFileMeta) Descriptor() ([]byte, []int)deprecated
- func (x *File_ImageFileMeta) GetThumbnailBucketLocation() string
- func (*File_ImageFileMeta) ProtoMessage()
- func (x *File_ImageFileMeta) ProtoReflect() protoreflect.Message
- func (x *File_ImageFileMeta) Reset()
- func (x *File_ImageFileMeta) String() string
- type File_VideoFileMeta
- func (*File_VideoFileMeta) Descriptor() ([]byte, []int)deprecated
- func (x *File_VideoFileMeta) GetDurationMilliseconds() int32
- func (x *File_VideoFileMeta) GetHlsManifestBucketLocation() string
- func (x *File_VideoFileMeta) GetThumbnailBucketLocation() string
- func (x *File_VideoFileMeta) GetUserDownloadBucketLocation() string
- func (*File_VideoFileMeta) ProtoMessage()
- func (x *File_VideoFileMeta) ProtoReflect() protoreflect.Message
- func (x *File_VideoFileMeta) Reset()
- func (x *File_VideoFileMeta) String() string
- type GetFileByFileLocationRequest
- func (*GetFileByFileLocationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFileByFileLocationRequest) GetOriginalFileLocation() string
- func (*GetFileByFileLocationRequest) ProtoMessage()
- func (x *GetFileByFileLocationRequest) ProtoReflect() protoreflect.Message
- func (x *GetFileByFileLocationRequest) Reset()
- func (x *GetFileByFileLocationRequest) String() string
- type GetFileByFileLocationResponse
- func (*GetFileByFileLocationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFileByFileLocationResponse) GetFile() *File
- func (*GetFileByFileLocationResponse) ProtoMessage()
- func (x *GetFileByFileLocationResponse) ProtoReflect() protoreflect.Message
- func (x *GetFileByFileLocationResponse) Reset()
- func (x *GetFileByFileLocationResponse) String() string
- type GetFileByIDRequest
- type GetFileByIDResponse
- func (*GetFileByIDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFileByIDResponse) GetFile() *File
- func (*GetFileByIDResponse) ProtoMessage()
- func (x *GetFileByIDResponse) ProtoReflect() protoreflect.Message
- func (x *GetFileByIDResponse) Reset()
- func (x *GetFileByIDResponse) String() string
- type GetFilesRequest
- type GetFilesResponse
- type GetLinkMetadataRequest
- func (*GetLinkMetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLinkMetadataRequest) GetLink() string
- func (*GetLinkMetadataRequest) ProtoMessage()
- func (x *GetLinkMetadataRequest) ProtoReflect() protoreflect.Message
- func (x *GetLinkMetadataRequest) Reset()
- func (x *GetLinkMetadataRequest) String() string
- type GetLinkMetadataResponse
- func (*GetLinkMetadataResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLinkMetadataResponse) GetDescription() string
- func (x *GetLinkMetadataResponse) GetHost() string
- func (x *GetLinkMetadataResponse) GetImageUrl() string
- func (x *GetLinkMetadataResponse) GetTitle() string
- func (*GetLinkMetadataResponse) ProtoMessage()
- func (x *GetLinkMetadataResponse) ProtoReflect() protoreflect.Message
- func (x *GetLinkMetadataResponse) Reset()
- func (x *GetLinkMetadataResponse) String() string
- type ImageMeta
- type ResponseInfo
- func (*ResponseInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseInfo) GetCreatedAt() string
- func (x *ResponseInfo) GetFileType() string
- func (x *ResponseInfo) GetFilename() string
- func (x *ResponseInfo) GetId() string
- func (x *ResponseInfo) GetSize() int64
- func (*ResponseInfo) ProtoMessage()
- func (x *ResponseInfo) ProtoReflect() protoreflect.Message
- func (x *ResponseInfo) Reset()
- func (x *ResponseInfo) String() string
- type StorageAPIClient
- type StorageAPIServer
- type StorageAPI_UploadFileClient
- type StorageAPI_UploadFileServer
- type UnimplementedStorageAPIServer
- func (UnimplementedStorageAPIServer) AggregateSitemap(context.Context, *emptypb.Empty) (*AggregateSitemapResponse, error)
- func (UnimplementedStorageAPIServer) CreateFile(context.Context, *CreateFileRequest) (*CreateFileResponse, error)
- func (UnimplementedStorageAPIServer) DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileResponse, error)
- func (UnimplementedStorageAPIServer) GetFileByFileLocation(context.Context, *GetFileByFileLocationRequest) (*GetFileByFileLocationResponse, error)
- func (UnimplementedStorageAPIServer) GetFileByID(context.Context, *GetFileByIDRequest) (*GetFileByIDResponse, error)
- func (UnimplementedStorageAPIServer) GetFiles(context.Context, *GetFilesRequest) (*GetFilesResponse, error)
- func (UnimplementedStorageAPIServer) GetLinkMetadata(context.Context, *GetLinkMetadataRequest) (*GetLinkMetadataResponse, error)
- func (UnimplementedStorageAPIServer) ProcessOldFiles(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedStorageAPIServer) ProvideIdsToContentAPI(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedStorageAPIServer) StopProcessOldFiles(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedStorageAPIServer) StopProvideIdsToContentAPI(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
- func (UnimplementedStorageAPIServer) UploadFile(StorageAPI_UploadFileServer) error
- type UnsafeStorageAPIServer
- type UploadFileRequest
- func (*UploadFileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UploadFileRequest) GetData() []byte
- func (x *UploadFileRequest) GetInfo() *FileInfo
- func (m *UploadFileRequest) GetMessages() isUploadFileRequest_Messages
- func (*UploadFileRequest) ProtoMessage()
- func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
- func (x *UploadFileRequest) Reset()
- func (x *UploadFileRequest) String() string
- type UploadFileRequest_Data
- type UploadFileRequest_Info
- type UploadFileResponse
- func (*UploadFileResponse) Descriptor() ([]byte, []int)deprecated
- func (m *UploadFileResponse) GetExtra() isUploadFileResponse_Extra
- func (x *UploadFileResponse) GetImageMeta() *ImageMeta
- func (x *UploadFileResponse) GetInfo() *ResponseInfo
- func (x *UploadFileResponse) GetVideoMeta() *VideoMeta
- func (*UploadFileResponse) ProtoMessage()
- func (x *UploadFileResponse) ProtoReflect() protoreflect.Message
- func (x *UploadFileResponse) Reset()
- func (x *UploadFileResponse) String() string
- type UploadFileResponse_ImageMeta
- type UploadFileResponse_VideoMeta
- type VideoMeta
- func (*VideoMeta) Descriptor() ([]byte, []int)deprecated
- func (x *VideoMeta) GetDownloadUrl() string
- func (x *VideoMeta) GetDuration() float32
- func (x *VideoMeta) GetThumb() string
- func (*VideoMeta) ProtoMessage()
- func (x *VideoMeta) ProtoReflect() protoreflect.Message
- func (x *VideoMeta) Reset()
- func (x *VideoMeta) String() string
Constants ¶
This section is empty.
Variables ¶
var File_storage_api_storage_v1_storage_proto protoreflect.FileDescriptor
var StorageAPI_ServiceDesc = grpc.ServiceDesc{ ServiceName: "storage_api.v1.StorageAPI", HandlerType: (*StorageAPIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateFile", Handler: _StorageAPI_CreateFile_Handler, }, { MethodName: "DeleteFile", Handler: _StorageAPI_DeleteFile_Handler, }, { MethodName: "GetFiles", Handler: _StorageAPI_GetFiles_Handler, }, { MethodName: "GetFileByID", Handler: _StorageAPI_GetFileByID_Handler, }, { MethodName: "GetFileByFileLocation", Handler: _StorageAPI_GetFileByFileLocation_Handler, }, { MethodName: "ProcessOldFiles", Handler: _StorageAPI_ProcessOldFiles_Handler, }, { MethodName: "StopProcessOldFiles", Handler: _StorageAPI_StopProcessOldFiles_Handler, }, { MethodName: "ProvideIdsToContentAPI", Handler: _StorageAPI_ProvideIdsToContentAPI_Handler, }, { MethodName: "StopProvideIdsToContentAPI", Handler: _StorageAPI_StopProvideIdsToContentAPI_Handler, }, { MethodName: "AggregateSitemap", Handler: _StorageAPI_AggregateSitemap_Handler, }, { MethodName: "GetLinkMetadata", Handler: _StorageAPI_GetLinkMetadata_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "UploadFile", Handler: _StorageAPI_UploadFile_Handler, ClientStreams: true, }, }, Metadata: "storage-api/storage/v1/storage.proto", }
StorageAPI_ServiceDesc is the grpc.ServiceDesc for StorageAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStorageAPIServer ¶
func RegisterStorageAPIServer(s grpc.ServiceRegistrar, srv StorageAPIServer)
Types ¶
type AggregateSitemapResponse ¶ added in v0.2.108
type AggregateSitemapResponse struct {
// contains filtered or unexported fields
}
func (*AggregateSitemapResponse) Descriptor
deprecated
added in
v0.2.108
func (*AggregateSitemapResponse) Descriptor() ([]byte, []int)
Deprecated: Use AggregateSitemapResponse.ProtoReflect.Descriptor instead.
func (*AggregateSitemapResponse) ProtoMessage ¶ added in v0.2.108
func (*AggregateSitemapResponse) ProtoMessage()
func (*AggregateSitemapResponse) ProtoReflect ¶ added in v0.2.108
func (x *AggregateSitemapResponse) ProtoReflect() protoreflect.Message
func (*AggregateSitemapResponse) Reset ¶ added in v0.2.108
func (x *AggregateSitemapResponse) Reset()
func (*AggregateSitemapResponse) String ¶ added in v0.2.108
func (x *AggregateSitemapResponse) String() string
type CreateFileRequest ¶ added in v0.2.138
type CreateFileRequest struct { Service *string `protobuf:"bytes,1,opt,name=service,proto3,oneof" json:"service,omitempty"` Filename *string `protobuf:"bytes,2,opt,name=filename,proto3,oneof" json:"filename,omitempty"` // contains filtered or unexported fields }
func (*CreateFileRequest) Descriptor
deprecated
added in
v0.2.138
func (*CreateFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateFileRequest.ProtoReflect.Descriptor instead.
func (*CreateFileRequest) GetFilename ¶ added in v0.2.138
func (x *CreateFileRequest) GetFilename() string
func (*CreateFileRequest) GetService ¶ added in v0.2.138
func (x *CreateFileRequest) GetService() string
func (*CreateFileRequest) ProtoMessage ¶ added in v0.2.138
func (*CreateFileRequest) ProtoMessage()
func (*CreateFileRequest) ProtoReflect ¶ added in v0.2.138
func (x *CreateFileRequest) ProtoReflect() protoreflect.Message
func (*CreateFileRequest) Reset ¶ added in v0.2.138
func (x *CreateFileRequest) Reset()
func (*CreateFileRequest) String ¶ added in v0.2.138
func (x *CreateFileRequest) String() string
type CreateFileResponse ¶ added in v0.2.138
type CreateFileResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // To upload the file after creation, you can use the command: // `curl -T "path/to/file" "upload_url"` UploadUrl string `protobuf:"bytes,2,opt,name=upload_url,json=uploadUrl,proto3" json:"upload_url,omitempty"` // contains filtered or unexported fields }
func (*CreateFileResponse) Descriptor
deprecated
added in
v0.2.138
func (*CreateFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateFileResponse.ProtoReflect.Descriptor instead.
func (*CreateFileResponse) GetId ¶ added in v0.2.138
func (x *CreateFileResponse) GetId() string
func (*CreateFileResponse) GetUploadUrl ¶ added in v0.2.138
func (x *CreateFileResponse) GetUploadUrl() string
func (*CreateFileResponse) ProtoMessage ¶ added in v0.2.138
func (*CreateFileResponse) ProtoMessage()
func (*CreateFileResponse) ProtoReflect ¶ added in v0.2.138
func (x *CreateFileResponse) ProtoReflect() protoreflect.Message
func (*CreateFileResponse) Reset ¶ added in v0.2.138
func (x *CreateFileResponse) Reset()
func (*CreateFileResponse) String ¶ added in v0.2.138
func (x *CreateFileResponse) String() string
type DeleteFileRequest ¶
type DeleteFileRequest struct { Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // contains filtered or unexported fields }
func (*DeleteFileRequest) Descriptor
deprecated
func (*DeleteFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFileRequest.ProtoReflect.Descriptor instead.
func (*DeleteFileRequest) GetFilename ¶
func (x *DeleteFileRequest) GetFilename() string
func (*DeleteFileRequest) ProtoMessage ¶
func (*DeleteFileRequest) ProtoMessage()
func (*DeleteFileRequest) ProtoReflect ¶
func (x *DeleteFileRequest) ProtoReflect() protoreflect.Message
func (*DeleteFileRequest) Reset ¶
func (x *DeleteFileRequest) Reset()
func (*DeleteFileRequest) String ¶
func (x *DeleteFileRequest) String() string
type DeleteFileResponse ¶
type DeleteFileResponse struct { Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` // contains filtered or unexported fields }
func (*DeleteFileResponse) Descriptor
deprecated
func (*DeleteFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteFileResponse.ProtoReflect.Descriptor instead.
func (*DeleteFileResponse) GetFilename ¶
func (x *DeleteFileResponse) GetFilename() string
func (*DeleteFileResponse) ProtoMessage ¶
func (*DeleteFileResponse) ProtoMessage()
func (*DeleteFileResponse) ProtoReflect ¶
func (x *DeleteFileResponse) ProtoReflect() protoreflect.Message
func (*DeleteFileResponse) Reset ¶
func (x *DeleteFileResponse) Reset()
func (*DeleteFileResponse) String ¶
func (x *DeleteFileResponse) String() string
type File ¶
type File struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` OriginalFileBucketLocation string `` /* 143-byte string literal not displayed */ VideoMeta *File_VideoFileMeta `protobuf:"bytes,4,opt,name=video_meta,json=videoMeta,proto3,oneof" json:"video_meta,omitempty"` ImageMeta *File_ImageFileMeta `protobuf:"bytes,5,opt,name=image_meta,json=imageMeta,proto3,oneof" json:"image_meta,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` ContentType string `protobuf:"bytes,7,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` Size int64 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"` // contains filtered or unexported fields }
func (*File) Descriptor
deprecated
func (*File) GetContentType ¶ added in v0.2.141
func (*File) GetCreatedAt ¶
func (x *File) GetCreatedAt() *timestamppb.Timestamp
func (*File) GetImageMeta ¶
func (x *File) GetImageMeta() *File_ImageFileMeta
func (*File) GetOriginalFileBucketLocation ¶
func (*File) GetVideoMeta ¶
func (x *File) GetVideoMeta() *File_VideoFileMeta
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
type FileInfo ¶
type FileInfo struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` FileName *string `protobuf:"bytes,4,opt,name=file_name,json=fileName,proto3,oneof" json:"file_name,omitempty"` TranscoderTemplate *string `protobuf:"bytes,5,opt,name=transcoder_template,json=transcoderTemplate,proto3,oneof" json:"transcoder_template,omitempty"` // contains filtered or unexported fields }
func (*FileInfo) Descriptor
deprecated
func (*FileInfo) GetFileName ¶
func (*FileInfo) GetService ¶
func (*FileInfo) GetTranscoderTemplate ¶
func (*FileInfo) ProtoMessage ¶
func (*FileInfo) ProtoMessage()
func (*FileInfo) ProtoReflect ¶
func (x *FileInfo) ProtoReflect() protoreflect.Message
type FileRecord ¶
type FileRecord struct { Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` FileType string `protobuf:"bytes,5,opt,name=fileType,proto3" json:"fileType,omitempty"` CreatedAt string `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // contains filtered or unexported fields }
func (*FileRecord) Descriptor
deprecated
func (*FileRecord) Descriptor() ([]byte, []int)
Deprecated: Use FileRecord.ProtoReflect.Descriptor instead.
func (*FileRecord) GetCreatedAt ¶
func (x *FileRecord) GetCreatedAt() string
func (*FileRecord) GetFileType ¶
func (x *FileRecord) GetFileType() string
func (*FileRecord) GetFilename ¶
func (x *FileRecord) GetFilename() string
func (*FileRecord) GetId ¶
func (x *FileRecord) GetId() string
func (*FileRecord) GetSize ¶
func (x *FileRecord) GetSize() int64
func (*FileRecord) ProtoMessage ¶
func (*FileRecord) ProtoMessage()
func (*FileRecord) ProtoReflect ¶
func (x *FileRecord) ProtoReflect() protoreflect.Message
func (*FileRecord) Reset ¶
func (x *FileRecord) Reset()
func (*FileRecord) String ¶
func (x *FileRecord) String() string
type File_ImageFileMeta ¶
type File_ImageFileMeta struct { ThumbnailBucketLocation *string `` /* 138-byte string literal not displayed */ // contains filtered or unexported fields }
func (*File_ImageFileMeta) Descriptor
deprecated
func (*File_ImageFileMeta) Descriptor() ([]byte, []int)
Deprecated: Use File_ImageFileMeta.ProtoReflect.Descriptor instead.
func (*File_ImageFileMeta) GetThumbnailBucketLocation ¶
func (x *File_ImageFileMeta) GetThumbnailBucketLocation() string
func (*File_ImageFileMeta) ProtoMessage ¶
func (*File_ImageFileMeta) ProtoMessage()
func (*File_ImageFileMeta) ProtoReflect ¶
func (x *File_ImageFileMeta) ProtoReflect() protoreflect.Message
func (*File_ImageFileMeta) Reset ¶
func (x *File_ImageFileMeta) Reset()
func (*File_ImageFileMeta) String ¶
func (x *File_ImageFileMeta) String() string
type File_VideoFileMeta ¶
type File_VideoFileMeta struct { DurationMilliseconds int32 `protobuf:"varint,1,opt,name=duration_milliseconds,json=durationMilliseconds,proto3" json:"duration_milliseconds,omitempty"` ThumbnailBucketLocation *string `` /* 138-byte string literal not displayed */ UserDownloadBucketLocation *string `` /* 149-byte string literal not displayed */ HlsManifestBucketLocation *string `` /* 146-byte string literal not displayed */ // contains filtered or unexported fields }
func (*File_VideoFileMeta) Descriptor
deprecated
func (*File_VideoFileMeta) Descriptor() ([]byte, []int)
Deprecated: Use File_VideoFileMeta.ProtoReflect.Descriptor instead.
func (*File_VideoFileMeta) GetDurationMilliseconds ¶
func (x *File_VideoFileMeta) GetDurationMilliseconds() int32
func (*File_VideoFileMeta) GetHlsManifestBucketLocation ¶
func (x *File_VideoFileMeta) GetHlsManifestBucketLocation() string
func (*File_VideoFileMeta) GetThumbnailBucketLocation ¶
func (x *File_VideoFileMeta) GetThumbnailBucketLocation() string
func (*File_VideoFileMeta) GetUserDownloadBucketLocation ¶
func (x *File_VideoFileMeta) GetUserDownloadBucketLocation() string
func (*File_VideoFileMeta) ProtoMessage ¶
func (*File_VideoFileMeta) ProtoMessage()
func (*File_VideoFileMeta) ProtoReflect ¶
func (x *File_VideoFileMeta) ProtoReflect() protoreflect.Message
func (*File_VideoFileMeta) Reset ¶
func (x *File_VideoFileMeta) Reset()
func (*File_VideoFileMeta) String ¶
func (x *File_VideoFileMeta) String() string
type GetFileByFileLocationRequest ¶
type GetFileByFileLocationRequest struct { OriginalFileLocation string `protobuf:"bytes,1,opt,name=original_file_location,json=originalFileLocation,proto3" json:"original_file_location,omitempty"` // contains filtered or unexported fields }
func (*GetFileByFileLocationRequest) Descriptor
deprecated
func (*GetFileByFileLocationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFileByFileLocationRequest.ProtoReflect.Descriptor instead.
func (*GetFileByFileLocationRequest) GetOriginalFileLocation ¶
func (x *GetFileByFileLocationRequest) GetOriginalFileLocation() string
func (*GetFileByFileLocationRequest) ProtoMessage ¶
func (*GetFileByFileLocationRequest) ProtoMessage()
func (*GetFileByFileLocationRequest) ProtoReflect ¶
func (x *GetFileByFileLocationRequest) ProtoReflect() protoreflect.Message
func (*GetFileByFileLocationRequest) Reset ¶
func (x *GetFileByFileLocationRequest) Reset()
func (*GetFileByFileLocationRequest) String ¶
func (x *GetFileByFileLocationRequest) String() string
type GetFileByFileLocationResponse ¶
type GetFileByFileLocationResponse struct { File *File `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // contains filtered or unexported fields }
func (*GetFileByFileLocationResponse) Descriptor
deprecated
func (*GetFileByFileLocationResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFileByFileLocationResponse.ProtoReflect.Descriptor instead.
func (*GetFileByFileLocationResponse) GetFile ¶
func (x *GetFileByFileLocationResponse) GetFile() *File
func (*GetFileByFileLocationResponse) ProtoMessage ¶
func (*GetFileByFileLocationResponse) ProtoMessage()
func (*GetFileByFileLocationResponse) ProtoReflect ¶
func (x *GetFileByFileLocationResponse) ProtoReflect() protoreflect.Message
func (*GetFileByFileLocationResponse) Reset ¶
func (x *GetFileByFileLocationResponse) Reset()
func (*GetFileByFileLocationResponse) String ¶
func (x *GetFileByFileLocationResponse) String() string
type GetFileByIDRequest ¶
type GetFileByIDRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetFileByIDRequest) Descriptor
deprecated
func (*GetFileByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFileByIDRequest.ProtoReflect.Descriptor instead.
func (*GetFileByIDRequest) GetId ¶
func (x *GetFileByIDRequest) GetId() string
func (*GetFileByIDRequest) ProtoMessage ¶
func (*GetFileByIDRequest) ProtoMessage()
func (*GetFileByIDRequest) ProtoReflect ¶
func (x *GetFileByIDRequest) ProtoReflect() protoreflect.Message
func (*GetFileByIDRequest) Reset ¶
func (x *GetFileByIDRequest) Reset()
func (*GetFileByIDRequest) String ¶
func (x *GetFileByIDRequest) String() string
type GetFileByIDResponse ¶
type GetFileByIDResponse struct { File *File `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"` // contains filtered or unexported fields }
func (*GetFileByIDResponse) Descriptor
deprecated
func (*GetFileByIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFileByIDResponse.ProtoReflect.Descriptor instead.
func (*GetFileByIDResponse) GetFile ¶
func (x *GetFileByIDResponse) GetFile() *File
func (*GetFileByIDResponse) ProtoMessage ¶
func (*GetFileByIDResponse) ProtoMessage()
func (*GetFileByIDResponse) ProtoReflect ¶
func (x *GetFileByIDResponse) ProtoReflect() protoreflect.Message
func (*GetFileByIDResponse) Reset ¶
func (x *GetFileByIDResponse) Reset()
func (*GetFileByIDResponse) String ¶
func (x *GetFileByIDResponse) String() string
type GetFilesRequest ¶
type GetFilesRequest struct { Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*GetFilesRequest) Descriptor
deprecated
func (*GetFilesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFilesRequest.ProtoReflect.Descriptor instead.
func (*GetFilesRequest) GetIds ¶
func (x *GetFilesRequest) GetIds() []string
func (*GetFilesRequest) ProtoMessage ¶
func (*GetFilesRequest) ProtoMessage()
func (*GetFilesRequest) ProtoReflect ¶
func (x *GetFilesRequest) ProtoReflect() protoreflect.Message
func (*GetFilesRequest) Reset ¶
func (x *GetFilesRequest) Reset()
func (*GetFilesRequest) String ¶
func (x *GetFilesRequest) String() string
type GetFilesResponse ¶
type GetFilesResponse struct { Files []*FileRecord `protobuf:"bytes,1,rep,name=files,proto3" json:"files,omitempty"` // contains filtered or unexported fields }
func (*GetFilesResponse) Descriptor
deprecated
func (*GetFilesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFilesResponse.ProtoReflect.Descriptor instead.
func (*GetFilesResponse) GetFiles ¶
func (x *GetFilesResponse) GetFiles() []*FileRecord
func (*GetFilesResponse) ProtoMessage ¶
func (*GetFilesResponse) ProtoMessage()
func (*GetFilesResponse) ProtoReflect ¶
func (x *GetFilesResponse) ProtoReflect() protoreflect.Message
func (*GetFilesResponse) Reset ¶
func (x *GetFilesResponse) Reset()
func (*GetFilesResponse) String ¶
func (x *GetFilesResponse) String() string
type GetLinkMetadataRequest ¶ added in v0.2.125
type GetLinkMetadataRequest struct { Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` // contains filtered or unexported fields }
func (*GetLinkMetadataRequest) Descriptor
deprecated
added in
v0.2.125
func (*GetLinkMetadataRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLinkMetadataRequest.ProtoReflect.Descriptor instead.
func (*GetLinkMetadataRequest) GetLink ¶ added in v0.2.125
func (x *GetLinkMetadataRequest) GetLink() string
func (*GetLinkMetadataRequest) ProtoMessage ¶ added in v0.2.125
func (*GetLinkMetadataRequest) ProtoMessage()
func (*GetLinkMetadataRequest) ProtoReflect ¶ added in v0.2.125
func (x *GetLinkMetadataRequest) ProtoReflect() protoreflect.Message
func (*GetLinkMetadataRequest) Reset ¶ added in v0.2.125
func (x *GetLinkMetadataRequest) Reset()
func (*GetLinkMetadataRequest) String ¶ added in v0.2.125
func (x *GetLinkMetadataRequest) String() string
type GetLinkMetadataResponse ¶ added in v0.2.125
type GetLinkMetadataResponse struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` ImageUrl string `protobuf:"bytes,4,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"` // contains filtered or unexported fields }
func (*GetLinkMetadataResponse) Descriptor
deprecated
added in
v0.2.125
func (*GetLinkMetadataResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLinkMetadataResponse.ProtoReflect.Descriptor instead.
func (*GetLinkMetadataResponse) GetDescription ¶ added in v0.2.125
func (x *GetLinkMetadataResponse) GetDescription() string
func (*GetLinkMetadataResponse) GetHost ¶ added in v0.2.125
func (x *GetLinkMetadataResponse) GetHost() string
func (*GetLinkMetadataResponse) GetImageUrl ¶ added in v0.2.125
func (x *GetLinkMetadataResponse) GetImageUrl() string
func (*GetLinkMetadataResponse) GetTitle ¶ added in v0.2.125
func (x *GetLinkMetadataResponse) GetTitle() string
func (*GetLinkMetadataResponse) ProtoMessage ¶ added in v0.2.125
func (*GetLinkMetadataResponse) ProtoMessage()
func (*GetLinkMetadataResponse) ProtoReflect ¶ added in v0.2.125
func (x *GetLinkMetadataResponse) ProtoReflect() protoreflect.Message
func (*GetLinkMetadataResponse) Reset ¶ added in v0.2.125
func (x *GetLinkMetadataResponse) Reset()
func (*GetLinkMetadataResponse) String ¶ added in v0.2.125
func (x *GetLinkMetadataResponse) String() string
type ImageMeta ¶
type ImageMeta struct { Thumb string `protobuf:"bytes,1,opt,name=thumb,proto3" json:"thumb,omitempty"` // contains filtered or unexported fields }
func (*ImageMeta) Descriptor
deprecated
func (*ImageMeta) ProtoMessage ¶
func (*ImageMeta) ProtoMessage()
func (*ImageMeta) ProtoReflect ¶
func (x *ImageMeta) ProtoReflect() protoreflect.Message
type ResponseInfo ¶
type ResponseInfo struct { Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` FileType string `protobuf:"bytes,4,opt,name=fileType,proto3" json:"fileType,omitempty"` CreatedAt string `protobuf:"bytes,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"` // contains filtered or unexported fields }
func (*ResponseInfo) Descriptor
deprecated
func (*ResponseInfo) Descriptor() ([]byte, []int)
Deprecated: Use ResponseInfo.ProtoReflect.Descriptor instead.
func (*ResponseInfo) GetCreatedAt ¶
func (x *ResponseInfo) GetCreatedAt() string
func (*ResponseInfo) GetFileType ¶
func (x *ResponseInfo) GetFileType() string
func (*ResponseInfo) GetFilename ¶
func (x *ResponseInfo) GetFilename() string
func (*ResponseInfo) GetId ¶
func (x *ResponseInfo) GetId() string
func (*ResponseInfo) GetSize ¶
func (x *ResponseInfo) GetSize() int64
func (*ResponseInfo) ProtoMessage ¶
func (*ResponseInfo) ProtoMessage()
func (*ResponseInfo) ProtoReflect ¶
func (x *ResponseInfo) ProtoReflect() protoreflect.Message
func (*ResponseInfo) Reset ¶
func (x *ResponseInfo) Reset()
func (*ResponseInfo) String ¶
func (x *ResponseInfo) String() string
type StorageAPIClient ¶
type StorageAPIClient interface { CreateFile(ctx context.Context, in *CreateFileRequest, opts ...grpc.CallOption) (*CreateFileResponse, error) UploadFile(ctx context.Context, opts ...grpc.CallOption) (StorageAPI_UploadFileClient, error) DeleteFile(ctx context.Context, in *DeleteFileRequest, opts ...grpc.CallOption) (*DeleteFileResponse, error) GetFiles(ctx context.Context, in *GetFilesRequest, opts ...grpc.CallOption) (*GetFilesResponse, error) GetFileByID(ctx context.Context, in *GetFileByIDRequest, opts ...grpc.CallOption) (*GetFileByIDResponse, error) GetFileByFileLocation(ctx context.Context, in *GetFileByFileLocationRequest, opts ...grpc.CallOption) (*GetFileByFileLocationResponse, error) ProcessOldFiles(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) StopProcessOldFiles(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) ProvideIdsToContentAPI(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) StopProvideIdsToContentAPI(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) AggregateSitemap(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AggregateSitemapResponse, error) GetLinkMetadata(ctx context.Context, in *GetLinkMetadataRequest, opts ...grpc.CallOption) (*GetLinkMetadataResponse, error) }
StorageAPIClient is the client API for StorageAPI service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewStorageAPIClient ¶
func NewStorageAPIClient(cc grpc.ClientConnInterface) StorageAPIClient
type StorageAPIServer ¶
type StorageAPIServer interface { CreateFile(context.Context, *CreateFileRequest) (*CreateFileResponse, error) UploadFile(StorageAPI_UploadFileServer) error DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileResponse, error) GetFiles(context.Context, *GetFilesRequest) (*GetFilesResponse, error) GetFileByID(context.Context, *GetFileByIDRequest) (*GetFileByIDResponse, error) GetFileByFileLocation(context.Context, *GetFileByFileLocationRequest) (*GetFileByFileLocationResponse, error) ProcessOldFiles(context.Context, *emptypb.Empty) (*emptypb.Empty, error) StopProcessOldFiles(context.Context, *emptypb.Empty) (*emptypb.Empty, error) ProvideIdsToContentAPI(context.Context, *emptypb.Empty) (*emptypb.Empty, error) StopProvideIdsToContentAPI(context.Context, *emptypb.Empty) (*emptypb.Empty, error) AggregateSitemap(context.Context, *emptypb.Empty) (*AggregateSitemapResponse, error) GetLinkMetadata(context.Context, *GetLinkMetadataRequest) (*GetLinkMetadataResponse, error) // contains filtered or unexported methods }
StorageAPIServer is the server API for StorageAPI service. All implementations must embed UnimplementedStorageAPIServer for forward compatibility
type StorageAPI_UploadFileClient ¶
type StorageAPI_UploadFileClient interface { Send(*UploadFileRequest) error CloseAndRecv() (*UploadFileResponse, error) grpc.ClientStream }
type StorageAPI_UploadFileServer ¶
type StorageAPI_UploadFileServer interface { SendAndClose(*UploadFileResponse) error Recv() (*UploadFileRequest, error) grpc.ServerStream }
type UnimplementedStorageAPIServer ¶
type UnimplementedStorageAPIServer struct { }
UnimplementedStorageAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedStorageAPIServer) AggregateSitemap ¶ added in v0.2.108
func (UnimplementedStorageAPIServer) AggregateSitemap(context.Context, *emptypb.Empty) (*AggregateSitemapResponse, error)
func (UnimplementedStorageAPIServer) CreateFile ¶ added in v0.2.138
func (UnimplementedStorageAPIServer) CreateFile(context.Context, *CreateFileRequest) (*CreateFileResponse, error)
func (UnimplementedStorageAPIServer) DeleteFile ¶
func (UnimplementedStorageAPIServer) DeleteFile(context.Context, *DeleteFileRequest) (*DeleteFileResponse, error)
func (UnimplementedStorageAPIServer) GetFileByFileLocation ¶
func (UnimplementedStorageAPIServer) GetFileByFileLocation(context.Context, *GetFileByFileLocationRequest) (*GetFileByFileLocationResponse, error)
func (UnimplementedStorageAPIServer) GetFileByID ¶
func (UnimplementedStorageAPIServer) GetFileByID(context.Context, *GetFileByIDRequest) (*GetFileByIDResponse, error)
func (UnimplementedStorageAPIServer) GetFiles ¶
func (UnimplementedStorageAPIServer) GetFiles(context.Context, *GetFilesRequest) (*GetFilesResponse, error)
func (UnimplementedStorageAPIServer) GetLinkMetadata ¶ added in v0.2.125
func (UnimplementedStorageAPIServer) GetLinkMetadata(context.Context, *GetLinkMetadataRequest) (*GetLinkMetadataResponse, error)
func (UnimplementedStorageAPIServer) ProcessOldFiles ¶
func (UnimplementedStorageAPIServer) ProvideIdsToContentAPI ¶
func (UnimplementedStorageAPIServer) StopProcessOldFiles ¶
func (UnimplementedStorageAPIServer) StopProvideIdsToContentAPI ¶
func (UnimplementedStorageAPIServer) UploadFile ¶
func (UnimplementedStorageAPIServer) UploadFile(StorageAPI_UploadFileServer) error
type UnsafeStorageAPIServer ¶
type UnsafeStorageAPIServer interface {
// contains filtered or unexported methods
}
UnsafeStorageAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StorageAPIServer will result in compilation errors.
type UploadFileRequest ¶
type UploadFileRequest struct { // Types that are assignable to Messages: // // *UploadFileRequest_Info // *UploadFileRequest_Data Messages isUploadFileRequest_Messages `protobuf_oneof:"messages"` // contains filtered or unexported fields }
The first message will be info about the type and the name of the file All the rest will be data chunks of bytes about the file being uploaded.
func (*UploadFileRequest) Descriptor
deprecated
func (*UploadFileRequest) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileRequest.ProtoReflect.Descriptor instead.
func (*UploadFileRequest) GetData ¶
func (x *UploadFileRequest) GetData() []byte
func (*UploadFileRequest) GetInfo ¶
func (x *UploadFileRequest) GetInfo() *FileInfo
func (*UploadFileRequest) GetMessages ¶
func (m *UploadFileRequest) GetMessages() isUploadFileRequest_Messages
func (*UploadFileRequest) ProtoMessage ¶
func (*UploadFileRequest) ProtoMessage()
func (*UploadFileRequest) ProtoReflect ¶
func (x *UploadFileRequest) ProtoReflect() protoreflect.Message
func (*UploadFileRequest) Reset ¶
func (x *UploadFileRequest) Reset()
func (*UploadFileRequest) String ¶
func (x *UploadFileRequest) String() string
type UploadFileRequest_Data ¶
type UploadFileRequest_Data struct {
Data []byte `protobuf:"bytes,5,opt,name=data,proto3,oneof"` // all the rest messages
}
type UploadFileRequest_Info ¶
type UploadFileRequest_Info struct {
Info *FileInfo `protobuf:"bytes,1,opt,name=info,proto3,oneof"` // first message that will send by the client
}
type UploadFileResponse ¶
type UploadFileResponse struct { Info *ResponseInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` // Types that are assignable to Extra: // // *UploadFileResponse_ImageMeta // *UploadFileResponse_VideoMeta Extra isUploadFileResponse_Extra `protobuf_oneof:"extra"` // contains filtered or unexported fields }
func (*UploadFileResponse) Descriptor
deprecated
func (*UploadFileResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadFileResponse.ProtoReflect.Descriptor instead.
func (*UploadFileResponse) GetExtra ¶
func (m *UploadFileResponse) GetExtra() isUploadFileResponse_Extra
func (*UploadFileResponse) GetImageMeta ¶
func (x *UploadFileResponse) GetImageMeta() *ImageMeta
func (*UploadFileResponse) GetInfo ¶
func (x *UploadFileResponse) GetInfo() *ResponseInfo
func (*UploadFileResponse) GetVideoMeta ¶
func (x *UploadFileResponse) GetVideoMeta() *VideoMeta
func (*UploadFileResponse) ProtoMessage ¶
func (*UploadFileResponse) ProtoMessage()
func (*UploadFileResponse) ProtoReflect ¶
func (x *UploadFileResponse) ProtoReflect() protoreflect.Message
func (*UploadFileResponse) Reset ¶
func (x *UploadFileResponse) Reset()
func (*UploadFileResponse) String ¶
func (x *UploadFileResponse) String() string
type UploadFileResponse_ImageMeta ¶
type UploadFileResponse_ImageMeta struct {
ImageMeta *ImageMeta `protobuf:"bytes,2,opt,name=image_meta,json=imageMeta,proto3,oneof"`
}
type UploadFileResponse_VideoMeta ¶
type UploadFileResponse_VideoMeta struct {
VideoMeta *VideoMeta `protobuf:"bytes,10,opt,name=video_meta,json=videoMeta,proto3,oneof"`
}
type VideoMeta ¶
type VideoMeta struct { Thumb string `protobuf:"bytes,1,opt,name=thumb,proto3" json:"thumb,omitempty"` Duration float32 `protobuf:"fixed32,2,opt,name=duration,proto3" json:"duration,omitempty"` // In seconds DownloadUrl string `protobuf:"bytes,3,opt,name=download_url,json=downloadUrl,proto3" json:"download_url,omitempty"` // contains filtered or unexported fields }
func (*VideoMeta) Descriptor
deprecated
func (*VideoMeta) GetDownloadUrl ¶
func (*VideoMeta) GetDuration ¶
func (*VideoMeta) ProtoMessage ¶
func (*VideoMeta) ProtoMessage()
func (*VideoMeta) ProtoReflect ¶
func (x *VideoMeta) ProtoReflect() protoreflect.Message