Documentation ¶
Index ¶
- func Error(name string, err error) error
- type AWSConfig
- type AWSOption
- func AWSWithEndpoint(value string) AWSOption
- func AWSWithKeyID(value string) AWSOption
- func AWSWithProfile(value string) AWSOption
- func AWSWithRegion(value string) AWSOption
- func AWSWithResourceARN(value string) AWSOption
- func AWSWithResourceEndpoint(value string) AWSOption
- func AWSWithResourceName(value string) AWSOption
- func AWSWithSecret(value string) AWSOption
- type ErrForwarder
- type Forwarder
- func NewDummy() Forwarder
- func NewHTTP(endpoint string, opts ...HTTPOption) Forwarder
- func NewKinesis(ctx context.Context, streamName string, opts ...AWSOption) (Forwarder, error)
- func NewSNS(ctx context.Context, topicARN string, opts ...AWSOption) (Forwarder, error)
- func NewSQS(ctx context.Context, name string, opts ...AWSOption) (Forwarder, error)
- type HTTPConfig
- type HTTPOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AWSOption ¶
type AWSOption func(*AWSConfig)
func AWSWithEndpoint ¶
func AWSWithKeyID ¶
func AWSWithProfile ¶
func AWSWithRegion ¶
func AWSWithResourceARN ¶
func AWSWithResourceEndpoint ¶
func AWSWithResourceName ¶
func AWSWithSecret ¶
type ErrForwarder ¶
type ErrForwarder struct {
// contains filtered or unexported fields
}
ErrForwarder is the error type to be returned by forwarders
func (*ErrForwarder) Error ¶
func (e *ErrForwarder) Error() string
Error returns the stringified error
func (*ErrForwarder) Unwrap ¶
func (e *ErrForwarder) Unwrap() error
type Forwarder ¶
Forwarder defines a forwarder
func NewHTTP ¶
func NewHTTP(endpoint string, opts ...HTTPOption) Forwarder
NewHTTP creates a new HTTP forwarder
func NewKinesis ¶
NewKinesis creates a new Kinesis Datastream forwarder
type HTTPConfig ¶
type HTTPConfig struct {
// contains filtered or unexported fields
}
HTTPConfig holds the options to configure the http forwarder
type HTTPOption ¶
type HTTPOption func(*HTTPConfig)
HTTPOption config option
func HTTPWithExpectedStatus ¶
func HTTPWithExpectedStatus(value int) HTTPOption
HTTPWithExpectedStatus defines the expected response http status as valid
func HTTPWithHeaderAuth ¶
func HTTPWithHeaderAuth(value string) HTTPOption
HTTPWithHeaderAuth Adds a header auth for HTTP requests
func HTTPWithMethod ¶
func HTTPWithMethod(value string) HTTPOption
HTTPWithMethod defines the method to be userd GET, POST ...
func HTTPWithTimeOut ¶
func HTTPWithTimeOut(value time.Duration) HTTPOption
HTTPWithTimeOut defines the timeout for HTTP connections
Click to show internal directories.
Click to hide internal directories.