Documentation ¶
Index ¶
- type Client
- func (c *Client) CallView(fid string, in []byte) (interface{}, error)
- func (c *Client) Initiate(fid string, in []byte) (string, error)
- func (c *Client) IsTxFinal(txid string, opts ...api.ServiceOption) error
- func (c *Client) ServerVersion() (string, error)
- func (c *Client) StreamCallView(fid string, in []byte) (*WSStream, error)
- func (c *Client) Track(cid string) string
- type Config
- type Input
- type Output
- type WSStream
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 (*Client) CallView ¶
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) ServerVersion ¶ added in v0.2.0
func (*Client) StreamCallView ¶ added in v0.3.0
type Config ¶
type Config struct { // Host to connect to Host string // CACertRaw is the certificate authority's certificates CACertRaw []byte // CACertPath is the Certificate Authority Cert Path CACertPath string // TLSCertPath is the TLS client certificate path TLSCertPath string // TLSKeyPath is the TLS client key path TLSKeyPath string }
Config models the configuration for the web client
type WSStream ¶ added in v0.3.0
type WSStream struct {
// contains filtered or unexported fields
}
func NewWSStream ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.