service

package
v0.0.0-...-d002fe6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Monitor

func Monitor(serviceName, routeName, signature string) func(http.Handler) http.Handler

func Sepia

func Sepia(src image.Image, buf *bytes.Buffer) error

Sepia performs a sepia conversion

func Trace

func Trace(opName string) func(http.Handler) http.Handler

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(dbClient dbclient.IGormClient) *Handler

func (*Handler) Close

func (h *Handler) Close()

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 NewServer

func NewServer(h *Handler, cfg *cmd.Config) *Server

func (*Server) Close

func (s *Server) Close()

func (*Server) SeedAccountImages

func (s *Server) SeedAccountImages()

func (*Server) SetupRoutes

func (s *Server) SetupRoutes()

func (*Server) Start

func (s *Server) Start()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL