aboutsummaryrefslogtreecommitdiff
path: root/vendor/gopkg.in/segmentio/analytics-go.v3/identify.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gopkg.in/segmentio/analytics-go.v3/identify.go')
-rw-r--r--vendor/gopkg.in/segmentio/analytics-go.v3/identify.go31
1 files changed, 0 insertions, 31 deletions
diff --git a/vendor/gopkg.in/segmentio/analytics-go.v3/identify.go b/vendor/gopkg.in/segmentio/analytics-go.v3/identify.go
deleted file mode 100644
index 96cbda0..0000000
--- a/vendor/gopkg.in/segmentio/analytics-go.v3/identify.go
+++ /dev/null
@@ -1,31 +0,0 @@
-package analytics
-
-import "time"
-
-// This type represents object sent in an identify call as described in
-// https://segment.com/docs/libraries/http/#identify
-type Identify struct {
- // This field is exported for serialization purposes and shouldn't be set by
- // the application, its value is always overwritten by the library.
- Type string `json:"type,omitempty"`
-
- MessageId string `json:"messageId,omitempty"`
- AnonymousId string `json:"anonymousId,omitempty"`
- UserId string `json:"userId,omitempty"`
- Timestamp time.Time `json:"timestamp,omitempty"`
- Context *Context `json:"context,omitempty"`
- Traits Traits `json:"traits,omitempty"`
- Integrations Integrations `json:"integrations,omitempty"`
-}
-
-func (msg Identify) validate() error {
- if len(msg.UserId) == 0 && len(msg.AnonymousId) == 0 {
- return FieldError{
- Type: "analytics.Identify",
- Name: "UserId",
- Value: msg.UserId,
- }
- }
-
- return nil
-}