Skip to content

CosmosClient

ratranqu edited this page Apr 26, 2021 · 2 revisions

CosmosClient

public struct CosmosClient 

Initializers

init(url:httpClient:)

public init(url: String, httpClient: HTTPClient) 

init(url:eventLoopGroupProvider:)

public init(url: String, eventLoopGroupProvider: HTTPClient.EventLoopGroupProvider) 

Properties

client

public let client: HTTPClient

Methods

query(path:height:prove:)

public func query<ResponsePayload: Codable>(path: String, height: Int64 = 0, prove: Bool = false) -> Swift.Result<(ResponsePayload, Int64), ErrorWrapper> 

queryWithData(path:data:height:prove:)

public func queryWithData(path: String, data: Data?, height: Int64, prove: Bool) -> Swift.Result<(Data, Int64), ErrorWrapper> 

queryWithPayload(path:data:height:prove:)

public func queryWithPayload<Payload: Codable, ResponsePayload: Codable>(path: String, data: Payload?, height: Int64, prove: Bool) -> Swift.Result<(ResponsePayload, Int64), ErrorWrapper> 
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Extensions
Clone this wiki locally