fcslack

package
v0.0.0-...-32d11fa Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manage

func Manage(c *Service) node.Node

Types

type ErrListener

type ErrListener func(err error, r *subscription)

ErrListener is for catching errors that happen in the background trying to send messages to slack

type Service

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

Service orchestrates sending notifications defined in YANG to slack

func NewService

func NewService(dev device.Device) *Service

NewService is constructor. Device can be local or remote device

func (*Service) Close

func (s *Service) Close()

func (*Service) OnError

func (s *Service) OnError(l ErrListener) nodeutil.Subscription

OnError is for errors that happen in the background trying to send messages to slack

type Sink

type Sink func(msg) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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