Skip to content

Instantly share code, notes, and snippets.

@fakiho
Created February 27, 2021 21:04
Show Gist options
  • Select an option

  • Save fakiho/ac7271ac0b394e6dc444ab3b13a59edb to your computer and use it in GitHub Desktop.

Select an option

Save fakiho/ac7271ac0b394e6dc444ab3b13a59edb to your computer and use it in GitHub Desktop.
protocol DVPNRepository {
func connect(configuration: VPNAccount)
func getStatus(completion: @escaping (NetworkVPNStatus) -> ())
func disconnect()
func loadVPNConfig(completion: @escaping () -> Void)
func getServers(completion: @escaping (Result<[Server], Error>) -> Void) -> Cancellable?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment