rwe

package
v0.0.0-...-94fc6d2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: BSD-2-Clause Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WaitGroup sync.WaitGroup
	ExitCh    = make(chan struct{})
)
View Source
var (
	Config *xconfig.Config
	Ctx    context.Context
)
View Source
var (
	Router *gin.Engine
	API    *gin.RouterGroup
)
View Source
var Clock = clock.New()
View Source
var (
	Tracer = global.Tracer("github.com/uptrace/go-realworld-example-app")
)

Functions

func Exit

func Exit(ctx context.Context)

func Exiting

func Exiting() bool

func Init

func Init(ctx context.Context, cfg *xconfig.Config) context.Context

func IsDebug

func IsDebug() bool

func NewPostgres

func NewPostgres(cfg *xconfig.Postgres, usePool bool) *pg.DB

func OnExit

func OnExit(h hookFn)

func OnExitSecondary

func OnExitSecondary(h hookFn)

func OnInit

func OnInit(fn hookFn)

func PGMain

func PGMain() *pg.DB

func PGMainTx

func PGMainTx() *pg.DB

func RateLimiter

func RateLimiter() *redis_rate.Limiter

func RedisCache

func RedisCache() *cache.Cache

func RedisRing

func RedisRing() *redis.Ring

func Running

func Running() bool

func Uptrace

func Uptrace() *uptrace.Client

func WaitExitSignal

func WaitExitSignal() os.Signal

Types

This section is empty.

Jump to

Keyboard shortcuts

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