summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mattermost/platform/model/team_signup.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/mattermost/platform/model/team_signup.go')
-rw-r--r--vendor/github.com/mattermost/platform/model/team_signup.go40
1 files changed, 0 insertions, 40 deletions
diff --git a/vendor/github.com/mattermost/platform/model/team_signup.go b/vendor/github.com/mattermost/platform/model/team_signup.go
deleted file mode 100644
index e3642044..00000000
--- a/vendor/github.com/mattermost/platform/model/team_signup.go
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
-// See License.txt for license information.
-
-package model
-
-import (
- "encoding/json"
- "fmt"
- "io"
-)
-
-type TeamSignup struct {
- Team Team `json:"team"`
- User User `json:"user"`
- Invites []string `json:"invites"`
- Data string `json:"data"`
- Hash string `json:"hash"`
-}
-
-func TeamSignupFromJson(data io.Reader) *TeamSignup {
- decoder := json.NewDecoder(data)
- var o TeamSignup
- err := decoder.Decode(&o)
- if err == nil {
- return &o
- } else {
- fmt.Println(err)
-
- return nil
- }
-}
-
-func (o *TeamSignup) ToJson() string {
- b, err := json.Marshal(o)
- if err != nil {
- return ""
- } else {
- return string(b)
- }
-}