8000 Add support for context · Issue #146 · goamz/goamz · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for context #146

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

Open
fharding1 opened this issue Jan 2, 2019 · 0 comments
Open

Add support for context #146

fharding1 opened this issue Jan 2, 2019 · 0 comments

Comments

@fharding1
Copy link

There should be a context version of each Bucket method that makes an HTTP request.

For example:
func (b *Bucket) Del(path string) error
should be supplemented with:
func (b *Bucket) DelContext(ctx context.Context, path string) error

See the database/sql package for an example of this:

func (db *DB) Query(query string, args ...interface{}) (*Rows, error)
func (db *DB) QueryContext(ctx context.Context, query string, args ...interface{}) (*Rows, error)
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

1 participant
0