initialize

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConfig

func InitConfig()

func InitLogger

func InitLogger()

func InitMySQL

func InitMySQL()

func InitServiceConn

func InitServiceConn()

func InitTranslator

func InitTranslator(locale string) (err error)

func Router

func Router() *gin.Engine

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