client

package
v0.0.0-...-fc91ca8 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 12 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 *url.URL, projectID string, httpClient *dphttp.Client) *Client

func (*Client) DeleteDeviceApplicationStatus

func (c *Client) DeleteDeviceApplicationStatus(ctx *dpcontext.Context, applicationID string) error

func (*Client) DeleteDeviceServiceState

func (c *Client) DeleteDeviceServiceState(ctx *dpcontext.Context, applicationID, service string) error

func (*Client) DeleteDeviceServiceStatus

func (c *Client) DeleteDeviceServiceStatus(ctx *dpcontext.Context, applicationID, service string) error

func (*Client) GetBundleBytes

func (c *Client) GetBundleBytes(ctx *dpcontext.Context) ([]byte, error)

func (*Client) InitiateDeviceConnection

func (c *Client) InitiateDeviceConnection(ctx *dpcontext.Context) (net.Conn, error)

func (*Client) RegisterDevice

func (c *Client) RegisterDevice(ctx *dpcontext.Context, registrationToken string) (*models.RegisterDeviceResponse, error)

func (*Client) Revdial

func (c *Client) Revdial(ctx *dpcontext.Context, path string) (*dpwebsocket.Conn, *dphttp.Response, error)

func (*Client) SendDeviceMetrics

func (c *Client) SendDeviceMetrics(ctx *dpcontext.Context, req models.DatadogPostMetricsRequest) error

func (*Client) SendServiceMetrics

func (c *Client) SendServiceMetrics(ctx *dpcontext.Context, req models.IntermediateServiceMetricsRequest) error

func (*Client) SetAccessKey

func (c *Client) SetAccessKey(accessKey string)

func (*Client) SetDeviceApplicationStatus

func (c *Client) SetDeviceApplicationStatus(ctx *dpcontext.Context, applicationID string, req models.SetDeviceApplicationStatusRequest) error

func (*Client) SetDeviceID

func (c *Client) SetDeviceID(deviceID string)

func (*Client) SetDeviceInfo

func (c *Client) SetDeviceInfo(ctx *dpcontext.Context, req models.SetDeviceInfoRequest) error

func (*Client) SetDeviceServiceState

func (c *Client) SetDeviceServiceState(ctx *dpcontext.Context, applicationID, service string, req models.SetDeviceServiceStateRequest) error

func (*Client) SetDeviceServiceStatus

func (c *Client) SetDeviceServiceStatus(ctx *dpcontext.Context, applicationID, service string, req models.SetDeviceServiceStatusRequest) error

Jump to

Keyboard shortcuts

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