Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterMessage ¶
type FilterMessage struct {
TopicId []uuid.UUID
Status []MessageStatus
SortBy string
SortDirection string
Offset int
Limit int
}
func (FilterMessage) Filter ¶
func (f FilterMessage) Filter(operator string) (string, map[string]interface{})
func (FilterMessage) Page ¶
func (f FilterMessage) Page() string
func (FilterMessage) Sort ¶
func (f FilterMessage) Sort() string
type FilterSubscriber ¶
type FilterTopic ¶
type MessageStatus ¶
type MessageStatus string
const ( MessageStatusWaiting MessageStatus = "waiting" MessageStatusDelivered MessageStatus = "delivered" )
type Subscriber ¶
type Subscriber struct {
Id uuid.UUID `db:"id"`
TopicId uuid.UUID `db:"topic_id"`
TopicName string `db:"topic_name"`
Name string `db:"name"`
Option json.RawMessage `db:"option"`
CreatedAt string `db:"created_at"`
DeletedAt null.String `db:"deleted_at"`
}
func (Subscriber) Bucket ¶
func (s Subscriber) Bucket() string
type SubscriberOpt ¶
type Subscribers ¶
type Subscribers []Subscriber
func (Subscribers) MapByTopic ¶
func (subscribers Subscribers) MapByTopic() map[uuid.UUID]Subscribers
Click to show internal directories.
Click to hide internal directories.