actions

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIClient

func NewAPIClient(ctx context.Context, endpoint, pubKey, authToken string, isPlaintext bool, isInsecure bool) (api.ActionAPIClient, *grpc.ClientConn, error)

NewAPIClient creates a new gRPC ActionAPIClient

Types

type Connector

type Connector struct {
	Address     string
	APIKey      string
	LnAPI       lightning.NewAPICall
	Plugins     map[string]entities.Plugin
	IsPlaintext bool
	IsInsecure  bool
	IsDryRun    bool
	// contains filtered or unexported fields
}

Connector handles gRPC connection and communication with the server and route message to/from the plugins

func (*Connector) ForwardJobMessages

func (c *Connector) ForwardJobMessages(msg entities.PluginMessage) error

ForwardJobMessages is a callback which is called by the plugins to forward messages to the server

func (*Connector) Run

func (c *Connector) Run(ctx context.Context, resetBackOffFn func()) error

Run connects to the server and start communication. It is blocking and should be run in a goroutine

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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