Documentation ¶
Overview ¶
Package fairy contains several general tools for easier and simpler development.
Directories ¶
Path | Synopsis |
---|---|
bigcache
Package bigcache is a wrapper of the original "github.com/allegro/bigcache" library.
|
Package bigcache is a wrapper of the original "github.com/allegro/bigcache" library. |
memcache
Package memcache is a wrapper of the original "github.com/bradfitz/gomemcache/memcache" library.
|
Package memcache is a wrapper of the original "github.com/bradfitz/gomemcache/memcache" library. |
nocache
Package nocache is a mock of caching.
|
Package nocache is a mock of caching. |
redis
Package redis is a wrapper of the original "github.com/go-redis/redis" library.
|
Package redis is a wrapper of the original "github.com/go-redis/redis" library. |
stack
Package stack is an error wrapper and put it to a stack using passed context.
|
Package stack is an error wrapper and put it to a stack using passed context. |
example
|
|
builtin
Package builtin is a wrapper of the built-in log package.
|
Package builtin is a wrapper of the built-in log package. |
elasticsearch
Package elasticsearch is a wrapper of the original "github.com/elastic/go-elasticsearch".
|
Package elasticsearch is a wrapper of the original "github.com/elastic/go-elasticsearch". |
logrus
Package logrus is a wrapper of the original "github.com/sirupsen/logrus" library.
|
Package logrus is a wrapper of the original "github.com/sirupsen/logrus" library. |
nolog
Package nolog is just a mock of logging which do nothing.
|
Package nolog is just a mock of logging which do nothing. |
zap
Package zap is a wrapper of the original "github.com/uber-go/zap" library.
|
Package zap is a wrapper of the original "github.com/uber-go/zap" library. |
zerolog
Package zerolog is a wrapper of the original "github.com/rs/zerolog" library.
|
Package zerolog is a wrapper of the original "github.com/rs/zerolog" library. |
monitoring
|
|
prometheus/cache
Package cache is a prometheus wrapper for "github.com/rl404/fairy/cache" cacher interface.
|
Package cache is a prometheus wrapper for "github.com/rl404/fairy/cache" cacher interface. |
prometheus/database
Package database is a prometheus wrapper for database.
|
Package database is a prometheus wrapper for database. |
prometheus/middleware
Package middleware is a prometheus middleware for HTTP server.
|
Package middleware is a prometheus middleware for HTTP server. |
nsq
Package nsq is a wrapper of the original "github.com/nsqio/go-nsq" library.
|
Package nsq is a wrapper of the original "github.com/nsqio/go-nsq" library. |
rabbitmq
Package rabbitmq is a wrapper of the original "github.com/streadway/amqp" library.
|
Package rabbitmq is a wrapper of the original "github.com/streadway/amqp" library. |
redis
Package redis is a wrapper of the original "github.com/go-redis/redis/v8" library.
|
Package redis is a wrapper of the original "github.com/go-redis/redis/v8" library. |
playground
Package playground is a wrapper of the original "github.com/go-playground/validator" and "github.com/go-playground/mold" library.
|
Package playground is a wrapper of the original "github.com/go-playground/validator" and "github.com/go-playground/mold" library. |
Click to show internal directories.
Click to hide internal directories.