postgres

package
v0.0.0-...-46570f8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() (factory pkg.BackendFactory)

Types

type Backend

type Backend struct {
	// contains filtered or unexported fields
}

func NewBackend

func NewBackend(config *Config) (*Backend, error)

func (*Backend) Authenticate

func (backend *Backend) Authenticate(ctx context.Context, username string, password string) bool

func (*Backend) Cleanup

func (backend *Backend) Cleanup() error

func (*Backend) Close

func (backend *Backend) Close()

func (*Backend) CreateUser

func (backend *Backend) CreateUser(name string, password string) error

func (*Backend) GetUsers

func (backend *Backend) GetUsers(ctx context.Context, f ldap.Filter) ([]*pkg.User, error)

func (*Backend) Init

func (backend *Backend) Init() error

func (*Backend) Name

func (backend *Backend) Name() (name string)

type Config

type Config struct {
	pkg.Config
	Url     string            `json:"url"`
	Columns map[string]string `json:"columns"`
}

Jump to

Keyboard shortcuts

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