diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-12-08 13:38:43 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-12-16 17:30:15 -0500 |
commit | 58358ddd7cd0152bf16a7326e1d595524fb51246 (patch) | |
tree | 350cd462f9b530529e0f098fa1d458c3a36abd4a /einterfaces/ldap.go | |
parent | 4f881046bf2a4c74fb44d71e2e78826c70719a8c (diff) | |
download | chat-58358ddd7cd0152bf16a7326e1d595524fb51246.tar.gz chat-58358ddd7cd0152bf16a7326e1d595524fb51246.tar.bz2 chat-58358ddd7cd0152bf16a7326e1d595524fb51246.zip |
Some refactoring
Diffstat (limited to 'einterfaces/ldap.go')
-rw-r--r-- | einterfaces/ldap.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/einterfaces/ldap.go b/einterfaces/ldap.go new file mode 100644 index 000000000..d4bfadc21 --- /dev/null +++ b/einterfaces/ldap.go @@ -0,0 +1,22 @@ +// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +package einterfaces + +import ( + "github.com/mattermost/platform/model" +) + +type LdapInterface interface { + DoLogin(team *model.Team, id string, password string) (*model.User, *model.AppError) +} + +var theLdapInterface LdapInterface + +func RegisterLdapInterface(newInterface LdapInterface) { + theLdapInterface = newInterface +} + +func GetLdapInterface() LdapInterface { + return theLdapInterface +} |