it shouldn't be immensely difficult to implement a read-only option for connections that disallows the Spear.Connection from emitting any write-related requests
I don't think the protos have any information about which RPCs are write-operations but it should be somewhat easy to curate a list or mapping
it shouldn't be immensely difficult to implement a read-only option for connections that disallows the
Spear.Connection
from emitting any write-related requestsI don't think the protos have any information about which RPCs are write-operations but it should be somewhat easy to curate a list or mapping
And check against this when a request is received, giving
{:error, :read_only}
when a write API is given in read-only mode.