Documentation
¶
Index ¶
- func ContextIsDone(ctx context.Context) error
- func EQ(left, right interface{}) bool
- func GT(left, right interface{}) bool
- func GTE(left, right interface{}) bool
- func GetLocalIPv4() string
- func GetMasterIP() string
- func Hostname() string
- func IsNil(v interface{}) bool
- func LT(left, right interface{}) bool
- func LTE(left, right interface{}) bool
- type CompareFunc
- type Signal
- type SignalSubscriber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextIsDone ¶
ContextIsDone 判断上下文(Context)是否已经结束,完成
Types ¶
type CompareFunc ¶ added in v2.1.2
type CompareFunc func(left, right interface{}) bool
type Signal ¶ added in v2.1.1
type Signal struct {
// contains filtered or unexported fields
}
func (*Signal) Subscribe ¶ added in v2.1.1
func (s *Signal) Subscribe() *SignalSubscriber
func (*Signal) Unsubscribe ¶ added in v2.1.3
func (s *Signal) Unsubscribe(sb *SignalSubscriber)
type SignalSubscriber ¶ added in v2.1.3
type SignalSubscriber struct {
C <-chan interface{}
// contains filtered or unexported fields
}
func (*SignalSubscriber) Close ¶ added in v2.1.3
func (sb *SignalSubscriber) Close() error
Click to show internal directories.
Click to hide internal directories.