pubsub

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TheServiceables = []string{string(functionSpec.PathVariable)}
)

Functions

This section is empty.

Types

type Service

type Service struct {
	nodeIface.Service
	// contains filtered or unexported fields
}

func New

func New(srv nodeIface.Service) (*Service, error)

func (*Service) Cache

func (s *Service) Cache() iface.Cache

func (*Service) CheckTns

func (s *Service) CheckTns(_matcher commonIface.MatchDefinition) ([]commonIface.Serviceable, error)

func (*Service) Close

func (s *Service) Close() error

func (*Service) Context

func (s *Service) Context() context.Context

func (*Service) GetMessagingsMap

func (s *Service) GetMessagingsMap(matcher *common.MatchDefinition) (messagingsMap *common.MessagingMap, err error)

func (*Service) Lookup

func (s *Service) Lookup(matcher *common.MatchDefinition) ([]iface.Serviceable, error)

func (*Service) Publish

func (s *Service) Publish(ctx context.Context, projectId, appId, channel string, data []byte) error

func (*Service) Subscribe

func (s *Service) Subscribe(projectId, appId, path string) error

TODO smartops and cache the serviceable

func (*Service) WebSocketURL

func (s *Service) WebSocketURL(projectId, appId, channel string) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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