Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OperatingSystem ¶
type Transformer ¶
type Transformer struct {
// contains filtered or unexported fields
}
Default Transformer implementation (stateless, immutable). This is currently the only implementation and supports all transformation types available in a GEIST spec. Future custom transformer implementations are easily added through this mechanism.
func NewTransformer ¶
func NewTransformer(spec *model.Spec) *Transformer
func (*Transformer) Transform ¶
func (t *Transformer) Transform( ctx context.Context, event []byte, retryable *bool) ([]*model.Transformed, error)
Transform in current implementation cannot have an error, but keep for future transformations.
type UserAgent ¶
type UserAgent struct {
Platform string `json:"platform"`
OperatingSystem OperatingSystem `json:"operatingSystem"`
Localization string `json:"localization"`
Browser Browser `json:"browser"`
Bot bool `json:"bot"`
Mobile bool `json:"mobile"`
}