web

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 12 Imported by: 1

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
}

Client models a client for an FSC node

func NewClient

func NewClient(config *Config) (*Client, error)

NewClient returns a new web client

func (*Client) CallView

func (c *Client) CallView(fid string, in []byte) (interface{}, error)

CallView takes in input a view factory identifier, fid, and an input, in, and invokes the factory f bound to fid on input in. The view returned by the factory is invoked on a freshly created context. This call is blocking until the result is produced or an error is returned.

func (*Client) Initiate

func (c *Client) Initiate(fid string, in []byte) (string, error)

func (*Client) IsTxFinal

func (c *Client) IsTxFinal(txid string, opts ...api.ServiceOption) error

func (*Client) Track

func (c *Client) Track(cid string) string

type Config

type Config struct {
	// URL to connect to
	URL string
	// CACert is the Certificate Authority Cert Path
	CACert string
	// TLSCert is the TLS client certificate path
	TLSCert string
	// TLSKey is the TLS client key path
	TLSKey string
}

Config models the configuration for the web client

Jump to

Keyboard shortcuts

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