Directories ¶
Path | Synopsis |
---|---|
Package config provides configuration service that can use arbitrary encoders to fill external structures with configuration data.
|
Package config provides configuration service that can use arbitrary encoders to fill external structures with configuration data. |
encoder/json
Package json provides JSON encoder to use with config package.
|
Package json provides JSON encoder to use with config package. |
encoder/toml
Package toml provides TOML encoder to use with config package.
|
Package toml provides TOML encoder to use with config package. |
encoder/yaml
Package yaml provides YAML encoder to use with config package.
|
Package yaml provides YAML encoder to use with config package. |
env
Package env is a wrapper around config package and allows reading configuration from some source and parsing it with some encoder, both defined in environment variables.
|
Package env is a wrapper around config package and allows reading configuration from some source and parsing it with some encoder, both defined in environment variables. |
env/etcd
Package etcd is a wrapper around config package and allows reading configuration from some key in etcd server and parsing it with some encoder, where endpoints and key are defined in environment variables.
|
Package etcd is a wrapper around config package and allows reading configuration from some key in etcd server and parsing it with some encoder, where endpoints and key are defined in environment variables. |
env/file
Package file is a wrapper around config package and allows reading configuration from some file on disk and parsing it with some encoder, where file name is defined in environment variable.
|
Package file is a wrapper around config package and allows reading configuration from some file on disk and parsing it with some encoder, where file name is defined in environment variable. |
etcd
Package etcd is a wrapper around config package and allows reading configuration from some key in etcd server.
|
Package etcd is a wrapper around config package and allows reading configuration from some key in etcd server. |
file
Package file is a wrapper around config package and allows reading configuration from some file on disk.
|
Package file is a wrapper around config package and allows reading configuration from some file on disk. |
i2s
Package i2s provides convertor from raw data representation as map[string]interface{} into external structure using reflection.
|
Package i2s provides convertor from raw data representation as map[string]interface{} into external structure using reflection. |
Package daemon provides service that runs blocking loop.
|
Package daemon provides service that runs blocking loop. |
Package errors provides basic error primitive with optional stack trace and cause error.
|
Package errors provides basic error primitive with optional stack trace and cause error. |
grpc
|
|
grpcserver
Package grpcserver provides API to grpc server with graceful shutdown.
|
Package grpcserver provides API to grpc server with graceful shutdown. |
http
|
|
httpserver
Package httpserver provides API to standard http server with graceful shutdown.
|
Package httpserver provides API to standard http server with graceful shutdown. |
httpservice
Package httpservice provides simple http framework for generic http service.
|
Package httpservice provides simple http framework for generic http service. |
httpservice/context
Package context provides context object for data that belongs to an individual http request.
|
Package context provides context object for data that belongs to an individual http request. |
httpservice/decoder
Package decoder provides request decoding functionality for the context.
|
Package decoder provides request decoding functionality for the context. |
httpservice/encoder
Package encoder provides response encoding functionality for the context package.
|
Package encoder provides response encoding functionality for the context package. |
httpservice/middleware
Package middleware provides commonly-used middleware functions for the httpservice package.
|
Package middleware provides commonly-used middleware functions for the httpservice package. |
httpservice/response
Package response provides wrapper around http.ResponseWriter used inside context object, also it provides some commonly-used response payloads.
|
Package response provides wrapper around http.ResponseWriter used inside context object, also it provides some commonly-used response payloads. |
Package log provides simple logger designed to write info messages into stdout, and error messages into stderr.
|
Package log provides simple logger designed to write info messages into stdout, and error messages into stderr. |
storage
|
|
mongo
Package mongo provides convenient API to mongodb.
|
Package mongo provides convenient API to mongodb. |
redis
Package redis provides convenient API to redis storage.
|
Package redis provides convenient API to redis storage. |
redis/rdidgen
Package rdidgen provides implementation of id generation using redis server.
|
Package rdidgen provides implementation of id generation using redis server. |
sync
|
|
runman
Package runman provides manager that can run a bunch of Runner interface implementations concurrently.
|
Package runman provides manager that can run a bunch of Runner interface implementations concurrently. |
Click to show internal directories.
Click to hide internal directories.