Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Support for Custom Hosts/Regions #13

Merged
merged 9 commits into from
Sep 7, 2018
Merged

Added Support for Custom Hosts/Regions #13

merged 9 commits into from
Sep 7, 2018

Conversation

lluuaapp
Copy link
Collaborator

@lluuaapp lluuaapp commented Sep 5, 2018

  • changed Region from enum to struct
  • can initialise region with custom host (e.g. 127.0.0.1)
  • can disabled TLS/https for custom host
  • disabled subdomain-buckets for custom host
  • I tested this with Minio object storage server


public struct Region {

public let name: RegionName
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add helper comments to these

Copy link
Collaborator

@rafiki270 rafiki270 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks amazing, thanks a million. Would you please just mind adding the missing comments and look through the formatting (spacing) so the code is consistent?

}
}

public extension Region {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don’t think the extension needs to have public, only methods within do

}

extension Region: Codable {
public init(from decoder: Decoder) throws {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space and comment please

@rafiki270 rafiki270 merged commit 82a9c6c into LiveUI:master Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants