Directories ¶
Path | Synopsis |
---|---|
api
|
|
internal
|
|
test/configtest
Package configtest is used as a helper in tests that need configuration service implementing config.Interface.
|
Package configtest is used as a helper in tests that need configuration service implementing config.Interface. |
test/iotest
Package iotest is used as a helper in tests that need files or use some other io.
|
Package iotest is used as a helper in tests that need files or use some other io. |
test/redistest
Package redistest is used as a helper in tests that need mocked redis connection.
|
Package redistest is used as a helper in tests that need mocked redis connection. |
pkg
|
|
config
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. |
config/encoder/json
Package json provides JSON encoder to use with config package.
|
Package json provides JSON encoder to use with config package. |
config/encoder/toml
Package toml provides TOML encoder to use with config package.
|
Package toml provides TOML encoder to use with config package. |
config/encoder/yaml
Package yaml provides YAML encoder to use with config package.
|
Package yaml provides YAML encoder to use with config package. |
config/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. |
config/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. |
config/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. |
config/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. |
config/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. |
config/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. |
daemon
Package daemon provides service that runs blocking loop.
|
Package daemon provides service that runs blocking loop. |
errors
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. |
http/httpservice
Package httpservice provides simple http framework for generic http service.
|
Package httpservice provides simple http framework for generic http service. |
http/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. |
http/httpservice/decoder
Package decoder provides request decoding functionality for the context.
|
Package decoder provides request decoding functionality for the context. |
http/httpservice/encoder
Package encoder provides response encoding functionality for the context package.
|
Package encoder provides response encoding functionality for the context package. |
http/httpservice/middleware
Package middleware provides commonly-used middleware functions for the httpservice package.
|
Package middleware provides commonly-used middleware functions for the httpservice package. |
http/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. |
log
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. |
storage/redis
Package redis provides convenient API to redis storage.
|
Package redis provides convenient API to redis storage. |
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.