module

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TyDiscover  = "discover"
	TyBalancer  = "balancer"
	TyElector   = "elector"
	TyLinkCache = "link-cache"
	TyTracer    = "tracer"
)

module type

Variables

This section is empty.

Functions

func Register

func Register(b Builder)

Register 注册balancer

Types

type Builder

type Builder interface {
	Build(serviceName string, mb mailbox.IMailbox, logger logger.ILogger) (IModule, error)
	Name() string
	Type() string
	AddOption(opt interface{})
}

Builder builder

func GetBuilder

func GetBuilder(name string) Builder

GetBuilder 获取构建器

type IModule

type IModule interface {
	Init()
	Run()
	Close()
}

IModule module

Directories

Path Synopsis
rpc

Jump to

Keyboard shortcuts

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