logic

package
v0.0.0-...-1a3fe61 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeaconsCommandSet

type BeaconsCommandSet struct {
	ccmd.CommandSet
	// contains filtered or unexported fields
}

func NewBeaconsCommandSet

func NewBeaconsCommandSet(controller IBeaconsController) *BeaconsCommandSet

type BeaconsController

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

func NewBeaconsController

func NewBeaconsController() *BeaconsController

func (*BeaconsController) CalculatePosition

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

func (*BeaconsController) Configure

func (c *BeaconsController) Configure(ctx context.Context, config *cconf.ConfigParams)

func (*BeaconsController) CreateBeacon

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

func (*BeaconsController) DeleteBeaconById

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

func (*BeaconsController) GetBeaconById

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

func (*BeaconsController) GetBeaconByUdi

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

func (*BeaconsController) GetBeacons

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

func (*BeaconsController) GetCommandSet

func (c *BeaconsController) GetCommandSet() *ccmd.CommandSet

func (*BeaconsController) SetReferences

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

func (*BeaconsController) UpdateBeacon

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

type IBeaconsController

type IBeaconsController 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, beaconId 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