config

package
v0.0.0-...-eab1977 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: LGPL-2.1 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Storage struct {
		ConnString string `toml:"conn_string"`
	} `toml:"storage"`

	Http struct {
		Address string `toml:"address"`
	} `toml:"http"`

	LDAP struct {
		Address    string `toml:"address"`
		BindBaseDN string `toml:"bind_base_dn"`

		TLS struct {
			Enable     bool   `toml:"enable"`
			TLSAddress string `toml:"tls_address"`
			CertPath   string `toml:"cert_path"`
			KeyPath    string `toml:"key_path"`
		} `toml:"tls"`

		Init struct {
			InitScripts []struct {
				DN            string   `toml:"dn"`
				ObjectClasses []string `toml:"object_classes"`
			} `toml:"run_simple_init_scripts"`
			InitAdmin struct {
				DN            string   `toml:"dn"`
				ObjectClasses []string `toml:"object_classes"`
				UserPassword  string   `toml:"user_password"`
			} `toml:"run_init_admin"`
		} `toml:"init"`
	} `toml:"ldap"`

	FullTextSearch struct {
		IndexFolder string `toml:"index_folder"`
	} `toml:"full_text_search"`
}

type Container

type Container struct {
	GldapServer *gldap.Server
	BleveIndex  bleve.Index
}

func (*Container) Stop

func (this *Container) Stop()

Jump to

Keyboard shortcuts

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