event

package
v0.0.0-...-72c2bb7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 9 Imported by: 1

Documentation

Index

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 New

func New() *Client

func (*Client) Add

func (c *Client) Add(ctx context.Context, userContext am.UserContext, events []*am.Event) error

Add events (system only?)

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) Init

func (c *Client) Init(config []byte) 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 (c *Client) SetTimeout(timeout time.Duration)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL