From b0898569a4eb5f9c2904f4de450b730f6d4cfddf Mon Sep 17 00:00:00 2001 From: Benjamin Erb Date: Tue, 8 Oct 2024 15:17:00 +0200 Subject: [PATCH] changed API of RunTLEE() --- pkg/tleeinterface/tleeinterface.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/tleeinterface/tleeinterface.go b/pkg/tleeinterface/tleeinterface.go index f46fb52..34423a4 100644 --- a/pkg/tleeinterface/tleeinterface.go +++ b/pkg/tleeinterface/tleeinterface.go @@ -6,8 +6,12 @@ import ( ) /* -The RunTLEE function provided by the TLEE to be used by the TAF. +The TLEE interface indicates that a struct can be used as a TLEE by exposing the required RunTLEE() function. */ type TLEE interface { - RunTLEE(trustmodelID string, version int, fingerprint uint32, structure trustmodelstructure.TrustGraphStructure, values map[string][]trustmodelstructure.TrustRelationship) map[string]subjectivelogic.QueryableOpinion + + /* + The RunTLEE function provided by the TLEE to be used by the TAF. + */ + RunTLEE(trustmodelID string, version int, fingerprint uint32, structure trustmodelstructure.TrustGraphStructure, values map[string][]trustmodelstructure.TrustRelationship) (map[string]subjectivelogic.QueryableOpinion, error) }