Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterPhotoServiceServer(s grpc.ServiceRegistrar, srv PhotoServiceServer)
- type ContentByHashRequest
- func (*ContentByHashRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ContentByHashRequest) GetHash() string
- func (*ContentByHashRequest) ProtoMessage()
- func (x *ContentByHashRequest) ProtoReflect() protoreflect.Message
- func (x *ContentByHashRequest) Reset()
- func (x *ContentByHashRequest) String() string
- type ExistsByHashRequest
- func (*ExistsByHashRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExistsByHashRequest) GetHash() string
- func (*ExistsByHashRequest) ProtoMessage()
- func (x *ExistsByHashRequest) ProtoReflect() protoreflect.Message
- func (x *ExistsByHashRequest) Reset()
- func (x *ExistsByHashRequest) String() string
- type ExistsByHashResponse
- func (*ExistsByHashResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExistsByHashResponse) GetExists() bool
- func (*ExistsByHashResponse) ProtoMessage()
- func (x *ExistsByHashResponse) ProtoReflect() protoreflect.Message
- func (x *ExistsByHashResponse) Reset()
- func (x *ExistsByHashResponse) String() string
- type GetByHashRequest
- type GetByHashResponse
- type GetPhotosRequest
- func (*GetPhotosRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPhotosRequest) GetLimit() uint32
- func (x *GetPhotosRequest) GetOffset() uint32
- func (*GetPhotosRequest) ProtoMessage()
- func (x *GetPhotosRequest) ProtoReflect() protoreflect.Message
- func (x *GetPhotosRequest) Reset()
- func (x *GetPhotosRequest) String() string
- type GetPhotosResponse
- func (*GetPhotosResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPhotosResponse) GetPhotos() []*Photo
- func (x *GetPhotosResponse) GetTotal() uint32
- func (*GetPhotosResponse) ProtoMessage()
- func (x *GetPhotosResponse) ProtoReflect() protoreflect.Message
- func (x *GetPhotosResponse) Reset()
- func (x *GetPhotosResponse) String() string
- type Photo
- func (*Photo) Descriptor() ([]byte, []int)deprecated
- func (x *Photo) GetDateTime() string
- func (x *Photo) GetExposureTime() string
- func (x *Photo) GetFNumber() string
- func (x *Photo) GetHash() string
- func (x *Photo) GetIso() uint32
- func (x *Photo) GetModel() string
- func (x *Photo) GetPath() string
- func (x *Photo) GetXDimension() uint32
- func (x *Photo) GetYDimension() uint32
- func (*Photo) ProtoMessage()
- func (x *Photo) ProtoReflect() protoreflect.Message
- func (x *Photo) Reset()
- func (x *Photo) String() string
- type PhotoServiceClient
- type PhotoServiceContentByHashResponse
- func (*PhotoServiceContentByHashResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PhotoServiceContentByHashResponse) GetContentType() string
- func (x *PhotoServiceContentByHashResponse) GetData() []byte
- func (*PhotoServiceContentByHashResponse) ProtoMessage()
- func (x *PhotoServiceContentByHashResponse) ProtoReflect() protoreflect.Message
- func (x *PhotoServiceContentByHashResponse) Reset()
- func (x *PhotoServiceContentByHashResponse) String() string
- type PhotoServiceServer
- type PhotoServiceThumbnailByHashResponse
- func (*PhotoServiceThumbnailByHashResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PhotoServiceThumbnailByHashResponse) GetContentType() string
- func (x *PhotoServiceThumbnailByHashResponse) GetData() []byte
- func (*PhotoServiceThumbnailByHashResponse) ProtoMessage()
- func (x *PhotoServiceThumbnailByHashResponse) ProtoReflect() protoreflect.Message
- func (x *PhotoServiceThumbnailByHashResponse) Reset()
- func (x *PhotoServiceThumbnailByHashResponse) String() string
- type PhotoService_ContentByHashClient
- type PhotoService_ContentByHashServer
- type PhotoService_ThumbnailByHashClient
- type PhotoService_ThumbnailByHashServer
- type ThumbnailByHashRequest
- func (*ThumbnailByHashRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ThumbnailByHashRequest) GetHash() string
- func (x *ThumbnailByHashRequest) GetHeight() uint32
- func (x *ThumbnailByHashRequest) GetWidth() uint32
- func (*ThumbnailByHashRequest) ProtoMessage()
- func (x *ThumbnailByHashRequest) ProtoReflect() protoreflect.Message
- func (x *ThumbnailByHashRequest) Reset()
- func (x *ThumbnailByHashRequest) String() string
- type UnimplementedPhotoServiceServer
- func (UnimplementedPhotoServiceServer) ContentByHash(*ContentByHashRequest, PhotoService_ContentByHashServer) error
- func (UnimplementedPhotoServiceServer) ExistsByHash(context.Context, *ExistsByHashRequest) (*ExistsByHashResponse, error)
- func (UnimplementedPhotoServiceServer) GetByHash(context.Context, *GetByHashRequest) (*GetByHashResponse, error)
- func (UnimplementedPhotoServiceServer) GetPhotos(context.Context, *GetPhotosRequest) (*GetPhotosResponse, error)
- func (UnimplementedPhotoServiceServer) ThumbnailByHash(*ThumbnailByHashRequest, PhotoService_ThumbnailByHashServer) error
- type UnsafePhotoServiceServer
Constants ¶
const ( PhotoService_GetPhotos_FullMethodName = "/photo.v1.PhotoService/GetPhotos" PhotoService_GetByHash_FullMethodName = "/photo.v1.PhotoService/GetByHash" PhotoService_ExistsByHash_FullMethodName = "/photo.v1.PhotoService/ExistsByHash" PhotoService_ContentByHash_FullMethodName = "/photo.v1.PhotoService/ContentByHash" PhotoService_ThumbnailByHash_FullMethodName = "/photo.v1.PhotoService/ThumbnailByHash" )
Variables ¶
var File_photo_v1_photo_proto protoreflect.FileDescriptor
var PhotoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "photo.v1.PhotoService", HandlerType: (*PhotoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPhotos", Handler: _PhotoService_GetPhotos_Handler, }, { MethodName: "GetByHash", Handler: _PhotoService_GetByHash_Handler, }, { MethodName: "ExistsByHash", Handler: _PhotoService_ExistsByHash_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ContentByHash", Handler: _PhotoService_ContentByHash_Handler, ServerStreams: true, }, { StreamName: "ThumbnailByHash", Handler: _PhotoService_ThumbnailByHash_Handler, ServerStreams: true, }, }, Metadata: "photo/v1/photo.proto", }
PhotoService_ServiceDesc is the grpc.ServiceDesc for PhotoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterPhotoServiceServer ¶
func RegisterPhotoServiceServer(s grpc.ServiceRegistrar, srv PhotoServiceServer)
Types ¶
type ContentByHashRequest ¶
type ContentByHashRequest struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // a photo hash // contains filtered or unexported fields }
ContentByHashRequest represent a search query with a photo hash
func (*ContentByHashRequest) Descriptor
deprecated
func (*ContentByHashRequest) Descriptor() ([]byte, []int)
Deprecated: Use ContentByHashRequest.ProtoReflect.Descriptor instead.
func (*ContentByHashRequest) GetHash ¶
func (x *ContentByHashRequest) GetHash() string
func (*ContentByHashRequest) ProtoMessage ¶
func (*ContentByHashRequest) ProtoMessage()
func (*ContentByHashRequest) ProtoReflect ¶
func (x *ContentByHashRequest) ProtoReflect() protoreflect.Message
func (*ContentByHashRequest) Reset ¶
func (x *ContentByHashRequest) Reset()
func (*ContentByHashRequest) String ¶
func (x *ContentByHashRequest) String() string
type ExistsByHashRequest ¶ added in v0.3.0
type ExistsByHashRequest struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // a photo hash // contains filtered or unexported fields }
ExistsByHashRequest represent an existence search query with a photo hash
func (*ExistsByHashRequest) Descriptor
deprecated
added in
v0.3.0
func (*ExistsByHashRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExistsByHashRequest.ProtoReflect.Descriptor instead.
func (*ExistsByHashRequest) GetHash ¶ added in v0.3.0
func (x *ExistsByHashRequest) GetHash() string
func (*ExistsByHashRequest) ProtoMessage ¶ added in v0.3.0
func (*ExistsByHashRequest) ProtoMessage()
func (*ExistsByHashRequest) ProtoReflect ¶ added in v0.3.0
func (x *ExistsByHashRequest) ProtoReflect() protoreflect.Message
func (*ExistsByHashRequest) Reset ¶ added in v0.3.0
func (x *ExistsByHashRequest) Reset()
func (*ExistsByHashRequest) String ¶ added in v0.3.0
func (x *ExistsByHashRequest) String() string
type ExistsByHashResponse ¶ added in v0.3.0
type ExistsByHashResponse struct { Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"` // contains filtered or unexported fields }
func (*ExistsByHashResponse) Descriptor
deprecated
added in
v0.3.0
func (*ExistsByHashResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExistsByHashResponse.ProtoReflect.Descriptor instead.
func (*ExistsByHashResponse) GetExists ¶ added in v0.3.0
func (x *ExistsByHashResponse) GetExists() bool
func (*ExistsByHashResponse) ProtoMessage ¶ added in v0.3.0
func (*ExistsByHashResponse) ProtoMessage()
func (*ExistsByHashResponse) ProtoReflect ¶ added in v0.3.0
func (x *ExistsByHashResponse) ProtoReflect() protoreflect.Message
func (*ExistsByHashResponse) Reset ¶ added in v0.3.0
func (x *ExistsByHashResponse) Reset()
func (*ExistsByHashResponse) String ¶ added in v0.3.0
func (x *ExistsByHashResponse) String() string
type GetByHashRequest ¶
type GetByHashRequest struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // a photo hash // contains filtered or unexported fields }
GetByHashRequest represent a search query with a photo hash
func (*GetByHashRequest) Descriptor
deprecated
func (*GetByHashRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByHashRequest.ProtoReflect.Descriptor instead.
func (*GetByHashRequest) GetHash ¶
func (x *GetByHashRequest) GetHash() string
func (*GetByHashRequest) ProtoMessage ¶
func (*GetByHashRequest) ProtoMessage()
func (*GetByHashRequest) ProtoReflect ¶
func (x *GetByHashRequest) ProtoReflect() protoreflect.Message
func (*GetByHashRequest) Reset ¶
func (x *GetByHashRequest) Reset()
func (*GetByHashRequest) String ¶
func (x *GetByHashRequest) String() string
type GetByHashResponse ¶
type GetByHashResponse struct { Photo *Photo `protobuf:"bytes,1,opt,name=photo,proto3" json:"photo,omitempty"` // contains filtered or unexported fields }
func (*GetByHashResponse) Descriptor
deprecated
func (*GetByHashResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetByHashResponse.ProtoReflect.Descriptor instead.
func (*GetByHashResponse) GetPhoto ¶ added in v0.1.1
func (x *GetByHashResponse) GetPhoto() *Photo
func (*GetByHashResponse) ProtoMessage ¶
func (*GetByHashResponse) ProtoMessage()
func (*GetByHashResponse) ProtoReflect ¶
func (x *GetByHashResponse) ProtoReflect() protoreflect.Message
func (*GetByHashResponse) Reset ¶
func (x *GetByHashResponse) Reset()
func (*GetByHashResponse) String ¶
func (x *GetByHashResponse) String() string
type GetPhotosRequest ¶
type GetPhotosRequest struct { Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` // the number of element to retrieve Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` // the position of the first element to retrieve // contains filtered or unexported fields }
GetPhotosRequest represent a search query with pagination options to indicate which results to include in the response.
func (*GetPhotosRequest) Descriptor
deprecated
func (*GetPhotosRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPhotosRequest.ProtoReflect.Descriptor instead.
func (*GetPhotosRequest) GetLimit ¶ added in v0.10.0
func (x *GetPhotosRequest) GetLimit() uint32
func (*GetPhotosRequest) GetOffset ¶ added in v0.10.0
func (x *GetPhotosRequest) GetOffset() uint32
func (*GetPhotosRequest) ProtoMessage ¶
func (*GetPhotosRequest) ProtoMessage()
func (*GetPhotosRequest) ProtoReflect ¶
func (x *GetPhotosRequest) ProtoReflect() protoreflect.Message
func (*GetPhotosRequest) Reset ¶
func (x *GetPhotosRequest) Reset()
func (*GetPhotosRequest) String ¶
func (x *GetPhotosRequest) String() string
type GetPhotosResponse ¶
type GetPhotosResponse struct { Photos []*Photo `protobuf:"bytes,1,rep,name=photos,proto3" json:"photos,omitempty"` // the photos Total uint32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // the total number of photos // contains filtered or unexported fields }
func (*GetPhotosResponse) Descriptor
deprecated
func (*GetPhotosResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPhotosResponse.ProtoReflect.Descriptor instead.
func (*GetPhotosResponse) GetPhotos ¶
func (x *GetPhotosResponse) GetPhotos() []*Photo
func (*GetPhotosResponse) GetTotal ¶ added in v0.11.0
func (x *GetPhotosResponse) GetTotal() uint32
func (*GetPhotosResponse) ProtoMessage ¶
func (*GetPhotosResponse) ProtoMessage()
func (*GetPhotosResponse) ProtoReflect ¶
func (x *GetPhotosResponse) ProtoReflect() protoreflect.Message
func (*GetPhotosResponse) Reset ¶
func (x *GetPhotosResponse) Reset()
func (*GetPhotosResponse) String ¶
func (x *GetPhotosResponse) String() string
type Photo ¶
type Photo struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // the photo hash Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // the photo path on the daemon fs DateTime string `protobuf:"bytes,3,opt,name=date_time,json=dateTime,proto3" json:"date_time,omitempty"` // the date Iso uint32 `protobuf:"varint,4,opt,name=iso,proto3" json:"iso,omitempty"` // the ISO of the image ExposureTime string `protobuf:"bytes,5,opt,name=exposure_time,json=exposureTime,proto3" json:"exposure_time,omitempty"` // the exposure as a fraction XDimension uint32 `protobuf:"varint,6,opt,name=x_dimension,json=xDimension,proto3" json:"x_dimension,omitempty"` // the x dimension of the image YDimension uint32 `protobuf:"varint,7,opt,name=y_dimension,json=yDimension,proto3" json:"y_dimension,omitempty"` // the y dimension of the image Model string `protobuf:"bytes,8,opt,name=model,proto3" json:"model,omitempty"` // the model of the camera that took the image FNumber string `protobuf:"bytes,9,opt,name=f_number,json=fNumber,proto3" json:"f_number,omitempty"` // the f Number // contains filtered or unexported fields }
Photo contains basic info of a photo and its metadata
func (*Photo) Descriptor
deprecated
func (*Photo) GetDateTime ¶
func (*Photo) GetExposureTime ¶
func (*Photo) GetFNumber ¶
func (*Photo) GetXDimension ¶
func (*Photo) GetYDimension ¶
func (*Photo) ProtoMessage ¶
func (*Photo) ProtoMessage()
func (*Photo) ProtoReflect ¶
func (x *Photo) ProtoReflect() protoreflect.Message
type PhotoServiceClient ¶
type PhotoServiceClient interface { // GetPhotos returns all the photos GetPhotos(ctx context.Context, in *GetPhotosRequest, opts ...grpc.CallOption) (*GetPhotosResponse, error) // GetByHash returns a photo by its hash GetByHash(ctx context.Context, in *GetByHashRequest, opts ...grpc.CallOption) (*GetByHashResponse, error) // ExistsByHash returns true if a photo with the given hash exists ExistsByHash(ctx context.Context, in *ExistsByHashRequest, opts ...grpc.CallOption) (*ExistsByHashResponse, error) // ContentByHash returns the photo content by its hash ContentByHash(ctx context.Context, in *ContentByHashRequest, opts ...grpc.CallOption) (PhotoService_ContentByHashClient, error) // ThumbnailByHash returns the photo thumbnail by its hash // A width or a height can be provided, if so the thumbnail will have one of the property. // If neither the width nor the height is specified, a width of 200 will be used. // If a width and a height is specified, only the width will be used. ThumbnailByHash(ctx context.Context, in *ThumbnailByHashRequest, opts ...grpc.CallOption) (PhotoService_ThumbnailByHashClient, error) }
PhotoServiceClient is the client API for PhotoService 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 NewPhotoServiceClient ¶
func NewPhotoServiceClient(cc grpc.ClientConnInterface) PhotoServiceClient
type PhotoServiceContentByHashResponse ¶
type PhotoServiceContentByHashResponse struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` // contains filtered or unexported fields }
func (*PhotoServiceContentByHashResponse) Descriptor
deprecated
func (*PhotoServiceContentByHashResponse) Descriptor() ([]byte, []int)
Deprecated: Use PhotoServiceContentByHashResponse.ProtoReflect.Descriptor instead.
func (*PhotoServiceContentByHashResponse) GetContentType ¶ added in v0.4.1
func (x *PhotoServiceContentByHashResponse) GetContentType() string
func (*PhotoServiceContentByHashResponse) GetData ¶
func (x *PhotoServiceContentByHashResponse) GetData() []byte
func (*PhotoServiceContentByHashResponse) ProtoMessage ¶
func (*PhotoServiceContentByHashResponse) ProtoMessage()
func (*PhotoServiceContentByHashResponse) ProtoReflect ¶
func (x *PhotoServiceContentByHashResponse) ProtoReflect() protoreflect.Message
func (*PhotoServiceContentByHashResponse) Reset ¶
func (x *PhotoServiceContentByHashResponse) Reset()
func (*PhotoServiceContentByHashResponse) String ¶
func (x *PhotoServiceContentByHashResponse) String() string
type PhotoServiceServer ¶
type PhotoServiceServer interface { // GetPhotos returns all the photos GetPhotos(context.Context, *GetPhotosRequest) (*GetPhotosResponse, error) // GetByHash returns a photo by its hash GetByHash(context.Context, *GetByHashRequest) (*GetByHashResponse, error) // ExistsByHash returns true if a photo with the given hash exists ExistsByHash(context.Context, *ExistsByHashRequest) (*ExistsByHashResponse, error) // ContentByHash returns the photo content by its hash ContentByHash(*ContentByHashRequest, PhotoService_ContentByHashServer) error // ThumbnailByHash returns the photo thumbnail by its hash // A width or a height can be provided, if so the thumbnail will have one of the property. // If neither the width nor the height is specified, a width of 200 will be used. // If a width and a height is specified, only the width will be used. ThumbnailByHash(*ThumbnailByHashRequest, PhotoService_ThumbnailByHashServer) error }
PhotoServiceServer is the server API for PhotoService service. All implementations should embed UnimplementedPhotoServiceServer for forward compatibility
type PhotoServiceThumbnailByHashResponse ¶ added in v0.7.0
type PhotoServiceThumbnailByHashResponse struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` // contains filtered or unexported fields }
func (*PhotoServiceThumbnailByHashResponse) Descriptor
deprecated
added in
v0.7.0
func (*PhotoServiceThumbnailByHashResponse) Descriptor() ([]byte, []int)
Deprecated: Use PhotoServiceThumbnailByHashResponse.ProtoReflect.Descriptor instead.
func (*PhotoServiceThumbnailByHashResponse) GetContentType ¶ added in v0.7.0
func (x *PhotoServiceThumbnailByHashResponse) GetContentType() string
func (*PhotoServiceThumbnailByHashResponse) GetData ¶ added in v0.7.0
func (x *PhotoServiceThumbnailByHashResponse) GetData() []byte
func (*PhotoServiceThumbnailByHashResponse) ProtoMessage ¶ added in v0.7.0
func (*PhotoServiceThumbnailByHashResponse) ProtoMessage()
func (*PhotoServiceThumbnailByHashResponse) ProtoReflect ¶ added in v0.7.0
func (x *PhotoServiceThumbnailByHashResponse) ProtoReflect() protoreflect.Message
func (*PhotoServiceThumbnailByHashResponse) Reset ¶ added in v0.7.0
func (x *PhotoServiceThumbnailByHashResponse) Reset()
func (*PhotoServiceThumbnailByHashResponse) String ¶ added in v0.7.0
func (x *PhotoServiceThumbnailByHashResponse) String() string
type PhotoService_ContentByHashClient ¶
type PhotoService_ContentByHashClient interface { Recv() (*PhotoServiceContentByHashResponse, error) grpc.ClientStream }
type PhotoService_ContentByHashServer ¶
type PhotoService_ContentByHashServer interface { Send(*PhotoServiceContentByHashResponse) error grpc.ServerStream }
type PhotoService_ThumbnailByHashClient ¶ added in v0.7.0
type PhotoService_ThumbnailByHashClient interface { Recv() (*PhotoServiceThumbnailByHashResponse, error) grpc.ClientStream }
type PhotoService_ThumbnailByHashServer ¶ added in v0.7.0
type PhotoService_ThumbnailByHashServer interface { Send(*PhotoServiceThumbnailByHashResponse) error grpc.ServerStream }
type ThumbnailByHashRequest ¶ added in v0.7.0
type ThumbnailByHashRequest struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` // a photo hash Width uint32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` // the requested width for the thumbnail Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` // the requested height for the thumbnail // contains filtered or unexported fields }
ThumbnailByHashRequest represent a search query with a photo hash, a width or an height.
func (*ThumbnailByHashRequest) Descriptor
deprecated
added in
v0.7.0
func (*ThumbnailByHashRequest) Descriptor() ([]byte, []int)
Deprecated: Use ThumbnailByHashRequest.ProtoReflect.Descriptor instead.
func (*ThumbnailByHashRequest) GetHash ¶ added in v0.7.0
func (x *ThumbnailByHashRequest) GetHash() string
func (*ThumbnailByHashRequest) GetHeight ¶ added in v0.9.0
func (x *ThumbnailByHashRequest) GetHeight() uint32
func (*ThumbnailByHashRequest) GetWidth ¶ added in v0.9.0
func (x *ThumbnailByHashRequest) GetWidth() uint32
func (*ThumbnailByHashRequest) ProtoMessage ¶ added in v0.7.0
func (*ThumbnailByHashRequest) ProtoMessage()
func (*ThumbnailByHashRequest) ProtoReflect ¶ added in v0.7.0
func (x *ThumbnailByHashRequest) ProtoReflect() protoreflect.Message
func (*ThumbnailByHashRequest) Reset ¶ added in v0.7.0
func (x *ThumbnailByHashRequest) Reset()
func (*ThumbnailByHashRequest) String ¶ added in v0.7.0
func (x *ThumbnailByHashRequest) String() string
type UnimplementedPhotoServiceServer ¶
type UnimplementedPhotoServiceServer struct { }
UnimplementedPhotoServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedPhotoServiceServer) ContentByHash ¶
func (UnimplementedPhotoServiceServer) ContentByHash(*ContentByHashRequest, PhotoService_ContentByHashServer) error
func (UnimplementedPhotoServiceServer) ExistsByHash ¶ added in v0.3.0
func (UnimplementedPhotoServiceServer) ExistsByHash(context.Context, *ExistsByHashRequest) (*ExistsByHashResponse, error)
func (UnimplementedPhotoServiceServer) GetByHash ¶
func (UnimplementedPhotoServiceServer) GetByHash(context.Context, *GetByHashRequest) (*GetByHashResponse, error)
func (UnimplementedPhotoServiceServer) GetPhotos ¶
func (UnimplementedPhotoServiceServer) GetPhotos(context.Context, *GetPhotosRequest) (*GetPhotosResponse, error)
func (UnimplementedPhotoServiceServer) ThumbnailByHash ¶ added in v0.7.0
func (UnimplementedPhotoServiceServer) ThumbnailByHash(*ThumbnailByHashRequest, PhotoService_ThumbnailByHashServer) error
type UnsafePhotoServiceServer ¶
type UnsafePhotoServiceServer interface {
// contains filtered or unexported methods
}
UnsafePhotoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PhotoServiceServer will result in compilation errors.