Class: OpenC3::CalendarTopic
- Defined in:
- lib/openc3/topics/calendar_topic.rb
Constant Summary collapse
- PRIMARY_KEY =
'__openc3_calendar'.freeze
Class Method Summary collapse
-
.write_entry(entry, scope:) ⇒ Object
Write an activity to the topic.
Methods inherited from Topic
all_same_db_shard?, clear_topics, del, get_cnt, get_last_offset, get_newest_message, get_oldest_message, group_topics_by_db_shard, method_missing, read_topics, trim_topic, update_topic_offsets, write_ack, write_topic
Class Method Details
.write_entry(entry, scope:) ⇒ Object
Write an activity to the topic
“‘json
{
"type" => "metadata",
"kind" => "created",
"metadata" => {
"target" => "FOO",
"start" => 1621875570,
"color" => "#FF0000",
"metadata" => {"test"=>"123456"}
},
}
“‘
38 39 40 |
# File 'lib/openc3/topics/calendar_topic.rb', line 38 def self.write_entry(entry, scope:) Topic.write_topic("#{scope}#{PRIMARY_KEY}", entry, '*', 1000) end |