Documentation ¶
Index ¶
- type Client
- func (c *Client) Add(ctx context.Context, userContext am.UserContext, events []*am.Event) error
- func (c *Client) Get(ctx context.Context, userContext am.UserContext, filter *am.EventFilter) ([]*am.Event, error)
- func (c *Client) GetSettings(ctx context.Context, userContext am.UserContext) (*am.UserEventSettings, error)
- func (c *Client) GetWebhookEvents(ctx context.Context, userContext am.UserContext) ([]*am.WebhookEvent, error)
- func (c *Client) GetWebhooks(ctx context.Context, userContext am.UserContext) ([]*am.WebhookEventSettings, error)
- func (c *Client) Init(config []byte) error
- func (c *Client) MarkRead(ctx context.Context, userContext am.UserContext, notificationIDs []int64) error
- func (c *Client) NotifyComplete(ctx context.Context, userContext am.UserContext, startTime int64, groupID int) error
- func (c *Client) SetTimeout(timeout time.Duration)
- func (c *Client) UpdateSettings(ctx context.Context, userContext am.UserContext, ...) error
- func (c *Client) UpdateWebhooks(ctx context.Context, userContext am.UserContext, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Get ¶
func (c *Client) Get(ctx context.Context, userContext am.UserContext, filter *am.EventFilter) ([]*am.Event, error)
func (*Client) GetSettings ¶
func (c *Client) GetSettings(ctx context.Context, userContext am.UserContext) (*am.UserEventSettings, error)
GetSettings user settings
func (*Client) GetWebhookEvents ¶
func (c *Client) GetWebhookEvents(ctx context.Context, userContext am.UserContext) ([]*am.WebhookEvent, error)
func (*Client) GetWebhooks ¶
func (c *Client) GetWebhooks(ctx context.Context, userContext am.UserContext) ([]*am.WebhookEventSettings, error)
func (*Client) MarkRead ¶
func (c *Client) MarkRead(ctx context.Context, userContext am.UserContext, notificationIDs []int64) error
MarkRead events
func (*Client) NotifyComplete ¶
func (c *Client) NotifyComplete(ctx context.Context, userContext am.UserContext, startTime int64, groupID int) error
NotifyComplete that a scan group has completed
func (*Client) SetTimeout ¶
func (*Client) UpdateSettings ¶
func (c *Client) UpdateSettings(ctx context.Context, userContext am.UserContext, settings *am.UserEventSettings) error
UpdateSettings for user
func (*Client) UpdateWebhooks ¶
func (c *Client) UpdateWebhooks(ctx context.Context, userContext am.UserContext, webhook *am.WebhookEventSettings) error
UpdateWebhooks for user's org
Click to show internal directories.
Click to hide internal directories.