wzlib_database

package
v0.0.0-...-2af49ae Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 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 WzDBH

type WzDBH struct {
	wzlib_logger.WzLogger
	// contains filtered or unexported fields
}

func NewWzDBH

func NewWzDBH() *WzDBH

func (*WzDBH) Close

func (dbh *WzDBH) Close()

Close database connection

func (*WzDBH) GetControllerAPI

func (dbh *WzDBH) GetControllerAPI() *wzlib_database_controller.WzControllerDbh

GetControllerAPI returns API for controller's interaction

func (*WzDBH) GetWorkerAPI

func (dbh *WzDBH) GetWorkerAPI() *wzlib_database_worker.WzWorkerDbh

GetWorkerAPI returns API for worker's interaction

func (*WzDBH) Open

func (dbh *WzDBH) Open()

Open database connection

func (*WzDBH) SetDbName

func (dbh *WzDBH) SetDbName(name string) *WzDBH

SetDbName sets a name of the database to connect

func (*WzDBH) SetHost

func (dbh *WzDBH) SetHost(host string) *WzDBH

SetHost sets a host to connect

func (*WzDBH) SetPort

func (dbh *WzDBH) SetPort(port int) *WzDBH

SetPort sets a port to connect

func (*WzDBH) SetSSLConf

func (dbh *WzDBH) SetSSLConf(rootcert string, key string, sslcert string) *WzDBH

SetSSLConf puts the ssl configuration

func (*WzDBH) SetUser

func (dbh *WzDBH) SetUser(user string) *WzDBH

SetUser sets user of the database

func (*WzDBH) WithControllerAPI

func (dbh *WzDBH) WithControllerAPI() *WzDBH

WithControllerAPI will initialise controller API and will nil worker API

func (*WzDBH) WithWorkerAPI

func (dbh *WzDBH) WithWorkerAPI() *WzDBH

WithWorkerAPI will initialise worker API and will nil controller API

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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