Skip to content

Commit

Permalink
public class and methods
Browse files Browse the repository at this point in the history
  • Loading branch information
makoni committed Mar 13, 2019
1 parent 27ba327 commit 1d86f67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Sources/CouchDBClient/CouchDBClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation
import HTTP


class CouchDBClient: NSObject {
public class CouchDBClient: NSObject {

// MARK: - Private properties

Expand All @@ -35,7 +35,7 @@ class CouchDBClient: NSObject {


// MARK: - Public methods
func get(dbName: String, uri: String, query: [String: Any]? = nil, worker: Worker) -> Future<HTTPResponse>? {
public func get(dbName: String, uri: String, query: [String: Any]? = nil, worker: Worker) -> Future<HTTPResponse>? {
let client = HTTPClient.connect(
scheme: .http,
hostname: couchHost,
Expand All @@ -58,7 +58,7 @@ class CouchDBClient: NSObject {
}
}

func update(dbName: String, uri: String, body: HTTPBody, worker: Worker ) -> Future<CouchUpdateResponse>? {
public func update(dbName: String, uri: String, body: HTTPBody, worker: Worker ) -> Future<CouchUpdateResponse>? {
let client = HTTPClient.connect(
scheme: .http,
hostname: couchHost,
Expand Down
4 changes: 2 additions & 2 deletions Sources/CouchDBClient/CouchUpdateResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation


struct CouchUpdateResponse: Codable {
public struct CouchUpdateResponse: Codable {
var ok: Bool
var id: String
var rev: String
Expand All @@ -21,7 +21,7 @@ struct CouchUpdateResponse: Codable {
}


extension CouchUpdateResponse {
public extension CouchUpdateResponse {
init(from decoder: Decoder) throws {
let container = try decoder.container(keyedBy: CodingKeys.self)

Expand Down

0 comments on commit 1d86f67

Please sign in to comment.