einterfaces

package
v2.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2016 License: AGPL-3.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterLdapInterface

func RegisterLdapInterface(newInterface LdapInterface)

func RegisterOauthProvider

func RegisterOauthProvider(name string, newProvider OauthProvider)

Types

type LdapInterface

type LdapInterface interface {
	DoLogin(team *model.Team, id string, password string) (*model.User, *model.AppError)
}

func GetLdapInterface

func GetLdapInterface() LdapInterface

type OauthProvider

type OauthProvider interface {
	GetIdentifier() string
	GetUserFromJson(data io.Reader) *model.User
	GetAuthDataFromJson(data io.Reader) string
}

func GetOauthProvider

func GetOauthProvider(name string) OauthProvider

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL