Documentation
¶
Index ¶
- func CloseClient() error
- func CreateEvaluationForResponseId(ctx context.Context, responseId string, evaluationResult string, ...) (*ent.Evaluation, error)
- func DbExistis() bool
- func GetAgreementByScenarioId(ctx context.Context, scenarioId uuid.UUID) evaluationapi.RatingScore
- func GetClient() (*ent.Client, error)
- func GetDemoUser(ctx context.Context) (*ent.User, error)
- func GetEvaluationCountByResponseId(ctx context.Context, responseId uuid.UUID) (int, int, int, error)
- func GetNextResponse(ctx context.Context) (*ent.Response, error)
- func GetRequestById(ctx context.Context, requestId uuid.UUID) (*ent.Request, error)
- func GetResponseById(ctx context.Context, responseId uuid.UUID) (*ent.Response, error)
- func GetResultStatisticsByScenarioId(ctx context.Context, scenarioId uuid.UUID) []evaluationapi.NameValuePair
- func GetScenarios(ctx context.Context) ([]*ent.Scenario, error)
- func GetTotalResponseCountByScenarioId(ctx context.Context, scenarioId uuid.UUID) int32
- func GetUserByExternalId(ctx context.Context, externalId string) (*ent.User, error)
- func ProgressStatistics(ctx context.Context, scenarioId uuid.UUID, totalCount int32) []evaluationapi.NameValuePair
- func SetupDb() error
- func UpsertUser(ctx context.Context, externalId, name, userType string) (uuid.UUID, error)
- type NotFoundError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseClient ¶
func CloseClient() error
func GetAgreementByScenarioId ¶
func GetAgreementByScenarioId(ctx context.Context, scenarioId uuid.UUID) evaluationapi.RatingScore
func GetRequestById ¶
func GetResponseById ¶
func GetResultStatisticsByScenarioId ¶
func GetResultStatisticsByScenarioId(ctx context.Context, scenarioId uuid.UUID) []evaluationapi.NameValuePair
func GetUserByExternalId ¶
func ProgressStatistics ¶
func ProgressStatistics(ctx context.Context, scenarioId uuid.UUID, totalCount int32) []evaluationapi.NameValuePair
Types ¶
type NotFoundError ¶
type NotFoundError interface {
error
}
Click to show internal directories.
Click to hide internal directories.