livepeer / go-tools

Utility packages used across Livepeer Go repositories.
0 stars 2 forks source link

Create helper methods to distinguish between different drivers #23

Open leszko opened 1 year ago

leszko commented 1 year ago

We have all over the code the check like this one.

if strings.HasPrefix(u.Scheme, "s3+http") { 
    // do something only in case of S3 Object Store
}

We should have some helper functions in the go-tools project.

A related discussion and a comment from @victorges:

At some point we should make some helpers in the go-tools lib to parse these URLs and just return the structured data.