5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-09-20 20:42:31 +00:00
matterbridge/vendor/github.com/mattermost/platform/einterfaces/account_migration.go

21 lines
601 B
Go
Raw Normal View History

2016-08-15 16:47:31 +00:00
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
package einterfaces
import "github.com/mattermost/platform/model"
type AccountMigrationInterface interface {
MigrateToLdap(fromAuthService string, forignUserFieldNameToMatch string) *model.AppError
}
var theAccountMigrationInterface AccountMigrationInterface
func RegisterAccountMigrationInterface(newInterface AccountMigrationInterface) {
theAccountMigrationInterface = newInterface
}
func GetAccountMigrationInterface() AccountMigrationInterface {
return theAccountMigrationInterface
}