Example #1
0
File: bz.go Project: robxu9/bugzini
func Bz() (*bugzilla.Conn, error) {
	if bz != nil {
		return bz, nil
	}

	var err error

	bz, err = bugzilla.Dial(bugzilla.Address{
		Host:   options.Bugzilla.Host,
		Secure: options.Bugzilla.Secure,
	})

	return bz, err
}
Example #2
0
func Bz() (*bugzilla.Conn, error) {
	if bz != nil {
		return bz, nil
	}

	var err error

	bz, err = bugzilla.Dial(bugzilla.Address{
		Host:   options.Bugzilla.Host,
		Secure: options.Bugzilla.Secure,
	})

	loadSavedCookies(bz.Client)

	return bz, err
}