registry

package
v0.0.0-...-31a32bb Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const EtcdAddr = "127.0.0.1:12379"

Variables

View Source
var KratosEtcdRegistry *kratos_etcd.Registry

Functions

func Register

func Register(ctx context.Context, instance *KratosServiceInstance) (func(), error)

Register 注册一个实例,并且返回其注销函数

Types

type KratosServiceInstance

type KratosServiceInstance struct {
	ServiceInstance    *kratos_registry.ServiceInstance
	GrpcServerListener net.Listener
}

func BuildServiceInstance

func BuildServiceInstance(srvName, network, addr string) (*KratosServiceInstance, error)

BuildServiceInstance 构建一个实例

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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