Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReaderHub ¶
type ReaderHub struct {
// contains filtered or unexported fields
}
ReaderHub holds information for all active Readers.
func GetReaderHub ¶
func GetReaderHub() *ReaderHub
GetReaderHub gets singleton instance of ReaderHub.
func (*ReaderHub) EarliestActiveRelayLog ¶
func (h *ReaderHub) EarliestActiveRelayLog() *RelayLogInfo
EarliestActiveRelayLog implements RelayOperator.EarliestActiveRelayLog.
func (*ReaderHub) RemoveActiveRelayLog ¶
RemoveActiveRelayLog removes active relay log for taskName.
func (*ReaderHub) UpdateActiveRelayLog ¶
UpdateActiveRelayLog updates active relay log for taskName.
type RelayLogInfo ¶
RelayLogInfo represents information for relay log.
func (*RelayLogInfo) Earlier ¶
func (info *RelayLogInfo) Earlier(other *RelayLogInfo) bool
Earlier checks whether this relay log file is earlier than the other.
func (*RelayLogInfo) String ¶
func (info *RelayLogInfo) String() string
String implements Stringer.String.
Click to show internal directories.
Click to hide internal directories.