client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(url string) *Client

func (*Client) CreateAsset

func (c *Client) CreateAsset(asset et.Asset, token uuid.UUID) error

func (*Client) CreateSession

func (c *Client) CreateSession(config *config.Config) (uuid.UUID, error)

Create a session by sending the config elements as graphql named fields TODO: Not Implemented. The transfromations use "->" in the config YAML, but that is not a valid field name in GraphQL

func (*Client) Query

func (c *Client) Query(query string) (string, error)

func (*Client) SessionStats

func (c *Client) SessionStats(token uuid.UUID) (*et.SessionStats, error)

func (*Client) Subscribe

func (c *Client) Subscribe(token uuid.UUID) (<-chan string, error)

Creates subscription to receove a stream of log messages from the sever

func (*Client) TerminateSession

func (c *Client) TerminateSession(token uuid.UUID)

type Handler

type Handler func(message string)

Jump to

Keyboard shortcuts

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