Documentation ¶
Index ¶
- func NewPhotoService() photo.PhotoServiceServer
- type PhotoService
- func (p *PhotoService) AllPhotos(ctx context.Context, _ *empty.Empty) (*photo.AllPhotosResponse, error)
- func (p *PhotoService) Photo(ctx context.Context, in *photo.PhotoRequest) (*photo.PhotoResponse, error)
- func (p *PhotoService) PostPhoto(ctx context.Context, in *photo.PostPhotoRequest) (*photo.PhotoResponse, error)
- func (p *PhotoService) TagPhoto(ctx context.Context, in *photo.TagPhotoRequest) (*empty.Empty, error)
- func (p *PhotoService) TotalPhotos(ctx context.Context, _ *empty.Empty) (*photo.TotalPhotosResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPhotoService ¶
func NewPhotoService() photo.PhotoServiceServer
Types ¶
type PhotoService ¶
type PhotoService struct {
// contains filtered or unexported fields
}
func (*PhotoService) AllPhotos ¶
func (p *PhotoService) AllPhotos(ctx context.Context, _ *empty.Empty) (*photo.AllPhotosResponse, error)
func (*PhotoService) Photo ¶
func (p *PhotoService) Photo(ctx context.Context, in *photo.PhotoRequest) (*photo.PhotoResponse, error)
func (*PhotoService) PostPhoto ¶
func (p *PhotoService) PostPhoto(ctx context.Context, in *photo.PostPhotoRequest) (*photo.PhotoResponse, error)
func (*PhotoService) TagPhoto ¶
func (p *PhotoService) TagPhoto(ctx context.Context, in *photo.TagPhotoRequest) (*empty.Empty, error)
func (*PhotoService) TotalPhotos ¶
func (p *PhotoService) TotalPhotos(ctx context.Context, _ *empty.Empty) (*photo.TotalPhotosResponse, error)
Click to show internal directories.
Click to hide internal directories.