diff options
author | Wim <wim@42.be> | 2017-03-25 21:04:10 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-03-25 21:04:10 +0100 |
commit | eacb1c1771cec126593f99f50aca4584236475fa (patch) | |
tree | 5ae7d8271c28e378d1d5ca2d0e1e243717a9bdbe /vendor/github.com/mattermost/platform/model/gitlab | |
parent | 07fd825349e8b7e86f8afb3843cb8e2c2afc7c74 (diff) | |
download | matterbridge-msglm-eacb1c1771cec126593f99f50aca4584236475fa.tar.gz matterbridge-msglm-eacb1c1771cec126593f99f50aca4584236475fa.tar.bz2 matterbridge-msglm-eacb1c1771cec126593f99f50aca4584236475fa.zip |
Update vendor (mattermost)
Diffstat (limited to 'vendor/github.com/mattermost/platform/model/gitlab')
-rw-r--r-- | vendor/github.com/mattermost/platform/model/gitlab/gitlab.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/github.com/mattermost/platform/model/gitlab/gitlab.go b/vendor/github.com/mattermost/platform/model/gitlab/gitlab.go index e189ee68..270d62d8 100644 --- a/vendor/github.com/mattermost/platform/model/gitlab/gitlab.go +++ b/vendor/github.com/mattermost/platform/model/gitlab/gitlab.go @@ -65,6 +65,15 @@ func gitLabUserFromJson(data io.Reader) *GitLabUser { } } +func (glu *GitLabUser) ToJson() string { + b, err := json.Marshal(glu) + if err != nil { + return "" + } else { + return string(b) + } +} + func (glu *GitLabUser) IsValid() bool { if glu.Id == 0 { return false |