logic

package
v0.0.0-...-9b862cf Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 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(
	correlationId string, siteId string, udis []string) (*data1.GeoPointV1, error)

func (*BeaconsController) Configure

func (c *BeaconsController) Configure(config *cconf.ConfigParams)

func (*BeaconsController) CreateBeacon

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

func (*BeaconsController) DeleteBeaconById

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

func (*BeaconsController) GetBeaconById

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

func (*BeaconsController) GetBeaconByUdi

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

func (*BeaconsController) GetBeacons

func (c *BeaconsController) GetBeacons(
	correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (*data1.BeaconV1DataPage, error)

func (*BeaconsController) GetCommandSet

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

func (*BeaconsController) SetReferences

func (c *BeaconsController) SetReferences(references cref.IReferences)

func (*BeaconsController) UpdateBeacon

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

type IBeaconsController

type IBeaconsController interface {
	GetBeacons(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (page *data1.BeaconV1DataPage, err error)

	GetBeaconById(correlationId string, beaconId string) (item *data1.BeaconV1, err error)

	GetBeaconByUdi(correlationId string, beaconId string) (item *data1.BeaconV1, err error)

	CalculatePosition(correlationId string, siteId string, udis []string) (position *data1.GeoPointV1, err error)

	CreateBeacon(correlationId string, beacon *data1.BeaconV1) (item *data1.BeaconV1, err error)

	UpdateBeacon(correlationId string, beacon *data1.BeaconV1) (item *data1.BeaconV1, err error)

	DeleteBeaconById(correlationId string, beaconId string) (item *data1.BeaconV1, err error)
}

Jump to

Keyboard shortcuts

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