Documentation ¶
Index ¶
- Constants
- Variables
- func InitHttpTransportWithDialer() *http.Client
- type Auth
- type Config
- type Filter
- func (f *Filter) Config() interface{}
- func (f *Filter) EventErrorCount() int
- func (f *Filter) EventErrorVelocity() int
- func (f *Filter) EventFilterCount() int
- func (f *Filter) EventFilterVelocity() int
- func (f *Filter) EventSuccessCount() int
- func (f *Filter) EventSuccessVelocity() int
- func (f *Filter) EventTs() int64
- func (f *Filter) Filter(evt event.Event) []event.Event
- func (f *Filter) Hash() string
- func (f *Filter) Name() string
- func (f *Filter) Plugin() string
- func (f *Filter) Tenant() tenant.Id
- type SatToken
Constants ¶
View Source
const ( HTTP_AUTH_TYPE_BASIC = "basic" HTTP_AUTH_TYPE_SAT = "sat" HTTP_AUTH_TYPE_OAUTH = "oauth" HTTP_AUTH_TYPE_OAUTH2 = "oauth2" SAT_URL = "https://sat-prod.codebig2.net/oauth/token" )
Variables ¶
Functions ¶
func InitHttpTransportWithDialer ¶ added in v1.1.0
Types ¶
type Auth ¶
type Auth struct { Type string `json:"type,omitempty"` Username string `json:"username,omitempty"` // basic auth Password string `json:"password,omitempty"` // basic auth ClientID string `json:"clientId,omitempty"` // oauth2 ClientSecret string `json:"clientSecret,omitempty"` // oauth2 TokenURL string `json:"tokenUrl,omitempty"` // oauth2 Scopes []string `json:"scopes,omitempty"` // oauth2 }
type Config ¶
type Config struct { ToPath string `json:"toPath,omitempty"` FromPath string `json:"fromPath,omitempty"` Url string `json:"url,omitempty"` UrlPath string `json:"urlPath,omitempty"` Method string `json:"method,omitempty"` Body string `json:"body,omitempty"` Headers map[string]string `json:"headers,omitempty"` EmptyPathValueRequired *bool `json:"emptyPathValueRequired,omitempty"` Auth *Auth `json:"auth,omitempty"` }
Config can be passed into NewFilter() in order to configure the behavior of the sender.
func (Config) WithDefaults ¶
type Filter ¶
func (*Filter) EventErrorCount ¶ added in v1.1.2
func (*Filter) EventErrorVelocity ¶ added in v1.1.2
func (*Filter) EventFilterCount ¶ added in v1.1.2
func (*Filter) EventFilterVelocity ¶ added in v1.1.2
func (*Filter) EventSuccessCount ¶ added in v1.1.2
func (*Filter) EventSuccessVelocity ¶ added in v1.1.2
Click to show internal directories.
Click to hide internal directories.