Documentation
¶
Index ¶
- type Client
- func (c *Client) List(ctx context.Context) ([]types.Resource, error)
- func (c *Client) ListTemplates(ctx context.Context) ([]types.ResourceTemplate, error)
- func (c *Client) OnResourceListChanged(callback func())
- func (c *Client) OnResourceUpdated(callback func(uri string))
- func (c *Client) Read(ctx context.Context, uri string) ([]types.ResourceContent, error)
- func (c *Client) Subscribe(ctx context.Context, uri string) error
- func (c *Client) Unsubscribe(ctx context.Context, uri string) error
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 provides client-side resource functionality
func (*Client) ListTemplates ¶
ListTemplates requests the list of available resource templates
func (*Client) OnResourceListChanged ¶
func (c *Client) OnResourceListChanged(callback func())
OnResourceListChanged registers a callback for resource list change notifications
func (*Client) OnResourceUpdated ¶
OnResourceUpdated registers a callback for resource update notifications
Click to show internal directories.
Click to hide internal directories.