heal

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StartGoroutineFn

type StartGoroutineFn func(ctx context.Context, pulseInterval time.Duration) <-chan struct{}

StartGoroutineFn 创建一个可以监控和重启的goroutine的方式 参数:退出channel,心跳时间 返回值:返回心跳的channel

func NewSteward

func NewSteward(name string, timeout time.Duration, startGoroutine StartGoroutineFn) StartGoroutineFn

NewSteward 新建一个管理员 参数:下游的超时时间,创建一个可以监控和重启的goroutine的方式 返回值:返回一个创建一个受管理的goroutine和其管理者的函数的创建方式

Jump to

Keyboard shortcuts

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