submanager

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNUT17NotSupported = errors.New("NUT-17 Not supported")
)

Functions

This section is empty.

Types

type Subscription

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

func (*Subscription) Read

func (s *Subscription) Read() (nut17.WsNotification, error)

func (*Subscription) SubId

func (s *Subscription) SubId() string

type SubscriptionManager

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

func NewSubscriptionManager

func NewSubscriptionManager(mint string) (*SubscriptionManager, error)

func (*SubscriptionManager) Close

func (sm *SubscriptionManager) Close() error

func (*SubscriptionManager) CloseSubscripton

func (sm *SubscriptionManager) CloseSubscripton(subId string) error

func (*SubscriptionManager) IsSubscriptionKindSupported

func (sm *SubscriptionManager) IsSubscriptionKindSupported(kind nut17.SubscriptionKind) bool

func (*SubscriptionManager) Run

func (sm *SubscriptionManager) Run(errChan chan<- error)

Run should be called in a separate goroutine to run in the background. It will be stopped when Close is called on the SubscriptionManager

func (*SubscriptionManager) Subscribe

func (sm *SubscriptionManager) Subscribe(kind nut17.SubscriptionKind, filters []string) (*Subscription, error)

Jump to

Keyboard shortcuts

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