client

package
v1.20.2-dexcom-api-g5m... Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2017 License: BSD-3-Clause Imports: 10 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	data.DataSourceAccessor
	data.DataSetAccessor

	CreateDataSetsData(ctx context.Context, datasetID string, datumArray []data.Datum) error

	DestroyDataForUserByID(ctx context.Context, userID string) error
}

type ClientImpl

type ClientImpl struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *platform.Config) (*ClientImpl, error)

func (*ClientImpl) CreateDataSetsData

func (c *ClientImpl) CreateDataSetsData(ctx context.Context, dataSetID string, datumArray []data.Datum) error

func (*ClientImpl) CreateUserDataSet

func (c *ClientImpl) CreateUserDataSet(ctx context.Context, userID string, create *data.DataSetCreate) (*data.DataSet, error)

func (*ClientImpl) CreateUserDataSource

func (c *ClientImpl) CreateUserDataSource(ctx context.Context, userID string, create *data.DataSourceCreate) (*data.DataSource, error)

func (*ClientImpl) DeleteDataSet

func (c *ClientImpl) DeleteDataSet(ctx context.Context, id string) error

func (*ClientImpl) DeleteDataSource

func (c *ClientImpl) DeleteDataSource(ctx context.Context, id string) error

func (*ClientImpl) DestroyDataForUserByID

func (c *ClientImpl) DestroyDataForUserByID(ctx context.Context, userID string) error

func (*ClientImpl) GetDataSet

func (c *ClientImpl) GetDataSet(ctx context.Context, id string) (*data.DataSet, error)

func (*ClientImpl) GetDataSource

func (c *ClientImpl) GetDataSource(ctx context.Context, id string) (*data.DataSource, error)

func (*ClientImpl) ListUserDataSources

func (c *ClientImpl) ListUserDataSources(ctx context.Context, userID string, filter *data.DataSourceFilter, pagination *page.Pagination) (data.DataSources, error)

func (*ClientImpl) UpdateDataSet

func (c *ClientImpl) UpdateDataSet(ctx context.Context, id string, update *data.DataSetUpdate) (*data.DataSet, error)

func (*ClientImpl) UpdateDataSource

func (c *ClientImpl) UpdateDataSource(ctx context.Context, id string, update *data.DataSourceUpdate) (*data.DataSource, error)

Jump to

Keyboard shortcuts

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