Skip to content

Commit

Permalink
Public Properites for Silver
Browse files Browse the repository at this point in the history
  • Loading branch information
Consuelita authored and Consuelita committed Apr 30, 2020
1 parent b7488a9 commit ed8b389
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
11 changes: 6 additions & 5 deletions Sources/ReplicantSwift/Polish/Silver/SilverClientConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>) -> PolishConnection? {
public func construct(logQueue: Queue<String>) -> PolishConnection?
{
return SilverClientConnection(logQueue: logQueue, serverPublicKeyData: serverKey, chunkSize: chunkSize, chunkTimeout: chunkTimeout)
}
}
12 changes: 6 additions & 6 deletions Sources/ReplicantSwift/Polish/Silver/SilverServerConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>) -> PolishServer?
public func construct(logQueue: Queue<String>) -> PolishServer?
{
SilverServer(logQueue: logQueue, chunkSize: chunkSize, chunkTimeout: chunkTimeout)
}
Expand Down

0 comments on commit ed8b389

Please sign in to comment.