gleamunison/sync_types

Types

pub type PeerId {
  PeerId(name: String)
}

Constructors

  • PeerId(name: String)
pub type SyncError {
  ConnectionFailed(PeerId, reason: String)
  TransferFailed(PeerId, message: String)
  HashConflict(
    PeerId,
    ref: identity.DefinitionRef,
    local: BitArray,
    remote: BitArray,
  )
}

Constructors

Values

pub fn sync_connect(node: String) -> Result(Nil, String)
pub fn sync_receive_diff(
  node: String,
) -> Result(List(String), String)
pub fn sync_request_defs(
  node: String,
  refs: List(String),
) -> Result(List(#(String, BitArray)), String)
pub fn sync_request_evidence(
  node: String,
  subjects: List(String),
) -> Result(List(#(String, BitArray)), String)
pub fn sync_send_refs(
  node: String,
  refs: List(String),
) -> Result(Nil, String)
✨ Search Document