You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
395 B

1 month ago
  1. package service
  2. import (
  3. "context"
  4. "practice_Go/api/v1/shows"
  5. )
  6. type (
  7. IShows interface {
  8. GetShowsList(ctx context.Context, req *shows.ShowReq) (res shows.GetShowsListRes, err error)
  9. }
  10. )
  11. var (
  12. localShows IShows
  13. )
  14. func Shows() IShows {
  15. if localShows == nil {
  16. panic("implement not found for interface IShows")
  17. }
  18. return localShows
  19. }
  20. func RegisterShows(i IShows) {
  21. localShows = i
  22. }