push

package
v0.0.0-...-cc72008 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePublisher

func CreatePublisher() pubsub.Publisher

CreatePublisher ...

func CreateSubscriber

func CreateSubscriber() pubsub.Subscriber

CreateSubscriber ...

func SendPush

func SendPush(body types.M, where types.M, auth *rest.Auth, onPushStatusSaved func(string)) error

SendPush 发送推送消息

Types

type Consumer

type Consumer struct {
	pubsub.EventEmitter
	// contains filtered or unexported fields
}

Consumer ...

func (*Consumer) On

func (c *Consumer) On(channel string, listener pubsub.HandlerType)

On ...

func (*Consumer) Subscribe

func (c *Consumer) Subscribe(channel string)

Subscribe ...

func (*Consumer) Unsubscribe

func (c *Consumer) Unsubscribe(channel string)

Unsubscribe ...

type Publisher

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

Publisher ...

func (*Publisher) Publish

func (p *Publisher) Publish(channel string, message string)

Publish ...

Jump to

Keyboard shortcuts

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