[go-nuts] Scope/Context in struct and interfaces design questions

2017-09-27 Thread goon12
I think the authorization/access to a todolist should be handled higher up in the application level instead of the persistence layer. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from i

[go-nuts] Scope/Context in struct and interfaces design questions

2017-09-26 Thread Denys Koch
Hi all! I need an gopher advice. What is more idiomatic and do you see any problems with my solutions? Problem: I have a repository(persistence layer) for TodoLists. TodoLists usually belongs to a user. My system also have super-user/admin interface which can access all TodoLists. I can imagin