diff --git a/CTng/monitor/Readme.md b/CTng/monitor/Readme.md index b5cf9ca..8e28ad5 100644 --- a/CTng/monitor/Readme.md +++ b/CTng/monitor/Readme.md @@ -14,12 +14,22 @@ - `Check_entity_pom`: check if there is a pom against the provided URL - `isLogger`: check if the entities is in the Loggers list from the public config file - `IsAuthority`: check if the entities is in the CAs list from the public config file +- `Check_entity_pom`: check if there is a PoM aganist this entity - `AccuseEntity`: accuses the entity if its URL is provided - `Send_to_gossiper`: send the input gossip object to the gossiper - +- `PeriodicTasks` : query loggers once per MMD, accuse if the logger is inactive ## monitor_process.go - `Process_valid_object`: If the monitor receives a valid sth from a logger or valid revocation information from a CA (both need to be in the form of a gossip object), this function will send the raw version of the gossip object to the gossiper, wait for gossip_wait_time, check updated local PoM database, if there is no PoM against the signer of this sth/revocation information, threshold sign this sth/revocation information and send it to the gossiper + +## Code Owners +- types.go is written by Finn +- monitor_process.go is written by Jie, reviewed by Finn +- `Queryloggers` and `QueryAuthorities` functions in monitor.go are written by Marcus, reviewed and edited by Finn +- `AccuseEntity` and `Send_to_Gossiper` functions in monitor.go are written by Jie, reviewed by Finn +- `Check_entity_pom` `isLogger` and `IsAuthority` functions monitor.go are written by Jie, reviewed and edited by Finn +- `PeriodicTasks` function in monitor.go is written by Finn +##### Readme written by Jie diff --git a/CTng/monitor/monitor.go b/CTng/monitor/monitor.go index c7b3bde..36e8e6b 100644 --- a/CTng/monitor/monitor.go +++ b/CTng/monitor/monitor.go @@ -86,7 +86,6 @@ func QueryAuthorities(c *MonitorContext) { } -//Written by Jie //This function accuses the entity if the damain name is provided //It is called when the gossip object received is not valid, or the monitor didn't get response when querying the logger or the CA //Accused = Domain name of the accused entity (logger etc.) @@ -121,7 +120,6 @@ func AccuseEntity(c *MonitorContext, Accused string) { Send_to_gossiper(c, accusation) } -//Written by Jie //Send the input gossip object to its gossiper func Send_to_gossiper(c *MonitorContext, g gossip.Gossip_object) { // Convert gossip object to JSON