(ctx context.Context)
| 82 | } |
| 83 | |
| 84 | func (s *Server) Start(ctx context.Context) error { |
| 85 | if proxy { |
| 86 | return s.StartProxy(ctx) |
| 87 | } |
| 88 | return s.StartMock(ctx) |
| 89 | } |
| 90 | |
| 91 | func (s *Server) StartMock(ctx context.Context) error { |
| 92 | ctx, stopfn := context.WithCancel(ctx) |