configurables

package
v0.0.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConceptRepo

type ConceptRepo interface {
	GetConceptsOfCharacteristic(characteristicId string) (conceptId []string, err error)
	GetCharacteristic(id string) (model.Characteristic, error)
	GetConcept(id string) (concept model.Concept, err error)
}

type Configurable

type Configurable struct {
	CharacteristicId string                            `json:"characteristic_id"`
	Values           []ConfigurableCharacteristicValue `json:"values"`
}

type ConfigurableCharacteristicValue

type ConfigurableCharacteristicValue struct {
	Label string `json:"label"`
	Path  string `json:"path"`
	Value string `json:"value"`
}

type ConfigurableService

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

func New

func (*ConfigurableService) Find

func (this *ConfigurableService) Find(notCharacteristicId string, services []model.Service) (result Configurables, err error)

type Configurables

type Configurables []Configurable

func FindIntersectingConfigurables

func FindIntersectingConfigurables(repo ConceptRepo, notCharacteristicId string, services []model.Service) (result Configurables, err error)

Jump to

Keyboard shortcuts

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