Versions in this module Expand all Collapse all v1 v1.0.0 Jun 3, 2020 Changes in this version + func AddResult(ctx context.Context, surveyID string, result Result) (string, error) + func GetRagResult(score float64, amberFloor float64, greenFloor float64) string + func GetWestrumResult(score int, amberFloor int, greenFloor int) string + type CalculatedResult struct + ChangeFailure string + DateEnd string + DateStart string + DeploymentFrequency string + LeadTime string + LencioniAccountability string + LencioniAccountabilityScore float64 + LencioniCommitment string + LencioniCommitmentScore float64 + LencioniConflict string + LencioniConflictScore float64 + LencioniResults string + LencioniResultsScore float64 + LencioniTrust string + LencioniTrustScore float64 + Mttr string + ResponseTotal int + ShareCode string + Team string + Westrum string + WestrumScore int + func Calculate(s *Survey) (CalculatedResult, error) + func CalculateResultFromGroupTotalStats(s GroupTotalStats) CalculatedResult + type GroupTotalStats struct + ChangeFailure []StringTotal + DeployFrequency []StringTotal + LeadTime []StringTotal + Lencioni struct{ ... } + Mttr []StringTotal + Responses int + Westrum int + func SplitSurveyIntoQuestionGroups(s *Survey) GroupTotalStats + type Result struct + AboutTheTeamCollaborationEncouraged int + AboutTheTeamExtendedAdmitMistakes int + AboutTheTeamExtendedApologise int + AboutTheTeamExtendedCallOutUnproductiveBehaviour int + AboutTheTeamExtendedChallengeOneAnother int + AboutTheTeamExtendedClearResolutionDiscussions int + AboutTheTeamExtendedComfortableDiscussingPersonalLives int + AboutTheTeamExtendedCompellingMeetings int + AboutTheTeamExtendedConcernedAboutLettingDownPeers int + AboutTheTeamExtendedContributeToCollectiveGood int + AboutTheTeamExtendedDifficultIssuesRaised int + AboutTheTeamExtendedLeaveMeetingsCommitted int + AboutTheTeamExtendedMoraleAffectedByFailure int + AboutTheTeamExtendedSlowToSeekCredit int + AboutTheTeamExtendedUnguardedDiscussion int + AboutTheTeamExtendedWillinglyMakeSacrifices int + AboutTheTeamFailureCausesEnquiry int + AboutTheTeamFailureTreatedAsOpportunity int + AboutTheTeamInformationActivelySought int + AboutTheTeamMessengersNotPunished int + AboutTheTeamNewIdeasWelcomed int + AboutTheTeamResponsibilitiesShared int + ChangeFailure string + CurrentRole string + CurrentRoleOther string + DeploymentFrequency string + EmploymentStatus string + LeadTime string + Mttr string + ProgrammingLanguages0 string + ProgrammingLanguages1 string + ProgrammingLanguages10 string + ProgrammingLanguages2 string + ProgrammingLanguages3 string + ProgrammingLanguages4 string + ProgrammingLanguages5 string + ProgrammingLanguages6 string + ProgrammingLanguages7 string + ProgrammingLanguages8 string + ProgrammingLanguages9 string + ProgrammingLanguagesOther string + ResultID string + Time time.Time + type StringTotal struct + Count int + Text string + func CalculateKeyMetrics(m []StringTotal) StringTotal + func CountStringInstance(text string, store []StringTotal) []StringTotal + type Survey struct + CreatedAt time.Time + Name string + Open bool + Results []Result + SurveyID string + Team string + func Create(ctx context.Context, team string) (*Survey, error) + func Get(ctx context.Context, id string) (*Survey, error) + func List(ctx context.Context, closed bool) ([]*Survey, error) + func (s *Survey) Exists() bool