github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/actor/loggingaction/log_cache_client.go (about)

     1  package loggingaction
     2  
     3  import (
     4  	"context"
     5  	"time"
     6  
     7  	"code.cloudfoundry.org/go-loggregator/rpc/loggregator_v2"
     8  	logcache "code.cloudfoundry.org/log-cache/pkg/client"
     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  }