model

package
v0.0.0-...-eaa9f7c Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ProgramName = "go389"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

type AuthHandler interface {
	Auth(userName string, backendPasswd string, checkPasswd string) error
}

type BackendHandler

type BackendHandler interface {
	ldap.Binder
	ldap.Searcher
	ldap.Closer
}

type Base

type Base struct {
	Type string
}

type BaseAuth

type BaseAuth struct {
	Base
}

type BaseBackend

type BaseBackend struct {
	Base
	BaseDN string
}

type BaseCfg

type BaseCfg struct {
	Base
}

type BaseServer

type BaseServer struct {
	Base
}

type CfgHandler

type CfgHandler interface {
	GetServer() string
	GetBackend() string
	GetServerType(name string) string
	GetServerCfg(name string, x interface{})
	GetBackendType(name string) string
	GetBackendCfg(name string, x interface{})
	GetAuthType(name string) string
	GetAuthCfg(name string, x interface{})
}

type HashArgs

type HashArgs struct {
	Algo  string `arg:"-a,--algo" default:"sha256"`
	Value string `arg:"-v,--value"`
}

type LogHandler

type LogHandler interface {
	Error(data ...interface{})
	Warn(data ...interface{})
	Info(data ...interface{})
	Debug(data ...interface{})
}

type ServerArgs

type ServerArgs struct {
	Config string `arg:"-c,--config,required"`
}

type ServerHandler

type ServerHandler interface {
	Start(async bool) error
}

Jump to

Keyboard shortcuts

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