Documentation ¶
Index ¶
- func NewLocalDistributedService(params ...interface{}) (interface{}, error)
- type LocalDistributedProvider
- func (h *LocalDistributedProvider) Boot(container framework.Container) error
- func (h *LocalDistributedProvider) IsDefer() bool
- func (h *LocalDistributedProvider) Name() string
- func (h *LocalDistributedProvider) Params(container framework.Container) []interface{}
- func (h *LocalDistributedProvider) Register(container framework.Container) framework.NewInstance
- type LocalDistributedService
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 ¶
func (h *LocalDistributedProvider) Boot(container framework.Container) error
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 ¶
func (h *LocalDistributedProvider) Register(container framework.Container) framework.NewInstance
Register 注册HadeApp方法
type LocalDistributedService ¶
type LocalDistributedService struct {
// contains filtered or unexported fields
}
LocalDistributedService 代表hade框架的App实现
Click to show internal directories.
Click to hide internal directories.