module

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TyDiscover      = "discover"
	TyBalancer      = "balancer"
	TyBalancerGroup = "balancer_group"
	TyElector       = "elector"
	TyLinkCache     = "link-cache"
	TyTracer        = "tracer"
	TyClient        = "client"
	TyServer        = "server"
)

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