Documentation ¶
Index ¶
- Constants
- func CreateMongoTestEnv(ctx context.Context, wg *sync.WaitGroup, t *testing.T) (ctrl *controller.Controller, err error)
- func CreateTestEnv(ctx context.Context, wg *sync.WaitGroup, t *testing.T, ...) (conf config.Config, err error)
- func Jwtdelete(token string, url string) (resp *http.Response, err error)
- func Jwtput(token string, url string, contenttype string, body *bytes.Buffer) (resp *http.Response, err error)
- func StartController(baseCtx context.Context, wg *sync.WaitGroup, conf config.Config) (ctrl *controller.Controller, err error)
- type VoidProducerMock
- func (v VoidProducerMock) PublishAspectDelete(id string, owner string) error
- func (v VoidProducerMock) PublishAspectUpdate(aspect models.Aspect, owner string) error
- func (v VoidProducerMock) PublishDevice(element models.Device, userId string) error
- func (v VoidProducerMock) PublishDeviceDelete(id string, owner string) error
- func (v VoidProducerMock) PublishDeviceGroup(element models.DeviceGroup, owner string) error
- func (v VoidProducerMock) PublishDeviceGroupDelete(id string, owner string) error
- func (v VoidProducerMock) PublishDeviceRights(deviceId string, userId string, rights model.ResourceRights) (err error)
- func (v VoidProducerMock) PublishHub(hub models.Hub, userId string) (err error)
- func (v VoidProducerMock) SendDone(msg donewait.DoneMsg) error
Constants ¶
View Source
const AdminToken = `` /* 1232-byte string literal not displayed */
View Source
const AdminTokenUser = "admin"
View Source
const SecendOwnerTokenUser = "secondOwner"
View Source
const SecondOwnerToken = `` /* 1219-byte string literal not displayed */
View Source
const TestToken = `` /* 1216-byte string literal not displayed */
View Source
const TestTokenUser = "testOwner"
View Source
const Userid = "dd69ea0d-f553-4336-80f3-7f4567f85c7b"
View Source
const Userjwt = "" /* 1949-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func CreateMongoTestEnv ¶
func CreateMongoTestEnv(ctx context.Context, wg *sync.WaitGroup, t *testing.T) (ctrl *controller.Controller, err error)
func CreateTestEnv ¶
func StartController ¶
func StartController(baseCtx context.Context, wg *sync.WaitGroup, conf config.Config) (ctrl *controller.Controller, err error)
Types ¶
type VoidProducerMock ¶ added in v0.1.18
type VoidProducerMock struct{}
func (VoidProducerMock) PublishAspectDelete ¶ added in v0.1.18
func (v VoidProducerMock) PublishAspectDelete(id string, owner string) error
func (VoidProducerMock) PublishAspectUpdate ¶ added in v0.1.18
func (v VoidProducerMock) PublishAspectUpdate(aspect models.Aspect, owner string) error
func (VoidProducerMock) PublishDevice ¶ added in v0.1.18
func (v VoidProducerMock) PublishDevice(element models.Device, userId string) error
func (VoidProducerMock) PublishDeviceDelete ¶ added in v0.1.18
func (v VoidProducerMock) PublishDeviceDelete(id string, owner string) error
func (VoidProducerMock) PublishDeviceGroup ¶ added in v0.1.18
func (v VoidProducerMock) PublishDeviceGroup(element models.DeviceGroup, owner string) error
func (VoidProducerMock) PublishDeviceGroupDelete ¶ added in v0.1.18
func (v VoidProducerMock) PublishDeviceGroupDelete(id string, owner string) error
func (VoidProducerMock) PublishDeviceRights ¶ added in v0.1.18
func (v VoidProducerMock) PublishDeviceRights(deviceId string, userId string, rights model.ResourceRights) (err error)
func (VoidProducerMock) PublishHub ¶ added in v0.1.18
func (v VoidProducerMock) PublishHub(hub models.Hub, userId string) (err error)
Click to show internal directories.
Click to hide internal directories.