Organize messy imports
Marcus Olsson
7 years ago
2 | 2 |
import (
|
3 | 3 |
"time"
|
4 | 4 |
|
|
5 |
"golang.org/x/net/context"
|
|
6 |
|
5 | 7 |
"github.com/go-kit/kit/endpoint"
|
6 | 8 |
"github.com/go-kit/kit/examples/shipping/cargo"
|
7 | 9 |
"github.com/go-kit/kit/examples/shipping/location"
|
8 | |
"golang.org/x/net/context"
|
9 | 10 |
)
|
10 | 11 |
|
11 | 12 |
type bookCargoRequest struct {
|
2 | 2 |
import (
|
3 | 3 |
"time"
|
4 | 4 |
|
5 | |
"github.com/go-kit/kit/log"
|
6 | |
|
7 | 5 |
"github.com/go-kit/kit/examples/shipping/cargo"
|
8 | 6 |
"github.com/go-kit/kit/examples/shipping/location"
|
|
7 |
"github.com/go-kit/kit/log"
|
9 | 8 |
)
|
10 | 9 |
|
11 | 10 |
type loggingService struct {
|
5 | 5 |
"net/http"
|
6 | 6 |
"time"
|
7 | 7 |
|
|
8 |
"github.com/gorilla/mux"
|
|
9 |
"golang.org/x/net/context"
|
|
10 |
|
|
11 |
"github.com/go-kit/kit/examples/shipping/cargo"
|
|
12 |
"github.com/go-kit/kit/examples/shipping/location"
|
8 | 13 |
kitlog "github.com/go-kit/kit/log"
|
9 | 14 |
kithttp "github.com/go-kit/kit/transport/http"
|
10 | |
"golang.org/x/net/context"
|
11 | |
|
12 | |
"github.com/gorilla/mux"
|
13 | |
"github.com/go-kit/kit/examples/shipping/cargo"
|
14 | |
"github.com/go-kit/kit/examples/shipping/location"
|
15 | 15 |
)
|
16 | 16 |
|
17 | 17 |
// MakeHandler returns a handler for the booking service.
|
2 | 2 |
import (
|
3 | 3 |
"time"
|
4 | 4 |
|
|
5 |
"golang.org/x/net/context"
|
|
6 |
|
5 | 7 |
"github.com/go-kit/kit/endpoint"
|
6 | 8 |
"github.com/go-kit/kit/examples/shipping/cargo"
|
7 | 9 |
"github.com/go-kit/kit/examples/shipping/location"
|
8 | 10 |
"github.com/go-kit/kit/examples/shipping/voyage"
|
9 | |
"golang.org/x/net/context"
|
10 | 11 |
)
|
11 | 12 |
|
12 | 13 |
type registerIncidentRequest struct {
|
2 | 2 |
import (
|
3 | 3 |
"time"
|
4 | 4 |
|
5 | |
"github.com/go-kit/kit/log"
|
6 | |
|
7 | 5 |
"github.com/go-kit/kit/examples/shipping/cargo"
|
8 | 6 |
"github.com/go-kit/kit/examples/shipping/location"
|
9 | 7 |
"github.com/go-kit/kit/examples/shipping/voyage"
|
|
8 |
"github.com/go-kit/kit/log"
|
10 | 9 |
)
|
11 | 10 |
|
12 | 11 |
type loggingService struct {
|
4 | 4 |
"net/http"
|
5 | 5 |
"time"
|
6 | 6 |
|
|
7 |
"github.com/gorilla/mux"
|
7 | 8 |
"golang.org/x/net/context"
|
8 | 9 |
|
9 | |
kitlog "github.com/go-kit/kit/log"
|
10 | |
kithttp "github.com/go-kit/kit/transport/http"
|
11 | |
|
12 | |
"github.com/gorilla/mux"
|
13 | 10 |
"github.com/go-kit/kit/examples/shipping/cargo"
|
14 | 11 |
"github.com/go-kit/kit/examples/shipping/location"
|
15 | 12 |
"github.com/go-kit/kit/examples/shipping/voyage"
|
|
13 |
kitlog "github.com/go-kit/kit/log"
|
|
14 |
kithttp "github.com/go-kit/kit/transport/http"
|
16 | 15 |
)
|
17 | 16 |
|
18 | 17 |
// MakeHandler returns a handler for the handling service.
|
5 | 5 |
"net/url"
|
6 | 6 |
"time"
|
7 | 7 |
|
|
8 |
"golang.org/x/net/context"
|
|
9 |
|
8 | 10 |
"github.com/go-kit/kit/circuitbreaker"
|
9 | 11 |
"github.com/go-kit/kit/endpoint"
|
10 | 12 |
"github.com/go-kit/kit/examples/shipping/cargo"
|
11 | 13 |
"github.com/go-kit/kit/examples/shipping/location"
|
12 | 14 |
"github.com/go-kit/kit/examples/shipping/voyage"
|
13 | |
"golang.org/x/net/context"
|
14 | |
|
15 | 15 |
kithttp "github.com/go-kit/kit/transport/http"
|
16 | 16 |
)
|
17 | 17 |
|
0 | 0 |
package tracking
|
1 | 1 |
|
2 | 2 |
import (
|
|
3 |
"golang.org/x/net/context"
|
|
4 |
|
3 | 5 |
"github.com/go-kit/kit/endpoint"
|
4 | |
"golang.org/x/net/context"
|
5 | 6 |
)
|
6 | 7 |
|
7 | 8 |
type trackCargoRequest struct {
|
4 | 4 |
"errors"
|
5 | 5 |
"net/http"
|
6 | 6 |
|
|
7 |
"github.com/gorilla/mux"
|
7 | 8 |
"golang.org/x/net/context"
|
8 | 9 |
|
|
10 |
"github.com/go-kit/kit/examples/shipping/cargo"
|
9 | 11 |
kitlog "github.com/go-kit/kit/log"
|
10 | 12 |
kithttp "github.com/go-kit/kit/transport/http"
|
11 | |
"github.com/gorilla/mux"
|
12 | |
"github.com/go-kit/kit/examples/shipping/cargo"
|
13 | 13 |
)
|
14 | 14 |
|
15 | 15 |
// MakeHandler returns a handler for the tracking service.
|