Documentation ¶
Index ¶
- func Monitor(serviceName, routeName, signature string) func(http.Handler) http.Handler
- func Sepia(src image.Image, buf *bytes.Buffer) error
- func Trace(opName string) func(http.Handler) http.Handler
- type Handler
- func (h *Handler) Close()
- func (h *Handler) CreateAccountImage(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAccountImage(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ProcessImageFromFile(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateAccountImage(w http.ResponseWriter, r *http.Request)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(dbClient dbclient.IGormClient) *Handler
func (*Handler) CreateAccountImage ¶
func (h *Handler) CreateAccountImage(w http.ResponseWriter, r *http.Request)
func (*Handler) GetAccountImage ¶
func (h *Handler) GetAccountImage(w http.ResponseWriter, r *http.Request)
func (*Handler) ProcessImageFromFile ¶
func (h *Handler) ProcessImageFromFile(w http.ResponseWriter, r *http.Request)
*
- Takes the filename and tries to decode an image from /testimages/{filename}. Used for testing.
func (*Handler) UpdateAccountImage ¶
func (h *Handler) UpdateAccountImage(w http.ResponseWriter, r *http.Request)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SeedAccountImages ¶
func (s *Server) SeedAccountImages()
func (*Server) SetupRoutes ¶
func (s *Server) SetupRoutes()
Click to show internal directories.
Click to hide internal directories.