Documentation ¶
Index ¶
- func Monitor(serviceName, routeName, signature string) func(http.Handler) http.Handler
- func Trace(opName string) func(http.Handler) http.Handler
- type Handler
- func (h *Handler) Close()
- func (h *Handler) GetAccount(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetAccountByNameWithCount(w http.ResponseWriter, r *http.Request)
- func (h *Handler) RandomAccount(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SeedAccounts(w http.ResponseWriter, r *http.Request)
- func (h *Handler) StoreAccount(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateAccount(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) GetAccount ¶
func (h *Handler) GetAccount(w http.ResponseWriter, r *http.Request)
GetAccount loads an account instance, including a quote and an image URL using sub-services.
func (*Handler) GetAccountByNameWithCount ¶
func (h *Handler) GetAccountByNameWithCount(w http.ResponseWriter, r *http.Request)
func (*Handler) RandomAccount ¶
func (h *Handler) RandomAccount(w http.ResponseWriter, r *http.Request)
RandomAccount is strictly used for easily getting hold of an account id for demo purposes.
func (*Handler) SeedAccounts ¶
func (h *Handler) SeedAccounts(w http.ResponseWriter, r *http.Request)
func (*Handler) StoreAccount ¶
func (h *Handler) StoreAccount(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateAccount ¶
func (h *Handler) UpdateAccount(w http.ResponseWriter, r *http.Request)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) SetupRoutes ¶
func (s *Server) SetupRoutes()
Click to show internal directories.
Click to hide internal directories.