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
Click to show internal directories.
Click to hide internal directories.