OSDN Git Service

modify ci
[bytom/vapor.git] / vendor / github.com / go-kit / kit / examples / shipping / location / location.go
diff --git a/vendor/github.com/go-kit/kit/examples/shipping/location/location.go b/vendor/github.com/go-kit/kit/examples/shipping/location/location.go
deleted file mode 100644 (file)
index ee2e5d4..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-// Package location provides the Location aggregate.
-package location
-
-import (
-       "errors"
-)
-
-// UNLocode is the United Nations location code that uniquely identifies a
-// particular location.
-//
-// http://www.unece.org/cefact/locode/
-// http://www.unece.org/cefact/locode/DocColumnDescription.htm#LOCODE
-type UNLocode string
-
-// Location is a location is our model is stops on a journey, such as cargo
-// origin or destination, or carrier movement endpoints.
-type Location struct {
-       UNLocode UNLocode
-       Name     string
-}
-
-// ErrUnknown is used when a location could not be found.
-var ErrUnknown = errors.New("unknown location")
-
-// Repository provides access a location store.
-type Repository interface {
-       Find(locode UNLocode) (*Location, error)
-       FindAll() []*Location
-}