go service:服务库例如LoadBalancerHealthCheck或Retry 源码
服务 服务库(例如Task Runner,LoadBalancer,HealthCheck或Retry)支持Go1.9+ 。 1 2 2.1 2.2 2.2.1 2.2.2 1.安装 $ go get -u github.com/xgfone/go-service 2.例子 2.1任务执行器 package main import ( "context" "fmt" "time" "github.com/xgfone/go-service/task" ) type tasker struct { name string } func ( t tasker ) Name () string { return t . name } func ( t tasker ) Run ( ctx context. Context , now time. Time ) ( err erro
文件列表
go-service-master.zip
(预估有个28文件)
go-service-master
go.mod
45B
.travis.yml
136B
LICENSE
11KB
README.md
6KB
httputil
httputil.go
2KB
loadbalancer
failretry.go
3KB
health_check.go
13KB
暂无评论