Documentation ¶
Index ¶
- type BeaconsFilePersistence
- type BeaconsMemoryPersistence
- func (c *BeaconsMemoryPersistence) Create(correlationId string, item *data1.BeaconV1) (*data1.BeaconV1, error)
- func (c *BeaconsMemoryPersistence) DeleteById(correlationId string, id string) (*data1.BeaconV1, error)
- func (c *BeaconsMemoryPersistence) GetOneById(correlationId string, id string) (*data1.BeaconV1, error)
- func (c *BeaconsMemoryPersistence) GetOneByUdi(correlationId string, udi string) (*data1.BeaconV1, error)
- func (c *BeaconsMemoryPersistence) GetPageByFilter(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (*data1.BeaconV1DataPage, error)
- func (c *BeaconsMemoryPersistence) Update(correlationId string, item *data1.BeaconV1) (*data1.BeaconV1, error)
- type BeaconsMongoDbPersistence
- func (c *BeaconsMongoDbPersistence) Create(correlationId string, item *data1.BeaconV1) (result *data1.BeaconV1, err error)
- func (c *BeaconsMongoDbPersistence) DeleteById(correlationId string, id string) (result *data1.BeaconV1, err error)
- func (c *BeaconsMongoDbPersistence) GetOneById(correlationId string, id string) (item *data1.BeaconV1, err error)
- func (c *BeaconsMongoDbPersistence) GetOneByUdi(correlationId string, udi string) (result *data1.BeaconV1, err error)
- func (c *BeaconsMongoDbPersistence) GetPageByFilter(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (page *data1.BeaconV1DataPage, err error)
- func (c *BeaconsMongoDbPersistence) Update(correlationId string, item *data1.BeaconV1) (result *data1.BeaconV1, err error)
- type IBeaconsPersistence
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeaconsFilePersistence ¶
type BeaconsFilePersistence struct { BeaconsMemoryPersistence // contains filtered or unexported fields }
func NewBeaconsFilePersistence ¶
func NewBeaconsFilePersistence(path string) *BeaconsFilePersistence
func (*BeaconsFilePersistence) Configure ¶
func (c *BeaconsFilePersistence) Configure(config *cconf.ConfigParams)
type BeaconsMemoryPersistence ¶
type BeaconsMemoryPersistence struct {
cpersist.IdentifiableMemoryPersistence
}
func NewBeaconsMemoryPersistence ¶
func NewBeaconsMemoryPersistence() *BeaconsMemoryPersistence
func (*BeaconsMemoryPersistence) DeleteById ¶
func (*BeaconsMemoryPersistence) GetOneById ¶
func (*BeaconsMemoryPersistence) GetOneByUdi ¶
func (*BeaconsMemoryPersistence) GetPageByFilter ¶
func (c *BeaconsMemoryPersistence) GetPageByFilter(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (*data1.BeaconV1DataPage, error)
type BeaconsMongoDbPersistence ¶
type BeaconsMongoDbPersistence struct {
mpersist.IdentifiableMongoDbPersistence
}
func NewBeaconsMongoDbPersistence ¶
func NewBeaconsMongoDbPersistence() *BeaconsMongoDbPersistence
func (*BeaconsMongoDbPersistence) DeleteById ¶
func (*BeaconsMongoDbPersistence) GetOneById ¶
func (*BeaconsMongoDbPersistence) GetOneByUdi ¶
func (*BeaconsMongoDbPersistence) GetPageByFilter ¶
func (c *BeaconsMongoDbPersistence) GetPageByFilter(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (page *data1.BeaconV1DataPage, err error)
type IBeaconsPersistence ¶
type IBeaconsPersistence interface { GetPageByFilter(correlationId string, filter *cdata.FilterParams, paging *cdata.PagingParams) (page *data1.BeaconV1DataPage, err error) GetOneById(correlationId string, id string) (res *data1.BeaconV1, err error) GetOneByUdi(correlationId string, udi string) (res *data1.BeaconV1, err error) Create(correlationId string, item *data1.BeaconV1) (res *data1.BeaconV1, err error) Update(correlationId string, item *data1.BeaconV1) (res *data1.BeaconV1, err error) DeleteById(correlationId string, id string) (res *data1.BeaconV1, err error) }
Click to show internal directories.
Click to hide internal directories.