Documentation
¶
Index ¶
- func OpenWSClientConn(url string, config *tls.Config) (*websocket.Conn, error)
- type Client
- func (c *Client) CallView(fid string, in []byte) (interface{}, error)
- func (c *Client) CallViewWithContext(ctx context.Context, fid string, in []byte) (interface{}, error)
- func (c *Client) Initiate(fid string, in []byte) (string, error)
- func (c *Client) Metrics() (map[string]*dto.MetricFamily, error)
- func (c *Client) StreamCallView(fid string, in []byte) (*WSStream, error)
- type Config
- type Input
- type Output
- type WSStream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) CallViewWithContext ¶
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
Click to show internal directories.
Click to hide internal directories.