fairy

package module
v0.25.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2023 License: MIT Imports: 0 Imported by: 0

README

Fairy

Go Report Card Go Reference

Fairy contains several general tools for easier and simpler development.

All these tools are simplified version of the original ones and for general use. Your case may need a more complex one but I hope these tools can help you or at least become a reference for your own tools.

Good luck.


Installation

go get github.com/rl404/fairy

Usage

Please go to the documentation or example folder.

License

MIT License

Copyright (c) 2021 Axel

Documentation

Overview

Package fairy contains several general tools for easier and simpler development.

Directories

Path Synopsis
inmemory
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.
mocks
Package mock_cache is a generated GoMock package.
Package mock_cache is a generated GoMock package.
nop
Package nop is a no-operation caching.
Package nop is a no-operation caching.
redis
Package redis is a wrapper of the original "github.com/redis/go-redis" library.
Package redis is a wrapper of the original "github.com/redis/go-redis" library.
errors
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
cache
This file contains function to help you switch caching type easily.
This file contains function to help you switch caching type easily.
limit
This file contains function to help you switch limiter type easily.
This file contains function to help you switch limiter type easily.
log
This file contains function to help you switch logging type easily.
This file contains function to help you switch logging type easily.
monitoring
This file contains function to help you switch caching type easily.
This file contains function to help you switch caching type easily.
pubsub/publisher
This file contains function to help you switch pubsub type easily.
This file contains function to help you switch pubsub type easily.
pubsub/subscriber
This file contains function to help you switch pubsub type easily.
This file contains function to help you switch pubsub type easily.
atomic
Package atomic is a rate limiter based on "github.com/uber-go/ratelimit" library.
Package atomic is a rate limiter based on "github.com/uber-go/ratelimit" library.
mocks
Package mock_limit is a generated GoMock package.
Package mock_limit is a generated GoMock package.
mutex
Package mutex is a rate limiter based on "github.com/uber-go/ratelimit" library.
Package mutex is a rate limiter based on "github.com/uber-go/ratelimit" library.
nop
Package nop is a no-operation rate limiter.
Package nop is a no-operation rate limiter.
log
builtin
Deprecated: use slog.
Deprecated: use slog.
chain
Package chain is a logger chain.
Package chain is a logger chain.
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.
mocks
Package mock_log is a generated GoMock package.
Package mock_log is a generated GoMock package.
newrelic
Package newrelic is a wrapper of the original "github.com/newrelic/go-agent/v3/newrelic".
Package newrelic is a wrapper of the original "github.com/newrelic/go-agent/v3/newrelic".
nop
Package nop is no-operation logging.
Package nop is no-operation logging.
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.
google
Package google is a wrapper of the original "cloud.google.com/go/pubsub" library.
Package google is a wrapper of the original "cloud.google.com/go/pubsub" library.
kafka
Package kafka is a wrapper of the original "github.com/segmentio/kafka-go" library.
Package kafka is a wrapper of the original "github.com/segmentio/kafka-go" library.
mocks
Package mock_pubsub is a generated GoMock package.
Package mock_pubsub is a generated GoMock package.
nop
Package nop is no-operation pubsub.
Package nop is no-operation pubsub.
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/redis/go-redis" library.
Package redis is a wrapper of the original "github.com/redis/go-redis" 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL