listener

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleError

func HandleError(err error, _ *consumer.Consumer)

func ImportTypesListenerFactory

func ImportTypesListenerFactory(control Controller) func(topic string, msg []byte, time time.Time) error

func UsersListenerFactory

func UsersListenerFactory(control Controller) func(topic string, msg []byte, time time.Time) error

Types

type Controller

type Controller interface {
	SetImportTypeInDB(device model.ImportType) error
	DeleteImportTypeFromDB(id string) error
	DeleteUser(id string) error
}

type UserCommandMsg

type UserCommandMsg struct {
	Command string `json:"command"`
	Id      string `json:"id"`
}

Jump to

Keyboard shortcuts

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