NewEventClient returns an EventClient that sends requests for host through httpClient.
(httpClient *http.Client, host string)
| 75 | |
| 76 | // NewEventClient returns an EventClient that sends requests for host through httpClient. |
| 77 | func NewEventClient(httpClient *http.Client, host string) EventClient { |
| 78 | return &eventClient{api: api.NewClientFromHTTP(httpClient), host: host} |
| 79 | } |
| 80 | |
| 81 | func (c *eventClient) CreateSubscription(ctx context.Context, resourceURL string, eventTypes []string) (*Subscription, bool, error) { |
| 82 | if !SupportedHost(c.host) { |