plugins

package
v0.0.0-...-ebb1a70 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(ctx context.Context, data []byte) []byte

func NewClipboardPlugin

func NewClipboardPlugin(ctx context.Context, ch chan<- GonnectPluginMessage) *clipboardPlugin

Create a new clipboard plugin instance and start the clipboard watching goroutine

func WithPlugins

func WithPlugins(ctx context.Context) (c context.Context, pluginCh <-chan GonnectPluginMessage)

Types

type GonnectPlugin

type GonnectPlugin interface {
	React(context.Context, []byte) any
}

type GonnectPluginMessage

type GonnectPluginMessage internal.ChanMsg

Jump to

Keyboard shortcuts

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