proxy

package
v0.0.0-...-db0aad3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgConverter

type MsgConverter interface {
	ToUnicast(interface{}) ([]*proto.PushToSingleReq, error)
	ToMulticast(interface{}) (*proto.CreateTaskReq, []*proto.PushToListReq, error)
	ToBroadcast(interface{}) (*proto.PushToAppReq, error)
}

type PushProxy

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

func NewPushProxy

func NewPushProxy(msgConv MsgConverter) (*PushProxy, error)

func (*PushProxy) Broadcast

func (p *PushProxy) Broadcast(ctx context.Context, msg interface{}) error

func (*PushProxy) Multicast

func (p *PushProxy) Multicast(ctx context.Context, msg interface{}) error

func (*PushProxy) Unicast

func (p *PushProxy) Unicast(ctx context.Context, msg interface{}) error

Jump to

Keyboard shortcuts

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