plugin

package
v0.0.0-...-dd1253a Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 10 more Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Nodegraph

func Nodegraph(link string, queryPid Pid) (resp backend.DataResponse)

Nodegraph produces the process connections node graph.

Types

type Instance

type Instance struct {
	Health struct {
		Checks int `json:"checks"`
	} `json:"health"`
	Query struct {
		Requests int `json:"requests"`
		Queries  int `json:"count"`
	} `json:"query"`
	Stream struct {
		Streams       int `json:"count"`
		Messages      int `json:"messages"`
		Subscriptions int `json:"subscriptions"`
		Published     int `json:"published"`
		Errors        int `json:"errors"`
	} `json:"stream"`
	// contains filtered or unexported fields
}

Instance of the datasource.

func (*Instance) CallResource

CallResource of data source.

func (*Instance) CheckHealth

func (instance *Instance) CheckHealth(_ context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)

CheckHealth run when "save and test" of data source run.

func (*Instance) Dispose

func (instance *Instance) Dispose()

Dispose run when instance cleaned up.

func (*Instance) PublishStream

PublishStream sends client message to the stream.

func (*Instance) QueryData

func (instance *Instance) QueryData(_ context.Context, req *backend.QueryDataRequest) (resp *backend.QueryDataResponse, err error)

QueryData handler for data source.

func (*Instance) RunStream

func (dsi *Instance) RunStream(ctx context.Context, req *backend.RunStreamRequest, sender *backend.StreamSender) error

RunStream initiates data source's stream to channel.

func (*Instance) SubscribeStream

SubscribeStream connects client to stream.

type Pid

type Pid = process.Pid

Pid alias for Pid in process package.

Jump to

Keyboard shortcuts

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