opensergo-go-sdk icon indicating copy to clipboard operation
opensergo-go-sdk copied to clipboard

Support functional option style API

Open jnan806 opened this issue 2 years ago • 2 comments

Signed-off-by: Jiangnan Jia [email protected]

Describe what this PR does / why we need it

  1. with functional option style can make the API more convenient ~2. SDK now lacks a retry mechanism when connect to the transport stream~ ~3. invoke chain in the code is too long, need to re-format~

Does this pull request fix one issue?

Fixes #21

Describe how you did it

  1. add an functional option in package api, and add param in NewOpenSergoClient ~2. introduce the retry-go component to realize retry mechanism~ ~3. re-format the code by extract func and struct~

Describe how to verify it

Special notes for reviews

jnan806 avatar Dec 05 '22 14:12 jnan806

@sczyh30 PTAL

jnan806 avatar Mar 13 '23 02:03 jnan806

Also cc @binbin0325

sczyh30 avatar Mar 29 '23 06:03 sczyh30