Skip to content
Snippets Groups Projects
Select Git revision
  • development
  • main default protected
  • integration
  • v1.1.5
  • v1.1.4
  • v1.1.3
  • v1.1.2
  • v1.1.1
  • v1.1.0
  • v1.0.0
10 results

ClientStorage.swift

Blame
  • Connection.swift NaN GiB
    import Bindings
    
    public struct Connection {
      public var isAuthenticated: ConnectionIsAuthenticated
      public var getId: ConnectionGetId
      public var getPartner: ConnectionGetPartner
      public var registerListener: ConnectionRegisterListener
      public var send: ConnectionSend
      public var close: ConnectionClose
    }
    
    extension Connection {
      public static func live(_ bindingsConnection: BindingsConnection) -> Connection {
        Connection(
          isAuthenticated: .live(bindingsConnection),
          getId: .live(bindingsConnection),
          getPartner: .live(bindingsConnection),
          registerListener: .live(bindingsConnection),
          send: .live(bindingsConnection),
          close: .live(bindingsConnection)
        )
      }
    
      public static func live(_ bindingsConnection: BindingsAuthenticatedConnection) -> Connection {
        Connection(
          isAuthenticated: .live(bindingsConnection),
          getId: .live(bindingsConnection),
          getPartner: .live(bindingsConnection),
          registerListener: .live(bindingsConnection),
          send: .live(bindingsConnection),
          close: .live(bindingsConnection)
        )
      }
    }
    
    extension Connection {
      public static let unimplemented = Connection(
        isAuthenticated: .unimplemented,
        getId: .unimplemented,
        getPartner: .unimplemented,
        registerListener: .unimplemented,
        send: .unimplemented,
        close: .unimplemented
      )
    }