MCPcopy
hub / github.com/apache/answer / QID

Method QID

internal/schema/event_schema.go:56–62  ·  view source on GitHub ↗

QID get question id

(questionID, userID string)

Source from the content-addressed store, hash-verified

54
55// QID get question id
56func (e *EventMsg) QID(questionID, userID string) *EventMsg {
57 if len(questionID) > 0 {
58 e.QuestionID = uid.DeShortID(questionID)
59 }
60 e.QuestionUserID = userID
61 return e
62}
63
64// AID get answer id
65func (e *EventMsg) AID(answerID, userID string) *EventMsg {

Callers 9

QuestionInfoMethod · 0.80
AddCommentMethod · 0.80
AddQuestionMethod · 0.80
RemoveQuestionMethod · 0.80
UpdateQuestionMethod · 0.80
AcceptAnswerMethod · 0.80
sendEventMethod · 0.80
AddOrUpdateReactionMethod · 0.80
sendEventMethod · 0.80

Calls 1

DeShortIDFunction · 0.92

Tested by

no test coverage detected