Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client interfaces with the Posthook API: api.posthook.io
func (*Client) Delete ¶
Delete a Hook. This will stop Posthook from making the request back to your application for this Hook.
type Config ¶
type Config func(c *Client)
Config lets users configure the postHook struct
func WithEndpoint ¶
WithEndpoint configures the API endpoint
func WithHTTPClient ¶
WithHTTPClient replaces the underlying http.DefaultClient
type Filters ¶
type Filters struct {
Limit *int `url:"limit,omitempty"`
SortBy *string `url:"sortBy,omitempty"`
SortOrder *string `url:"sortOrder,omitempty"`
PostAtBefore *time.Time `url:"postAtBefore,omitempty"`
PostAtAfter *time.Time `url:"postAtAfter,omitempty"`
CreatedBefore *time.Time `url:"createdBefore,omitempty"`
CreatedAfter *time.Time `url:"createdAfter,omitempty"`
}
Filters lets you filter a list query
Click to show internal directories.
Click to hide internal directories.