global

package
v0.0.0-...-7604275 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HttpProvider = wire.NewSet(NewHttpGlobal)
View Source
var RpcProvider = wire.NewSet(NewRpcGlobal)

Functions

This section is empty.

Types

type HttpGlobal

type HttpGlobal struct {
	Conf      *config.Config
	Logger    *logrus.Logger
	Db        *gorm.DB
	Rd        redis.Conn
	Rsp       *response.Response
	Tracer    opentracing.Tracer
	Closer    io.Closer
	RequestId string
}
var GH *HttpGlobal

func NewHttpGlobal

func NewHttpGlobal(conf *config.Config, logger *logrus.Logger, db *gorm.DB, rd redis.Conn, rsp *response.Response, j *jaeger.Jaeger) *HttpGlobal

type RpcGlobal

type RpcGlobal struct {
	Conf      *config.Config
	Logger    *logrus.Logger
	Db        *gorm.DB
	Rd        redis.Conn
	Rsp       *response.Response
	Tracer    opentracing.Tracer
	Closer    io.Closer
	RequestId string
}
var GR *RpcGlobal

func NewRpcGlobal

func NewRpcGlobal(conf *config.Config, logger *logrus.Logger, db *gorm.DB, rd redis.Conn, rsp *response.Response, j *jaeger.Jaeger) *RpcGlobal

Jump to

Keyboard shortcuts

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