svc

package
v0.0.0-...-19e654c Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCPServiceProvider

type GCPServiceProvider struct {
	GCPClient *pubsub.Client
}

func NewGCPServiceProvider

func NewGCPServiceProvider(id, region string) *GCPServiceProvider

func (*GCPServiceProvider) PublishEvent

func (p *GCPServiceProvider) PublishEvent(subject, region string, eventData interface{})

func (*GCPServiceProvider) SubscribeEvent

func (p *GCPServiceProvider) SubscribeEvent(subject, region string, onEventHandler func(interface{}))