mirror of
https://github.com/syumai/workers.git
synced 2025-03-11 01:39:11 +00:00
19 lines
326 B
Go
19 lines
326 B
Go
package incoming
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/syumai/workers/internal/cfcontext"
|
|
)
|
|
|
|
type Properties struct {
|
|
AsOrganization string
|
|
}
|
|
|
|
func NewProperties(ctx context.Context) *Properties {
|
|
obj := cfcontext.MustExtractIncomingProperty(ctx)
|
|
return &Properties{
|
|
AsOrganization: obj.Get("asOrganization").String(),
|
|
}
|
|
}
|