actions

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 15 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, isInsecure bool) (api.ActionAPIClient, *grpc.ClientConn, error)

NewAPIClient creates a new gRPC ActionAPIClient

Types

type Connector

type Connector struct {
	Address    string
	APIKey     string
	LnAPI      entities.NewAPICall
	Plugins    map[string]entities.Plugin
	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