Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) UploadToS3 ¶
func (h *Handler) UploadToS3(w http.ResponseWriter, r *http.Request)
type ImageResponse ¶
type ImageResponse struct {
ImageURL string `json:"imageUrl"`
}
type Service ¶
type Service interface {
UploadToS3(ctx context.Context, readSeeker io.ReadSeeker) (*ImageResponse, error)
}
func NewService ¶
Click to show internal directories.
Click to hide internal directories.