github.com/loggregator/cli@v6.33.1-0.20180224010324-82334f081791+incompatible/cf/api/logs/noaa_consumer.go (about) 1 package logs 2 3 import ( 4 "github.com/cloudfoundry/noaa/consumer" 5 "github.com/cloudfoundry/sonde-go/events" 6 ) 7 8 // Should be satisfied automatically by *noaa.Consumer 9 //go:generate counterfeiter . NoaaConsumer 10 11 type NoaaConsumer interface { 12 TailingLogs(string, string) (<-chan *events.LogMessage, <-chan error) 13 RecentLogs(appGUID string, authToken string) ([]*events.LogMessage, error) 14 Close() error 15 SetOnConnectCallback(cb func()) 16 RefreshTokenFrom(tr consumer.TokenRefresher) 17 }