github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/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/v2"
     8  	"code.cloudfoundry.org/go-loggregator/v9/rpc/loggregator_v2"
     9  )
    10  
    11  //go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . 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  }