Documentation ¶
Index ¶
- func Run(ctx context.Context, optionValues ...Option)
- type Option
- func WithAwsRegion(awsRegion string) Option
- func WithDisableSSL(disableSSL bool) Option
- func WithEndpoint(endpoint string) Option
- func WithErrorListener(errListener util.ErrorListener) Option
- func WithHTTPClient(httpClient *http.Client) Option
- func WithS3ForcePathStyle(s3ForcePathStyle bool) Option
- func WithS3UrlPrefix(s3UrlPrefix string) Option
- func WithServer() Option
- func WithSocketNameSuffix(socketNameSuffix string) Option
- func WithTokener(value token.Accessor) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(o *options)
Option defines an option that can be set on the server
func WithAwsRegion ¶
WithAwsRegion specifies the AWS region
func WithDisableSSL ¶
WithDisableSSL sets whether SSL is used to access the cloud
func WithEndpoint ¶
WithEndpoint specifies the S3 endpoint
func WithErrorListener ¶
func WithErrorListener(errListener util.ErrorListener) Option
WithErrorListener reports errors to the specified error listener
func WithHTTPClient ¶
WithHTTPClient specifies the HTTP client to use
func WithS3ForcePathStyle ¶
WithS3ForcePathStyle sets whether path style needs to be forced
func WithS3UrlPrefix ¶
WithS3UrlPrefix specifies the S3 bucket and key prefix in the cloud E.g. s3://anki-device-logs-dev/victor
func WithServer ¶
func WithServer() Option
WithServer specifies that an IPC server should be started so other processes can use log collection
func WithSocketNameSuffix ¶
WithSocketNameSuffix specifies the (optional) suffix of the socket name
func WithTokener ¶
WithTokener specifies that the given token.Accessor should be used to obtain authorization credentials (used to retrieve USerID)