{"modulePath":"github.com/maginga/example/activity/msgtransform","version":"v0.0.0-20220121080038-6f9e92ac2952","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package msgtransform\n\n## Functions\n\n```go\nfunc New(ctx activity.InitContext) (activity.Activity, error)\n```\nNew create a new kafka activity\n\n## Types\n\n```go\ntype Activity struct {\n\t// contains filtered or unexported fields\n}\n```\nActivity define activity object\n\n```go\nfunc (a *Activity) Eval(ctx activity.Context) (done bool, err error)\n```\nEval evaluate\n\n```go\nfunc (a *Activity) Metadata() *activity.Metadata\n```\nMetadata returns the activity's metadata\n\n```go\ntype Input struct {\n\tMessage    string `md:\"message\"` //\n\tAssetName  string `md:\"assetName\"`\n\tSensorName string `md:\"sensorName\"`\n\tSensorType string `md:\"sensorType\"`\n}\n```\nInput input\n\n```go\nfunc (i *Input) FromMap(values map[string]interface{}) error\n```\n\n```go\nfunc (i *Input) ToMap() map[string]interface{}\n```\n\n```go\ntype Output struct {\n\tMessage string `md:\"message\"` // Documents the partition that the message was placed on\n}\n```\n\n```go\nfunc (o *Output) FromMap(values map[string]interface{}) error\n```\n\n```go\nfunc (o *Output) ToMap() map[string]interface{}\n```\n\n```go\ntype Settings struct {\n\tOption string `md:\"option\"` //\n}\n```\nSettings setting struct\n\n","path":"github.com/maginga/example/activity/msgtransform","name":"msgtransform","synopsis":"","isRedistributable":true}
