centrifugo

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Centrifugo

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

func (*Centrifugo) Publish

func (c *Centrifugo) Publish(ctx context.Context, channel string, msg interface{}) error

func (*Centrifugo) SendToAdminCentrifugo

func (c *Centrifugo) SendToAdminCentrifugo(channel string, order *billingpb.Order, message string) error

func (*Centrifugo) SendToMerchantTestingCentrifugo

func (c *Centrifugo) SendToMerchantTestingCentrifugo(
	channel string,
	order *billingpb.Order,
	testCase string,
	request *common.Request,
	response *http.Response,
) error

func (*Centrifugo) SendToUserCentrifugo

func (c *Centrifugo) SendToUserCentrifugo(channel string, order *billingpb.Order) error

type CentrifugoInterface

type CentrifugoInterface interface {
	Publish(context.Context, string, interface{}) error
	SendToUserCentrifugo(channel string, order *billingpb.Order) error
	SendToAdminCentrifugo(channel string, order *billingpb.Order, message string) error
	SendToMerchantTestingCentrifugo(channel string, order *billingpb.Order, testCase string, request *common.Request, response *http.Response) error
}

func NewCentrifugo

func NewCentrifugo(cfg *config.Centrifugo, httpClient *http.Client) CentrifugoInterface

Jump to

Keyboard shortcuts

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