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)
| 100 | } |
| 101 | |
| 102 | type 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. |
| 111 | func AttemptToStoreSubscriptionTrigger(t backend.SubscriptionTriggerWritable) backend.SubscriptionTriggerResponseValue { |
| 112 | ret := backend.SubscriptionTriggerResponseValue{} |
| 113 | err := ret.FromSubscriptionTriggerWritable(t) |
nothing calls this directly
no outgoing calls
no test coverage detected