Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyRoundTripper ¶
type APIKeyRoundTripper struct {
Key string
AdditionalHeaders []config.Header
// Transport is the underlying HTTP transport.
// if nil, http.DefaultTransport is used.
Transport http.RoundTripper
}
APIKeyRoundTripper is an HTTP transport which wraps the underlying transport and sets the Authorization header
type Client ¶
Client represents a HTTP client for making requests to the FullStory API.
func NewClient ¶
NewClient returns a Client initialized with http.DefaultClient and the supplied apiToken.
func (*Client) CreateExport ¶
type DataExportClient ¶
type DataExportClient interface {
// CreateExport starts an asynchronous export of the "Everyone" segment for the specified time range.
// The time bounds for start and stop are inclusive and exclusive, respectively.
// If successful, returns the id for the created export which can be used to check the progress.
CreateExport(start time.Time, end time.Time, fields []string) (string, error)
// GetExportProgress returns the estimated progress of the export for the provided operation and the id
// of the export if ready for download. The progress value is an integer between 1 and 100
// and represents and estimated completion percentage.
GetExportProgress(operationId string) (progress int, exportId string, err error)
// GetExport returns a stream for the provided export ID. If the export is not ready, this
// will fail with ErrExportNotReady.
GetExport(exportId string) (io.ReadCloser, error)
}
DataExportClient represents an interface for interacting with the FullStory Data Export API
type ExportError ¶
type ExportError struct {
Details string
}
func (ExportError) Error ¶
func (e ExportError) Error() string
Click to show internal directories.
Click to hide internal directories.