Documentation ¶
Index ¶
Constants ¶
View Source
const ( // subscription mode enum. SubscriptionModeRealtime = "REALTIME" SubscriptionModePeriod = "PERIOD" SubscriptionModeChanged = "ONCHANGED" SubscriptionModeUndefine = "UNDEFINE" // subscription required fileds. SubscriptionFieldMode = "mode" SubscriptionFieldFilter = "filter" SubscriptionFieldTopic = "topic" SubscriptionFieldPubsubName = "pubsub_name" )
Variables ¶
View Source
var (
ErrSubscriptionInvalid = errors.New("params invalid")
)
Functions ¶
func NewSubscription ¶
func NewSubscription( ctx context.Context, in *dao.Entity, dispatcher dispatch.Dispatcher, rs types.ResourceManager) (stateM state.Machiner, err error)
NewSubscription returns a subscription.
Types ¶
Click to show internal directories.
Click to hide internal directories.