srv

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddListener

func AddListener(listener ListenerFunc) (id int64)

AddListener .

func RemoveListener

func RemoveListener(id int64)

RemoveListener .

func Start

func Start(element *data.Element) (e error)

Start .

func Stop

func Stop()

Stop .

Types

type ListenerFunc

type ListenerFunc func(*ListenerStatus)

ListenerFunc .

type ListenerStatus

type ListenerStatus struct {
	Run          bool   `json:"run,omitempty"`
	ID           uint64 `json:"id,omitempty"`
	Subscription uint64 `json:"subscription,omitempty"`
	Name         string `json:"name,omitempty"`
}

ListenerStatus .

Jump to

Keyboard shortcuts

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