client

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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(notifierUrl string) *Client

func (*Client) CreateBroker

func (c *Client) CreateBroker(token *string, broker model.Broker) (result model.Broker, err error)

func (*Client) CreateNotification

func (c *Client) CreateNotification(token *string, notification model.Notification, ignoreDuplicatesWithinSeconds *int64) (result model.Notification, err error)

func (*Client) DeleteFcmToken

func (c *Client) DeleteFcmToken(token *string, fcmToken string) (err error)

func (*Client) DeleteMultipleBrokers

func (c *Client) DeleteMultipleBrokers(token *string, ids []string) (err error)

func (*Client) DeleteMultipleNotifications

func (c *Client) DeleteMultipleNotifications(token *string, ids []string) (err error)

func (*Client) DeletePlatformBroker

func (c *Client) DeletePlatformBroker(token *string) (err error)

func (*Client) GetPlatformBroker

func (c *Client) GetPlatformBroker(token *string) (platformBroker model.PlatformBroker, err error)

func (*Client) GetSettings

func (c *Client) GetSettings(token *string) (settings model.Settings, err error)

func (*Client) ListBrokers

func (c *Client) ListBrokers(token *string, options persistence.ListOptions) (result model.BrokerList, err error)

func (*Client) ListNotifications

func (c *Client) ListNotifications(token *string, options persistence.ListOptions, channel model.Channel) (result model.NotificationList, err error)

func (*Client) PutFcmToken

func (c *Client) PutFcmToken(token *string, fcmToken string) (err error)

func (*Client) ReadBroker

func (c *Client) ReadBroker(token *string, id string) (result model.Broker, err error)

func (*Client) ReadNotification

func (c *Client) ReadNotification(token *string, id string) (result model.Notification, err error)

func (*Client) SetBroker

func (c *Client) SetBroker(token *string, broker model.Broker) (result model.Broker, err error)

func (*Client) SetNotification

func (c *Client) SetNotification(token *string, notification model.Notification) (result model.Notification, err error)

func (*Client) SetPlatformBroker

func (c *Client) SetPlatformBroker(token *string, platformBroker model.PlatformBroker) (result model.PlatformBroker, err error)

func (*Client) SetSettings

func (c *Client) SetSettings(token *string, settings model.Settings) (result model.Settings, err error)

Jump to

Keyboard shortcuts

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