clients1

package
v0.0.0-...-01d728f Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconsDirectClientV1

type BeaconsDirectClientV1 struct {
	clients.DirectClient
	// contains filtered or unexported fields
}

func NewBeaconsDirectClientV1

func NewBeaconsDirectClientV1() *BeaconsDirectClientV1

func (*BeaconsDirectClientV1) CalculatePosition

func (c *BeaconsDirectClientV1) CalculatePosition(ctx context.Context,
	correlationId string, siteId string, udis []string) (*data1.GeoPointV1, error)

func (*BeaconsDirectClientV1) CreateBeacon

func (c *BeaconsDirectClientV1) CreateBeacon(ctx context.Context,
	correlationId string, beacon data1.BeaconV1) (*data1.BeaconV1, error)

func (*BeaconsDirectClientV1) DeleteBeaconById

func (c *BeaconsDirectClientV1) DeleteBeaconById(ctx context.Context,
	correlationId string, beaconId string) (*data1.BeaconV1, error)

func (*BeaconsDirectClientV1) GetBeaconById

func (c *BeaconsDirectClientV1) GetBeaconById(ctx context.Context,
	correlationId string, beaconId string) (*data1.BeaconV1, error)

func (*BeaconsDirectClientV1) GetBeaconByUdi

func (c *BeaconsDirectClientV1) GetBeaconByUdi(ctx context.Context,
	correlationId string, udi string) (*data1.BeaconV1, error)

func (*BeaconsDirectClientV1) GetBeacons

func (c *BeaconsDirectClientV1) GetBeacons(ctx context.Context,
	correlationId string, filter cdata.FilterParams, paging cdata.PagingParams) (*cdata.DataPage[data1.BeaconV1], error)

func (*BeaconsDirectClientV1) SetReferences

func (c *BeaconsDirectClientV1) SetReferences(ctx context.Context, references cref.IReferences)

func (*BeaconsDirectClientV1) UpdateBeacon

func (c *BeaconsDirectClientV1) UpdateBeacon(ctx context.Context,
	correlationId string, beacon data1.BeaconV1) (*data1.BeaconV1, error)

type BeaconsHttpClientV1

type BeaconsHttpClientV1 struct {
	*cclients.CommandableHttpClient
}

func NewBeaconsHttpClientV1

func NewBeaconsHttpClientV1() *BeaconsHttpClientV1

func (*BeaconsHttpClientV1) CalculatePosition

func (c *BeaconsHttpClientV1) CalculatePosition(ctx context.Context,
	correlationId string, siteId string, udis []string) (*data1.GeoPointV1, error)

func (*BeaconsHttpClientV1) CreateBeacon

func (c *BeaconsHttpClientV1) CreateBeacon(ctx context.Context,
	correlationId string, beacon data1.BeaconV1) (*data1.BeaconV1, error)

func (*BeaconsHttpClientV1) DeleteBeaconById

func (c *BeaconsHttpClientV1) DeleteBeaconById(ctx context.Context,
	correlationId string, beaconId string) (*data1.BeaconV1, error)

func (*BeaconsHttpClientV1) GetBeaconById

func (c *BeaconsHttpClientV1) GetBeaconById(ctx context.Context,
	correlationId string, beaconId string) (*data1.BeaconV1, error)

func (*BeaconsHttpClientV1) GetBeaconByUdi

func (c *BeaconsHttpClientV1) GetBeaconByUdi(ctx context.Context,
	correlationId string, udi string) (*data1.BeaconV1, error)

func (*BeaconsHttpClientV1) GetBeacons

func (c *BeaconsHttpClientV1) GetBeacons(ctx context.Context,
	correlationId string, filter cdata.FilterParams,
	paging cdata.PagingParams) (*cdata.DataPage[data1.BeaconV1], error)

func (*BeaconsHttpClientV1) UpdateBeacon

func (c *BeaconsHttpClientV1) UpdateBeacon(ctx context.Context,
	correlationId string, beacon data1.BeaconV1) (*data1.BeaconV1, error)

type BeaconsMemoryClientV1

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

func NewBeaconsMemoryClientV1

func NewBeaconsMemoryClientV1(items []data1.BeaconV1) *BeaconsMemoryClientV1

func (*BeaconsMemoryClientV1) CalculatePosition

func (c *BeaconsMemoryClientV1) CalculatePosition(ctx context.Context,
	correlationId string, siteId string, udis []string) (*data1.GeoPointV1, error)

func (*BeaconsMemoryClientV1) CreateBeacon

func (c *BeaconsMemoryClientV1) CreateBeacon(ctx context.Context,
	correlationId string, beacon data1.BeaconV1) (res *data1.BeaconV1, err error)

func (*BeaconsMemoryClientV1) DeleteBeaconById

func (c *BeaconsMemoryClientV1) DeleteBeaconById(ctx context.Context,
	correlationId string, beaconId string) (res *data1.BeaconV1, err error)

func (*BeaconsMemoryClientV1) GetBeaconById

func (c *BeaconsMemoryClientV1) GetBeaconById(ctx context.Context,
	correlationId string, beaconId string) (beacon *data1.BeaconV1, err error)

func (*BeaconsMemoryClientV1) GetBeaconByUdi

func (c *BeaconsMemoryClientV1) GetBeaconByUdi(ctx context.Context,
	correlationId string, udi string) (beacon *data1.BeaconV1, err error)

func (*BeaconsMemoryClientV1) GetBeacons

func (c *BeaconsMemoryClientV1) GetBeacons(ctx context.Context,
	correlationId string, filter cdata.FilterParams, paging cdata.PagingParams) (page *cdata.DataPage[data1.BeaconV1], err error)

func (*BeaconsMemoryClientV1) UpdateBeacon

func (c *BeaconsMemoryClientV1) UpdateBeacon(ctx context.Context,
	correlationId string, beacon data1.BeaconV1) (res *data1.BeaconV1, err error)

type BeaconsNullClientV1

type BeaconsNullClientV1 struct {
}

func NewBeaconsNullClientV1

func NewBeaconsNullClientV1() *BeaconsNullClientV1

func (*BeaconsNullClientV1) CalculatePosition

func (c *BeaconsNullClientV1) CalculatePosition(ctx context.Context,
	correlationId string, siteId string, udis []string) (*data1.GeoPointV1, error)

func (*BeaconsNullClientV1) CreateBeacon

func (c *BeaconsNullClientV1) CreateBeacon(ctx context.Context,
	correlationId string, beacon *data1.BeaconV1) (*data1.BeaconV1, error)

func (*BeaconsNullClientV1) DeleteBeaconById

func (c *BeaconsNullClientV1) DeleteBeaconById(ctx context.Context,
	correlationId string, beaconId string) (*data1.BeaconV1, error)

func (*BeaconsNullClientV1) GetBeaconById

func (c *BeaconsNullClientV1) GetBeaconById(ctx context.Context,
	correlationId string, beaconId string) (*data1.BeaconV1, error)

func (*BeaconsNullClientV1) GetBeaconByUdi

func (c *BeaconsNullClientV1) GetBeaconByUdi(ctx context.Context,
	correlationId string, udi string) (*data1.BeaconV1, error)

func (*BeaconsNullClientV1) GetBeacons

func (c *BeaconsNullClientV1) GetBeacons(ctx context.Context,
	correlationId string, filter cdata.FilterParams,
	paging cdata.PagingParams) (*cdata.DataPage[data1.BeaconV1], error)

func (*BeaconsNullClientV1) UpdateBeacon

func (c *BeaconsNullClientV1) UpdateBeacon(ctx context.Context,
	correlationId string, beacon *data1.BeaconV1) (*data1.BeaconV1, error)

type IBeaconsClientV1

type IBeaconsClientV1 interface {
	GetBeacons(ctx context.Context, correlationId string, filter cdata.FilterParams,
		paging cdata.PagingParams) (*cdata.DataPage[data1.BeaconV1], error)

	GetBeaconById(ctx context.Context, correlationId string, beaconId string) (*data1.BeaconV1, error)

	GetBeaconByUdi(ctx context.Context, correlationId string, udi string) (*data1.BeaconV1, error)

	CalculatePosition(ctx context.Context, correlationId string, siteId string, udis []string) (*data1.GeoPointV1, error)

	CreateBeacon(ctx context.Context, correlationId string, beacon data1.BeaconV1) (*data1.BeaconV1, error)

	UpdateBeacon(ctx context.Context, correlationId string, beacon data1.BeaconV1) (*data1.BeaconV1, error)

	DeleteBeaconById(ctx context.Context, correlationId string, beaconId string) (*data1.BeaconV1, error)
}

Jump to

Keyboard shortcuts

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