sdk

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 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 Config

type Config struct {
	Path string `mapstructure:"PM_ADDR"`
}

type Message

type Message struct {
	// ReceivedFrom string
	Data []byte
}

type PManager

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

func NewPManager

func NewPManager(ctx context.Context) (*PManager, error)

func (*PManager) Subscribe

func (pm *PManager) Subscribe() (*Subscription, error)

func (*PManager) WriteMessage

func (pm *PManager) WriteMessage(msgData []byte)

type Subscription

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

func (*Subscription) Cancel

func (s *Subscription) Cancel()

func (*Subscription) ReadMessage

func (s *Subscription) ReadMessage(ctx context.Context) (*Message, error)

Jump to

Keyboard shortcuts

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