github.com/loafoe/cli@v7.1.0+incompatible/actor/sharedaction/log_cache_client.go (about)

     1  package sharedaction
     2  
     3  import (
     4  	"context"
     5  	"time"
     6  
     7  	logcache "code.cloudfoundry.org/go-log-cache"
     8  	"code.cloudfoundry.org/go-loggregator/rpc/loggregator_v2"
     9  )
    10  
    11  //go:generate counterfeiter . LogCacheClient
    12  
    13  // LogCacheClient is a client for getting logs.
    14  type LogCacheClient interface {
    15  	Read(
    16  		ctx context.Context,
    17  		sourceID string,
    18  		start time.Time,
    19  		opts ...logcache.ReadOption,
    20  	) ([]*loggregator_v2.Envelope, error)
    21  }