Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface { // Authenticate returns true if everything is fine, otherwise returns false and writes // the according status code back. Authenticate(w http.ResponseWriter, r *http.Request) bool }
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(service *pic.CameraService, authenticator Authenticator) *Controller
func (*Controller) Configure ¶
func (c *Controller) Configure(r server.Router)
Click to show internal directories.
Click to hide internal directories.