initialize

package
v0.0.0-...-2bc4f80 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Index

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 InitTranslator(locale string) (err error)

func InitValidator

func InitValidator()

func NewJaegerTracer

func NewJaegerTracer(serviceName string) (tracer opentracing.Tracer, closer io.Closer)

func Router

func Router() (*gin.Engine, io.Closer)

Types

type Registry

type Registry struct {
	Host string
	Port int
}

func (*Registry) DeRegister

func (r *Registry) DeRegister(serviceId string) error

func (*Registry) Register

func (r *Registry) Register(address string, port int, name string, tags []string, id string) error

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

Jump to

Keyboard shortcuts

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