plugin

package
v0.0.1-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnInit

func OnInit(plugin *plugin.Plugin[PluginState], config map[string]any) map[string]any

Types

type ClnAppRune

type ClnAppRune[T PluginState] struct{}

func (*ClnAppRune[T]) Call

func (instance *ClnAppRune[T]) Call(plugin *plugin.Plugin[PluginState], request map[string]any) (map[string]any, error)

type LNDashboardRune

type LNDashboardRune[T PluginState] struct{}

func (*LNDashboardRune[T]) Call

func (instance *LNDashboardRune[T]) Call(plugin *plugin.Plugin[PluginState], request map[string]any) (map[string]any, error)

type Login

type Login struct {
	Password string `json:"password" binding:"required"`
}

type OnShutdown

type OnShutdown[T PluginState] struct{}

func (*OnShutdown[T]) Call

func (instance *OnShutdown[T]) Call(plugin *plugin.Plugin[PluginState], request map[string]any)

type PluginState

type PluginState struct {
	Server   *http.Server
	Password string
	Client   client.Client
}

type SetPassword

type SetPassword[T PluginState] struct{}

func (*SetPassword[T]) Call

func (instance *SetPassword[T]) Call(plugin *plugin.Plugin[PluginState], request map[string]any) (map[string]any, error)

type StartServer

type StartServer[T PluginState] struct{}

func (*StartServer[T]) Call

func (instance *StartServer[T]) Call(plugin *plugin.Plugin[PluginState], request map[string]any) (map[string]any, error)

Jump to

Keyboard shortcuts

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