CaptainCodeman / clean-go

Clean Architecture Example in Go
279 stars 26 forks source link

why have you been passing Context through the services and repos ? #2

Closed aliuygur closed 7 years ago

aliuygur commented 7 years ago

hello dear,

I have to say that this is great repository. But I am confused about the subject ?

why have you been passing Context through the services and repos ?

CaptainCodeman commented 7 years ago

Context is required to call some remote services (e.g. AppEngine datastore) but even when it isn't, it could be useful for cancelling things, timeouts etc...