 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- func Contain(obj interface{}, target interface{}) bool
- func GetLogCount(logGroupList *sls.LogGroupList) int
- func GetLogGroupCount(logGroupList *sls.LogGroupList) int
- func IntSliceReflectEqual(a, b []int) bool
- func Min(a, b int64) int64
- func Set(slc []int) []int
- func Subtract(a []int, b []int) (diffSlice []int)
- func TimeToSleepInMillsecond(intervalTime, lastCheckTime int64, condition bool)
- func TimeToSleepInSecond(intervalTime, lastCheckTime int64, condition bool)
- type ConsumerCheckPointTracker
- type ConsumerClient
- type ConsumerHeatBeat
- type ConsumerWorker
- type LogHubConfig
- type ShardConsumerWorker
Constants ¶
      View Source
      
  
const ( BEGIN_CURSOR = "BEGIN_CURSOR" END_CURSOR = "END_CURSOR" SPECIAL_TIMER_CURSOR = "SPECIAL_TIMER_CURSOR" INITIALIZING = "INITIALIZING" INITIALIZING_DONE = "INITIALIZING_DONE" PULL_PROCESSING = "PULL_PROCESSING" PULL_PROCESSING_DONE = "PULL_PROCESSING_DONE" CONSUME_PROCESSING = "CONSUME_PROCESSING" CONSUME_PROCESSING_DONE = "CONSUME_PROCESSING_DONE" SHUTDOWN_COMPLETE = "SHUTDOWN_COMPLETE" )
Variables ¶
This section is empty.
Functions ¶
func Contain ¶
func Contain(obj interface{}, target interface{}) bool
    Determine whether obj is in target object
func GetLogCount ¶
func GetLogCount(logGroupList *sls.LogGroupList) int
Get the total number of logs
func GetLogGroupCount ¶
func GetLogGroupCount(logGroupList *sls.LogGroupList) int
func IntSliceReflectEqual ¶
Determine whether two lists are equal
func TimeToSleepInMillsecond ¶
func TimeToSleepInSecond ¶
Types ¶
type ConsumerCheckPointTracker ¶
type ConsumerCheckPointTracker struct {
	// contains filtered or unexported fields
}
    type ConsumerClient ¶
type ConsumerClient struct {
	// contains filtered or unexported fields
}
    type ConsumerHeatBeat ¶
type ConsumerHeatBeat struct {
	// contains filtered or unexported fields
}
    type ConsumerWorker ¶
func InitConsumerWorker ¶
func InitConsumerWorker(option LogHubConfig, do func(int, *sls.LogGroupList) string) *ConsumerWorker
func (*ConsumerWorker) Start ¶
func (consumerWorker *ConsumerWorker) Start()
func (*ConsumerWorker) StopAndWait ¶
func (consumerWorker *ConsumerWorker) StopAndWait()
type LogHubConfig ¶
type LogHubConfig struct {
	Endpoint                  string
	AccessKeyID               string
	AccessKeySecret           string
	Project                   string
	Logstore                  string
	ConsumerGroupName         string
	ConsumerName              string
	CursorPosition            string
	HeartbeatIntervalInSecond int
	DataFetchIntervalInMs     int64
	MaxFetchLogGroupCount     int
	CursorStartTime           int64 // Unix time stamp; Units are seconds.
	InOrder                   bool
	AllowLogLevel             string
	LogFileName               string
	IsJsonType                bool
	LogMaxSize                int
	LogMaxBackups             int
	LogCompass                bool
}
    type ShardConsumerWorker ¶
type ShardConsumerWorker struct {
	// contains filtered or unexported fields
}
     Click to show internal directories. 
   Click to hide internal directories.