server

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 12 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 zerolog.Logger) Option

Logger provides a function to set the logger option.

func Monitor added in v2.3.1

func Monitor(val monitoring.MonitorInterface) Option

Monitor provides a function to set the monitor option.

func TLSConfig added in v2.3.1

func TLSConfig(val *tls.Config) Option

TLSConfig provides a function to set the TLS config option.

func Tracer added in v2.3.1

func Tracer(val trace.Tracer) Option

Tracer provides a function to set the tracer option.

type Options

type Options struct {
	Logger    zerolog.Logger
	Config    *config.Config
	TLSConfig *tls.Config
	Monitor   monitoring.MonitorInterface
	Tracer    trace.Tracer
	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