Documentation ¶
Index ¶
- type CDNServiceImpl
- func (c CDNServiceImpl) CreateBucket(ctx context.Context, req *pb.BucketName) (*pb.CreateBucketResponse, error)
- func (c CDNServiceImpl) DeleteBucket(ctx context.Context, req *pb.BucketName) (*emptypb.Empty, error)
- func (c CDNServiceImpl) DeleteFile(ctx context.Context, req *pb.DeleteFileRequest) (*emptypb.Empty, error)
- func (c CDNServiceImpl) DownloadFile(req *pb.DownloadFileRequest, stream pb.CDNGrpcService_DownloadFileServer) error
- func (c CDNServiceImpl) GetFilesFromBucket(ctx context.Context, req *pb.BucketName) (*pb.FileArray, error)
- func (cdn *CDNServiceImpl) Run()
- func (c CDNServiceImpl) SearchFiles(ctx context.Context, req *pb.SearchRequest) (*pb.FileArray, error)
- func (c CDNServiceImpl) UploadFile(stream pb.CDNGrpcService_UploadFileServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CDNServiceImpl ¶
type CDNServiceImpl struct { pb.UnimplementedCDNGrpcServiceServer // contains filtered or unexported fields }
func NewCDNService ¶
func NewCDNService(c *config.Config, secure bool) (*CDNServiceImpl, error)
func (CDNServiceImpl) CreateBucket ¶
func (c CDNServiceImpl) CreateBucket(ctx context.Context, req *pb.BucketName) (*pb.CreateBucketResponse, error)
func (CDNServiceImpl) DeleteBucket ¶
func (c CDNServiceImpl) DeleteBucket(ctx context.Context, req *pb.BucketName) (*emptypb.Empty, error)
func (CDNServiceImpl) DeleteFile ¶
func (c CDNServiceImpl) DeleteFile(ctx context.Context, req *pb.DeleteFileRequest) (*emptypb.Empty, error)
func (CDNServiceImpl) DownloadFile ¶
func (c CDNServiceImpl) DownloadFile(req *pb.DownloadFileRequest, stream pb.CDNGrpcService_DownloadFileServer) error
func (CDNServiceImpl) GetFilesFromBucket ¶
func (c CDNServiceImpl) GetFilesFromBucket(ctx context.Context, req *pb.BucketName) (*pb.FileArray, error)
func (*CDNServiceImpl) Run ¶
func (cdn *CDNServiceImpl) Run()
func (CDNServiceImpl) SearchFiles ¶
func (c CDNServiceImpl) SearchFiles(ctx context.Context, req *pb.SearchRequest) (*pb.FileArray, error)
func (CDNServiceImpl) UploadFile ¶
func (c CDNServiceImpl) UploadFile(stream pb.CDNGrpcService_UploadFileServer) error
Click to show internal directories.
Click to hide internal directories.