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

Function NewEvent

internal/schema/event_schema.go:47–53  ·  view source on GitHub ↗

NewEvent create a new event

(e constant.EventType, userID string)

Source from the content-addressed store, hash-verified

45
46// NewEvent create a new event
47func NewEvent(e constant.EventType, userID string) *EventMsg {
48 return &EventMsg{
49 UserID: userID,
50 EventType: e,
51 ExtraInfo: make(map[string]string),
52 }
53}
54
55// QID get question id
56func (e *EventMsg) QID(questionID, userID string) *EventMsg {

Callers 15

QuestionInfoMethod · 0.92
AddCommentMethod · 0.92
RemoveCommentMethod · 0.92
UpdateCommentMethod · 0.92
UpdateInfoMethod · 0.92
AddQuestionMethod · 0.92
RemoveQuestionMethod · 0.92
UpdateQuestionMethod · 0.92
RemoveAnswerMethod · 0.92
InsertMethod · 0.92
UpdateMethod · 0.92
AcceptAnswerMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected