Versions in this module Expand all Collapse all v0 v0.32.0 Mar 4, 2024 Changes in this version + type Client struct + func (c *Client) Debug(on bool) + func (c *Client) GetWebhookEndpoint() string + func (c *Client) IsDebug() bool + func (c *Client) Logger() *zerolog.Logger + func (c *Client) Notify(ctx context.Context, modelType string, eventType EventType, model interface{}, ...) error + type ClientInterface interface + Debug func(on bool) + GetWebhookEndpoint func() string + IsDebug func() bool + Logger func() *zerolog.Logger + Notify func(ctx context.Context, modelType string, eventType EventType, model interface{}, ...) error + func NewClient(opts ...ClientOps) (ClientInterface, error) + type ClientOps func(c *clientOptions) + func WithDebugging() ClientOps + func WithLogger(customLogger *zerolog.Logger) ClientOps + func WithNotifications(webhookEndpoint string) ClientOps + type EventType string + const EventTypeBroadcast + const EventTypeCreate + const EventTypeDelete + const EventTypeUpdate + type HTTPInterface interface + Do func(req *http.Request) (*http.Response, error)