Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PreflightClient ¶
type PreflightClient struct {
// contains filtered or unexported fields
}
PreflightClient can be used to talk to the Preflight backend.
func New ¶
func New(userID, userSecret, readingsEndpoint string) (*PreflightClient, error)
New creates a new client that uses OAuth2.
func NewWithBasicAuth ¶
func NewWithBasicAuth(authToken, readingsEndpoint string) (*PreflightClient, error)
NewWithBasicAuth creates a new client with basic authentication.
func (*PreflightClient) PostDataReadings ¶
func (c *PreflightClient) PostDataReadings(readings []*api.DataReading) error
PostDataReadings sends a slice of readings to Preflight.
Click to show internal directories.
Click to hide internal directories.