diff --git a/Sources/ReplicantSwift/Polish/Silver/SilverClientConfig.swift b/Sources/ReplicantSwift/Polish/Silver/SilverClientConfig.swift index 9c89985..53cc15b 100644 --- a/Sources/ReplicantSwift/Polish/Silver/SilverClientConfig.swift +++ b/Sources/ReplicantSwift/Polish/Silver/SilverClientConfig.swift @@ -8,13 +8,14 @@ import Foundation import SwiftQueue -struct SilverClientConfig: PolishClientConfig, Codable +public struct SilverClientConfig: PolishClientConfig, Codable { - let serverKey: Data - let chunkSize: UInt16 - let chunkTimeout: Int + public let serverKey: Data + public let chunkSize: UInt16 + public let chunkTimeout: Int - func construct(logQueue: Queue) -> PolishConnection? { + public func construct(logQueue: Queue) -> PolishConnection? + { return SilverClientConnection(logQueue: logQueue, serverPublicKeyData: serverKey, chunkSize: chunkSize, chunkTimeout: chunkTimeout) } } diff --git a/Sources/ReplicantSwift/Polish/Silver/SilverServerConfig.swift b/Sources/ReplicantSwift/Polish/Silver/SilverServerConfig.swift index 203aadd..8551ce6 100644 --- a/Sources/ReplicantSwift/Polish/Silver/SilverServerConfig.swift +++ b/Sources/ReplicantSwift/Polish/Silver/SilverServerConfig.swift @@ -8,14 +8,14 @@ import Foundation import SwiftQueue -struct SilverServerConfig: PolishServerConfig, Codable +public struct SilverServerConfig: PolishServerConfig, Codable { - let serverPublicKey: Data - let serverPrivateKey: Data - let chunkSize: UInt16 - let chunkTimeout: Int + public let serverPublicKey: Data + public let serverPrivateKey: Data + public let chunkSize: UInt16 + public let chunkTimeout: Int - func construct(logQueue: Queue) -> PolishServer? + public func construct(logQueue: Queue) -> PolishServer? { SilverServer(logQueue: logQueue, chunkSize: chunkSize, chunkTimeout: chunkTimeout) }