notify

package
v0.6.0-beta Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 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 Notify

type Notify struct {
	// contains filtered or unexported fields
}

func (*Notify) CommitSyncedEvent

func (n *Notify) CommitSyncedEvent(ctx context.Context, deviceID string, sequence int64) error

func (*Notify) GetLatestSequence

func (n *Notify) GetLatestSequence(ctx context.Context) (int64, error)

func (*Notify) ListNotifications

func (n *Notify) ListNotifications(ctx context.Context) ([]types.Notification, error)

func (*Notify) ListUnSyncedEvent

func (n *Notify) ListUnSyncedEvent(ctx context.Context, sequence int64) ([]types.Event, error)

func (*Notify) MarkRead

func (n *Notify) MarkRead(ctx context.Context, nid string) error

func (*Notify) RecordInfo

func (n *Notify) RecordInfo(ctx context.Context, title, message, source string) error

func (*Notify) RecordWarn

func (n *Notify) RecordWarn(ctx context.Context, title, message, source string) error

Jump to

Keyboard shortcuts

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