Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

wsnet dial policy #364

Merged
merged 6 commits into from
Jun 7, 2021
Merged

wsnet dial policy #364

merged 6 commits into from
Jun 7, 2021

Conversation

deansheather
Copy link
Member

Adds Policies field to ProtoMessage which denotes which network + host + port combinations a client connection may use. Makes ProtoMessage public.

@deansheather deansheather requested a review from kylecarbs June 4, 2021 20:38
@deansheather deansheather requested a review from kylecarbs June 4, 2021 23:37
Copy link
Member

@kylecarbs kylecarbs left a comment

Choose a reason for hiding this comment

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

Minor-ish nit, but I'll approve for future ease!

@deansheather deansheather marked this pull request as ready for review June 7, 2021 16:30
@deansheather deansheather requested a review from kylecarbs June 7, 2021 16:31
Comment on lines +26 to +28
CodeDialErr = "dial_error"
CodePermissionErr = "permission_error"
CodeBadAddressErr = "bad_address_error"
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to export these codes? Shouldn't we do xerrors.Is instead?

@kylecarbs kylecarbs merged commit 544f276 into master Jun 7, 2021
@kylecarbs kylecarbs deleted the wsnet-dial-policy branch June 7, 2021 16:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants