Documentation ¶
Index ¶
- Variables
- func DialGRPC(ctx context.Context, proto, address string, timeout time.Duration, ...) (*grpc.ClientConn, error)
- func GRPCListenAndServe(server *grpc.Server, proto, address string) error
- func InitGraceUpgrade(exit context.CancelFunc, timeout time.Duration, sig os.Signal)
- func NotifyWhenConfigChanged(file string, out interface{}, unmarshalFunc func([]byte, interface{}) error) <-chan struct{}
- func ScanAnyAvail(data []byte, atEOF bool) (advance int, token []byte, err error)
- func UnWatchFileWrite(file string) error
- func Unmarshal(file string, out interface{}, unmarshalFunc func([]byte, interface{}) error) error
- type Command
- type FileEventChan
- type StringInterfaceMap
- type Worker
- type WorkerChan
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Net, _ = tableflip.New(tableflip.Options{UpgradeTimeout: tableflip.DefaultUpgradeTimeout})
N = Net.Fds
)
View Source
var (
Workers = &workerGroup{}
)
Functions ¶
func DialGRPC ¶
func InitGraceUpgrade ¶
func NotifyWhenConfigChanged ¶
func ScanAnyAvail ¶
ScanAnyAvail a split func to get all available bytes
Types ¶
type Command ¶
type FileEventChan ¶
type FileEventChan struct {
Write chan struct{}
}
func WatchFileWrite ¶
func WatchFileWrite(file string) (*FileEventChan, error)
type StringInterfaceMap ¶
type StringInterfaceMap struct {
// contains filtered or unexported fields
}
func (*StringInterfaceMap) Del ¶
func (ss *StringInterfaceMap) Del(s string)
func (*StringInterfaceMap) Get ¶
func (ss *StringInterfaceMap) Get(s string) (interface{}, bool)
func (*StringInterfaceMap) Set ¶
func (ss *StringInterfaceMap) Set(s string, val interface{})
Click to show internal directories.
Click to hide internal directories.