mocks

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Token = "" /* 1942-byte string literal not displayed */

Functions

func MockAuthServer

func MockAuthServer(config config.Config, ctx context.Context) (err error)

Types

type DevicesMock

type DevicesMock struct {
	GetDeviceInfosOfGroupValues    map[string][]model.Device //key = groupId
	GetDeviceTypeSelectablesValues map[string]map[string][]model.DeviceTypeSelectable
	Functions                      map[string]model.Function
	Concepts                       map[string]model.Concept
}

func (*DevicesMock) GetConcept

func (this *DevicesMock) GetConcept(conceptId string) (result model.Concept, err error, code int)

func (*DevicesMock) GetDeviceInfosOfDevices

func (this *DevicesMock) GetDeviceInfosOfDevices(deviceIds []string) (devices []model.Device, deviceTypeIds []string, err error, code int)

func (*DevicesMock) GetDeviceInfosOfGroup

func (this *DevicesMock) GetDeviceInfosOfGroup(groupId string) (devices []model.Device, deviceTypeIds []string, err error, code int)

func (*DevicesMock) GetDeviceTypeSelectables

func (this *DevicesMock) GetDeviceTypeSelectables(criteria []model.FilterCriteria) (result []model.DeviceTypeSelectable, err error, code int)

func (*DevicesMock) GetFunction

func (this *DevicesMock) GetFunction(functionId string) (result model.Function, err error, code int)

func (*DevicesMock) GetService

func (this *DevicesMock) GetService(serviceId string) (result models.Service, err error, code int)

type ImportsMock

type ImportsMock struct{}

func (*ImportsMock) GetImportInstance

func (this *ImportsMock) GetImportInstance(user string, importId string) (importInstance importmodel.Import, err error, code int)

func (*ImportsMock) GetImportType

func (this *ImportsMock) GetImportType(user string, importTypeId string) (importType importmodel.ImportType, err error, code int)

func (*ImportsMock) GetTopic

func (this *ImportsMock) GetTopic(_ string, importId string) (topic string, err error, code int)

Jump to

Keyboard shortcuts

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