server

package
v2.1.0-etecs.3 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LdapSvc

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

func NewServer

func NewServer(opts ...Option) (*LdapSvc, error)

func (*LdapSvc) ListenAndServe

func (s *LdapSvc) ListenAndServe() error

ListenAndServe listens on the TCP network address s.c.LDAP.Listen

func (*LdapSvc) ListenAndServeTLS

func (s *LdapSvc) ListenAndServeTLS() error

ListenAndServeTLS listens on the TCP network address s.c.LDAPS.Listen

func (*LdapSvc) Shutdown

func (s *LdapSvc) Shutdown()

Shutdown ends listeners by sending true to the ldap serves quit channel

type Option

type Option func(o *Options)

Option defines a single option function.

func Config

func Config(val *config.Config) Option

Config provides a function to set the config option.

func Context

func Context(val context.Context) Option

Context provides a function to set the context option.

func Logger

func Logger(val *zap.Logger) Option

Logger provides a function to set the logger option.

type Options

type Options struct {
	Logger  *zap.Logger
	Config  *config.Config
	Context context.Context
}

Options defines the available options for this package.

Jump to

Keyboard shortcuts

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