Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExportFuncNotSet = errors.New("export function was not set") ErrNegativeOrZeroInterval = errors.New("the export interval was negative or zero") )
Errors
Functions ¶
func ExportToDisk ¶
ExportToDisk exports to the specified path, else the current directory
func ExportToS3 ¶
func ExportToS3(sess *session.Session, bucket string, folders []string, fileNamePrefix string) func([]byte)
ExportToS3 exports to the specified bucket, folders and fileNamePrefix are joined
func MustExportToDisk ¶
MustExportToDisk panics if os.Getwd() fails
Types ¶
type Evexi ¶
type Evexi struct {
// contains filtered or unexported fields
}
Evexi should be initialized by the New func
func (*Evexi) Export ¶
Export calls the underlying export func with mux locking and the option to reset the buffer
func (*Evexi) IntervalExport ¶
IntervalExport must recieve a positive interval Returns a cancellable goroutine that exports the buffer at the provided interval
Click to show internal directories.
Click to hide internal directories.