nostr_rs_plugin/lib.rs
1use nostr_rs_proto::nauthz_grpc::{EventReply, EventRequest, Decision};
2
3pub trait Plugin {
4 fn start(&self) {}
5 fn name(&self) -> String;
6 fn admit_event(&self, _: &EventRequest) -> EventReply {
7 return EventReply { decision: Decision::Permit as i32, message: None }
8 }
9 fn stop(&self) {}
10}