Documentation ¶
Index ¶
- func BoundParam(ctx context.Context, name string) string
- func Close(closer io.Closer, log log.Logger)
- func JSONW(w http.ResponseWriter, status int, l log.Logger, data interface{})
- func PrintBanner(a ...interface{})
- func PrintError(a ...interface{})
- func PrintName(str string)
- func ReadBody(request *http.Request, des interface{}, msg string) error
- func Run(addr string, timeout time.Duration, h http.Handler)
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoundParam ¶
BoundParam returns the bound parameter with the given name. Wraps around goji's pat.Param
func Close ¶
Close an io.Closer object by handling it's error. Example:
h, err := app.Init(env) defer utils.Close(h, conf.Config.Log())
func JSONW ¶
func JSONW(w http.ResponseWriter, status int, l log.Logger, data interface{})
JSONW writes JSON response to the given writer
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package infra contains the infrastructural services for the application Infrastructural services focuses on the “plumbing” requirements of an application; e.g.
|
Package infra contains the infrastructural services for the application Infrastructural services focuses on the “plumbing” requirements of an application; e.g. |
aws/ses
Package ses provides the library to communicate to ses service
|
Package ses provides the library to communicate to ses service |
aws/sns
Package sns provides the library to communicate to sns service
|
Package sns provides the library to communicate to sns service |
log
Package log provides provides a minimal interface for structured logging
|
Package log provides provides a minimal interface for structured logging |
metrics
Package metrics provides utilities for capturing counters gauges and histograms from various services written with bingo
|
Package metrics provides utilities for capturing counters gauges and histograms from various services written with bingo |
mysql
Package mysql provides the library to communicate to mysql
|
Package mysql provides the library to communicate to mysql |
postgresql
Package postgresql provides the library to communicate to postgresql
|
Package postgresql provides the library to communicate to postgresql |
redis
Package redis provides the library to communicate to redis
|
Package redis provides the library to communicate to redis |
solr
Package solr provides the library to communicate to solr
|
Package solr provides the library to communicate to solr |
Package middleware contains middlewares to aid the development of micro-services
|
Package middleware contains middlewares to aid the development of micro-services |
Package mux is a wrapper over goji.Mux It adds a predefined list of middlewares to muxes and sub-muxes that would be created via the New() and Sub() functions e.g.
|
Package mux is a wrapper over goji.Mux It adds a predefined list of middlewares to muxes and sub-muxes that would be created via the New() and Sub() functions e.g. |
Click to show internal directories.
Click to hide internal directories.