MCPcopy Create free account
hub / github.com/GoogleChrome/webstatus.dev / AttemptToStoreSubscriptionTrigger

Function AttemptToStoreSubscriptionTrigger

lib/backendtypes/types.go:102–110  ·  view source on GitHub ↗

AttemptToStoreSubscriptionTrigger attempts to convert the given subscription trigger writable into a subscription trigger response value. If the conversion fails, it logs a warning and returns an empty SubscriptionTriggerResponseValue.

(t backend.SubscriptionTriggerWritable)

Source from the content-addressed store, hash-verified

100}
101
102type UserProfile struct {
103 UserID string
104 GitHubUserID int64
105 Emails []string
106}
107
108// AttemptToStoreSubscriptionTrigger attempts to convert the given subscription trigger
109// writable into a subscription trigger response value. If the conversion fails,
110// it logs a warning and returns an empty SubscriptionTriggerResponseValue.
111func AttemptToStoreSubscriptionTrigger(t backend.SubscriptionTriggerWritable) backend.SubscriptionTriggerResponseValue {
112 ret := backend.SubscriptionTriggerResponseValue{}
113 err := ret.FromSubscriptionTriggerWritable(t)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected