mirror of
https://github.com/buger/goreplay.git
synced 2026-10-19 16:15:42 +00:00
30 lines
658 B
Go
30 lines
658 B
Go
//go:build !pro
|
|
|
|
package goreplay
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
)
|
|
|
|
// S3Output output plugin
|
|
type S3Output struct{}
|
|
|
|
// NewS3Output constructor for FileOutput, accepts path
|
|
func NewS3Output(pathTemplate string, config *FileOutputConfig) *S3Output {
|
|
fmt.Println("S3 output is only available in the pro version")
|
|
return &S3Output{}
|
|
}
|
|
|
|
func (o *S3Output) PluginWrite(msg *Message) (n int, err error) {
|
|
return 0, errors.New("S3 output is only available in the pro version")
|
|
}
|
|
|
|
func (o *S3Output) String() string {
|
|
return "S3 output (pro version only)"
|
|
}
|
|
|
|
func (o *S3Output) Close() error {
|
|
return errors.New("S3 output is only available in the pro version")
|
|
}
|