Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateInput ¶
type CreateInput struct {
Caption string
}
CreateInput is a new gallery photo; the image is required.
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
Handlers serves /gallery.
func NewHandlers ¶
type Public ¶
type Public struct {
ID int `json:"id"`
Caption string `json:"caption,omitempty"`
ImageURL string `json:"imageUrl"`
}
Public is a gallery photo as the API returns it.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the gallery business logic.
func NewService ¶
Click to show internal directories.
Click to hide internal directories.