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

document all of the external services that zos works against #2482

Open
xmonader opened this issue Nov 11, 2024 · 1 comment
Open

document all of the external services that zos works against #2482

xmonader opened this issue Nov 11, 2024 · 1 comment

Comments

@xmonader
Copy link
Collaborator

all of them and behavior if any of them is down and track if we have retry mechanism and alternative backends or not

@iwanbk
Copy link
Member

iwanbk commented Nov 11, 2024

other than documenting, the other way is to let the code speak for itself in easy way.
A quick idea

create external services package, lets say the name is extsrv.

// mention the name and URLs there
var Services = map[string]ExtService {
             "a"  : {"Url: "http://a.com", Retry: true},
              "b" :  {Url: "http://b.com", Retry: false},
}
// Retry Wrapper
func RetryWrapper(s ExtService, f func(...)) {
     if !s.Retry {
           f()
     }
     // Call Retry func here
}

The other way is to simply list the URL in that package, and document there.

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

No branches or pull requests

2 participants