subscription

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cursor added in v1.1.0

type Cursor struct {
	Id        string
	Followers int64
}

type Data

type Data struct {

	// Condition represents the certain criteria to select the Subscription for the further routing.
	// It's immutable once the Subscription is created.
	Condition condition.Condition

	// Description is a human-readable subscription description.
	Description string

	// Enabled defines whether subscription is active and may be used to deliver a message.
	Enabled bool

	// Expires defines a deadline when subscription becomes disabled regardless the Enabled value.
	Expires time.Time

	Created time.Time

	Updated time.Time

	Public bool

	Followers int64
}

type Order added in v1.1.0

type Order int
const (
	OrderAsc Order = iota
	OrderDesc
)

func (Order) String added in v1.1.0

func (o Order) String() string

type Query added in v1.1.0

type Query struct {
	Limit   uint32
	Sort    Sort
	Order   Order
	Pattern string
	Public  bool // include public non-own?
}

type QueryByCondition added in v1.1.0

type QueryByCondition struct {
	CondId string
	Limit  uint32
}

type Sort added in v1.1.0

type Sort int
const (
	SortId Sort = iota
	SortFollowers
)

func (Sort) String added in v1.1.0

func (s Sort) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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