conceptrepo

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Access

type Access interface {
	Ensure() (config.Impersonate, error)
}

type ConceptRepo

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

func New

func New(ctx context.Context, conf config.Config, access Access, defaults ...ConceptRepoDefault) (result *ConceptRepo, err error)

func (*ConceptRepo) GetCharacteristic

func (this *ConceptRepo) GetCharacteristic(id string) (characteristic model.Characteristic, err error)

func (*ConceptRepo) GetCharacteristicsOfFunction

func (this *ConceptRepo) GetCharacteristicsOfFunction(functionId string) (characteristicIds []string, err error)

func (*ConceptRepo) GetConcept

func (this *ConceptRepo) GetConcept(id string) (concept model.Concept, err error)

func (*ConceptRepo) GetConceptIdOfFunction

func (this *ConceptRepo) GetConceptIdOfFunction(id string) string

func (*ConceptRepo) GetConceptsOfCharacteristic

func (this *ConceptRepo) GetConceptsOfCharacteristic(characteristicId string) (conceptIds []string, err error)

func (*ConceptRepo) GetRootCharacteristics

func (this *ConceptRepo) GetRootCharacteristics(ids []string) (result []string)

func (*ConceptRepo) Load

func (this *ConceptRepo) Load() error

type ConceptRepoDefault

type ConceptRepoDefault struct {
	Concept         model.Concept
	Characteristics []model.Characteristic
}

type FunctionInfo

type FunctionInfo struct {
	Id        string `json:"id"`
	ConceptId string `json:"concept_id"`
}

type IdWrapper

type IdWrapper struct {
	Id string `json:"id"`
}

Jump to

Keyboard shortcuts

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