controller

package
v0.0.0-...-7189762 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve() error

Types

type Controller

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

Controller is a structure for generating SideKick whispers

func NewController

func NewController(logger *ldk.Logger) (*Controller, error)

NewController returns a pointer to a controller

func (*Controller) OnEvent

func (c *Controller) OnEvent(event ldk.Event) error

OnEvent is called by the host to send an event to the plugin

func (*Controller) Start

func (c *Controller) Start(host ldk.ControllerHost) error

Start is called by the host when the plugin is started to provide access to the host process

func (*Controller) Stop

func (c *Controller) Stop() error

Stop is called by the host when the plugin is stopped

Jump to

Keyboard shortcuts

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