Skip to content

Commit 1d86f67

Browse files
committed
public class and methods
1 parent 27ba327 commit 1d86f67

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Sources/CouchDBClient/CouchDBClient.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Foundation
99
import HTTP
1010

1111

12-
class CouchDBClient: NSObject {
12+
public class CouchDBClient: NSObject {
1313

1414
// MARK: - Private properties
1515

@@ -35,7 +35,7 @@ class CouchDBClient: NSObject {
3535

3636

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

61-
func update(dbName: String, uri: String, body: HTTPBody, worker: Worker ) -> Future<CouchUpdateResponse>? {
61+
public func update(dbName: String, uri: String, body: HTTPBody, worker: Worker ) -> Future<CouchUpdateResponse>? {
6262
let client = HTTPClient.connect(
6363
scheme: .http,
6464
hostname: couchHost,

Sources/CouchDBClient/CouchUpdateResponse.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99

1010

11-
struct CouchUpdateResponse: Codable {
11+
public struct CouchUpdateResponse: Codable {
1212
var ok: Bool
1313
var id: String
1414
var rev: String
@@ -21,7 +21,7 @@ struct CouchUpdateResponse: Codable {
2121
}
2222

2323

24-
extension CouchUpdateResponse {
24+
public extension CouchUpdateResponse {
2525
init(from decoder: Decoder) throws {
2626
let container = try decoder.container(keyedBy: CodingKeys.self)
2727

0 commit comments

Comments
 (0)