storage

package
v0.0.0-...-7923462 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

client struct

func NewClient

func NewClient(options Options, authClient validator.Client) *Client

func (*Client) Close

func (c *Client) Close() error

graceful closer

func (*Client) GetEntry

func (c *Client) GetEntry(username string) (*ldap.Entry, error)

get user entry by username

func (*Client) Init

func (c *Client) Init() error

initialization the client

func (*Client) ListenClose

func (c *Client) ListenClose() <-chan bool

get close listener

type Entries

type Entries map[string]*ldap.Entry

local entries storage

type Options

type Options struct {
	UpdateInterval time.Duration
	ConnectRetry   int
	LdapOptions    ldap.Options
}

storage client options

Jump to

Keyboard shortcuts

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