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: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

func InitGRPC

func InitGRPC() (*grpc.Server, io.Closer)

func InitLogger

func InitLogger()

func InitRedis

func InitRedis()

func NewJaegerTracer

func NewJaegerTracer(serviceName string) (tracer opentracing.Tracer, closer 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