2020-11-05 02:07:21 +01:00
|
|
|
|
2020-12-02 06:25:16 +01:00
|
|
|
public struct SNSnodeKitConfiguration {
|
2020-11-05 03:39:32 +01:00
|
|
|
public let storage: SessionSnodeKitStorageProtocol
|
2020-11-05 02:07:21 +01:00
|
|
|
|
2020-12-02 06:25:16 +01:00
|
|
|
internal static var shared: SNSnodeKitConfiguration!
|
2020-11-05 02:07:21 +01:00
|
|
|
}
|
|
|
|
|
2020-12-02 06:25:16 +01:00
|
|
|
public enum SNSnodeKit { // Just to make the external API nice
|
2020-11-05 02:07:21 +01:00
|
|
|
|
2020-11-11 23:30:03 +01:00
|
|
|
public static func configure(storage: SessionSnodeKitStorageProtocol) {
|
2020-12-02 06:25:16 +01:00
|
|
|
SNSnodeKitConfiguration.shared = SNSnodeKitConfiguration(storage: storage)
|
2020-11-05 02:07:21 +01:00
|
|
|
}
|
|
|
|
}
|