NewEventClient returns an EventClient that sends requests for host through httpClient.
(httpClient *http.Client, host string)
| 64 | |
| 65 | // NewEventClient returns an EventClient that sends requests for host through httpClient. |
| 66 | func NewEventClient(httpClient *http.Client, host string) EventClient { |
| 67 | return &eventClient{api: api.NewClientFromHTTP(httpClient), host: host} |
| 68 | } |
| 69 | |
| 70 | func (c *eventClient) CreateSubscription(ctx context.Context, resourceURL string, eventTypes []string) (*Subscription, bool, error) { |
| 71 | if !SupportedHost(c.host) { |