distributed

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: MIT Imports: 8 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocalDistributedService

func NewLocalDistributedService(params ...interface{}) (interface{}, error)

NewLocalDistributedService 初始化本地分布式服务

Types

type LocalDistributedProvider

type LocalDistributedProvider struct {
}

LocalDistributedProvider 提供App的具体实现方法

func (*LocalDistributedProvider) Boot

Boot 启动调用

func (*LocalDistributedProvider) IsDefer

func (h *LocalDistributedProvider) IsDefer() bool

IsDefer 是否延迟初始化

func (*LocalDistributedProvider) Name

func (h *LocalDistributedProvider) Name() string

Name 获取字符串凭证

func (*LocalDistributedProvider) Params

func (h *LocalDistributedProvider) Params(container framework.Container) []interface{}

Params 获取初始化参数

func (*LocalDistributedProvider) Register

Register 注册HadeApp方法

type LocalDistributedService

type LocalDistributedService struct {
	// contains filtered or unexported fields
}

LocalDistributedService 代表hade框架的App实现

func (LocalDistributedService) Select

func (s LocalDistributedService) Select(serviceName string, appID string, holdTime time.Duration) (selectAppID string, err error)

Select 为分布式选择器

Jump to

Keyboard shortcuts

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