notifications

package
v1.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notification

type Notification struct {
	Type      string      `json:"type"`
	Id        string      `json:"id"`
	Timestamp uint64      `json:"timestamp"`
	Actor     *users.User `json:"actor"`
	Content   struct {
		Cast *casts.Cast `json:"cast"`
	} `json:"content"`
	Next struct {
		Cursor string `json:"cursor"`
	} `json:"next"`
}

type NotificationService

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

func NewNotificationService

func NewNotificationService(account *account.AccountService) *NotificationService

func (*NotificationService) GetNotifications

func (n *NotificationService) GetNotifications(limit int, cursor string) ([]Notification, string, error)

Jump to

Keyboard shortcuts

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