Documentation
¶
Index ¶
- func InitConfig()
- func InitFilter()
- func InitLogger()
- func InitSentinel()
- func InitServiceConn()
- func InitTranslator(locale string) (err error)
- func InitValidator()
- func NewJaegerTracer(serviceName string) (tracer opentracing.Tracer, closer io.Closer)
- func Router() (*gin.Engine, io.Closer)
- type Registry
- type RegistryClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig()
func InitFilter ¶
func InitFilter()
func InitLogger ¶
func InitLogger()
func InitSentinel ¶
func InitSentinel()
func InitServiceConn ¶
func InitServiceConn()
func InitTranslator ¶
func InitValidator ¶
func InitValidator()
func NewJaegerTracer ¶
func NewJaegerTracer(serviceName string) (tracer opentracing.Tracer, closer io.Closer)
Types ¶
type Registry ¶
func (*Registry) DeRegister ¶
type RegistryClient ¶
type RegistryClient interface {
Register(address string, port int, name string, tags []string, id string) error
DeRegister(serviceId string) error
}
func NewRegistryClient ¶
func NewRegistryClient(host string, port int) RegistryClient
Click to show internal directories.
Click to hide internal directories.