infrastructure

module
v0.3.5-0...-ad62298 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT

README

infrastructure

Collecting some utilities those will be useful when coding a web application with Go.

Features

  • Framework based gorm, logrus, go-redis/redis, gin, etcd, mgo.v2, jwt-go.
  • Health Checking
  • Lang utils, like: MultiSorter, ConvertStruct2Map, WalkFolder...
  • Some Types including: Envrion, Database Cfg, Codes to response...

Todos:

  • fill gormic package
  • finish logger test cases
  • finish code test cases
  • finish utils test cases
  • finish framework test cases
  • finish gormic test cases
  • support validator.v8.ResourceCheck

Golang Model Struct to Service Struct

moved to jademperor/go-tools

Examples

gin do not support validator.v9 for now ...

resource-validator to check if the resource exists.
  • health checker

    checking healthy of Mongo, Redis, SQL-DB, Service over TCP.

  • amqp wrapper

    wrap amqp.Connection with reconnection ability.

Directories

Path Synopsis
cmd
examples
framework
consistent-hashing
Package chashing didn't think about migrating work
Package chashing didn't think about migrating work
etcd
Package etcd includes etcd clients ops related
Package etcd includes etcd clients ops related
mgo
Package healthcheck provide ability to check third-party services are alive of offline.
Package healthcheck provide ability to check third-party services are alive of offline.
pkg
alg
fontutil
Package fontutil .
Package fontutil .
fs
codes
Package code to define some code
Package code to define some code

Jump to

Keyboard shortcuts

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