Documentation ¶
Index ¶
- type PhotoController
- func (c *PhotoController) ContentByHash(filter *photov1.ContentByHashRequest, ...) error
- func (c *PhotoController) ExistsByHash(ctx context.Context, request *photov1.ExistsByHashRequest) (*photov1.ExistsByHashResponse, error)
- func (c *PhotoController) GetByHash(ctx context.Context, request *photov1.GetByHashRequest) (*photov1.GetByHashResponse, error)
- func (c *PhotoController) GetPhotos(ctx context.Context, request *photov1.GetPhotosRequest) (*photov1.GetPhotosResponse, error)
- func (c *PhotoController) Serve()
- func (c *PhotoController) ThumbnailByHash(req *photov1.ThumbnailByHashRequest, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PhotoController ¶
type PhotoController struct { photov1.UnimplementedPhotoServiceServer // contains filtered or unexported fields }
func New ¶
func New(r repository.PhotoRepository, param model.ServeParameters) PhotoController
func (*PhotoController) ContentByHash ¶
func (c *PhotoController) ContentByHash(filter *photov1.ContentByHashRequest, stream photov1.PhotoService_ContentByHashServer) error
func (*PhotoController) ExistsByHash ¶
func (c *PhotoController) ExistsByHash(ctx context.Context, request *photov1.ExistsByHashRequest) (*photov1.ExistsByHashResponse, error)
func (*PhotoController) GetByHash ¶
func (c *PhotoController) GetByHash(ctx context.Context, request *photov1.GetByHashRequest) (*photov1.GetByHashResponse, error)
func (*PhotoController) GetPhotos ¶
func (c *PhotoController) GetPhotos(ctx context.Context, request *photov1.GetPhotosRequest) (*photov1.GetPhotosResponse, error)
GetPhotos returns all photos by given filter
func (*PhotoController) Serve ¶
func (c *PhotoController) Serve()
func (*PhotoController) ThumbnailByHash ¶ added in v0.7.0
func (c *PhotoController) ThumbnailByHash(req *photov1.ThumbnailByHashRequest, stream photov1.PhotoService_ThumbnailByHashServer) error
Click to show internal directories.
Click to hide internal directories.