go-utils

module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT

Directories

Path Synopsis
package for access control
package for access control
https://github.com/etcd-io/etcd/blob/master/pkg/fileutil Copyright 2015 The etcd Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
https://github.com/etcd-io/etcd/blob/master/pkg/fileutil Copyright 2015 The etcd Authors Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
message
quit
进程退出消息,用于服务优雅退出,通知一些模块做清理工作 Closer接口的Close方法应该是同步清理的逻辑 func (s *SomeService) worker() { for { select { //...other case // quit case <-s.quit // ....
进程退出消息,用于服务优雅退出,通知一些模块做清理工作 Closer接口的Close方法应该是同步清理的逻辑 func (s *SomeService) worker() { for { select { //...other case // quit case <-s.quit // ....

Jump to

Keyboard shortcuts

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