1
0
mirror of https://github.com/Chipazawra/rac.git synced 2024-11-21 17:16:44 +02:00
Библиотека для работы с rac от 1С. Предприятие
Go to file
Khmelev Anton d1d1d8de19
Update manager.go
feature(newManager): fill racPath from ManagerOptions
2021-12-24 13:32:14 +03:00
.gitignore init 2021-01-18 11:30:17 +03:00
clusters_test.go fix: tests err fix 2021-01-18 11:43:30 +03:00
clusters.go new: RawRespond export field ParsedRespond 2021-01-25 17:29:02 +03:00
connections_test.go fix: tests err fix 2021-01-18 11:43:30 +03:00
connections.go new: RawRespond export field ParsedRespond 2021-01-25 17:29:02 +03:00
example_test.go fix: example && readme 2021-01-18 11:38:45 +03:00
go.mod init 2021-01-18 11:30:17 +03:00
go.sum init 2021-01-18 11:30:17 +03:00
helpers.go new: RawRespond export field ParsedRespond 2021-01-25 17:29:02 +03:00
infobases_test.go fix: tests err fix 2021-01-18 11:43:30 +03:00
infobases.go new: RawRespond export field ParsedRespond 2021-01-25 17:29:02 +03:00
LICENSE init 2021-01-18 11:30:17 +03:00
logger.go work with logger 2021-01-26 08:41:26 +03:00
manager.go Update manager.go 2021-12-24 13:32:14 +03:00
marshaler.go init 2021-01-18 11:30:17 +03:00
options.go init 2021-01-18 11:30:17 +03:00
parser_others.go rename suffics for others 2021-01-26 08:08:17 +03:00
parser_windows.go Rename parser_window.go to parser_windows.go 2021-01-25 19:54:51 +03:00
process_test.go init 2021-01-18 11:30:17 +03:00
process.go init 2021-01-18 11:30:17 +03:00
README.md fix: example && readme 2021-01-18 11:38:45 +03:00
responde.go init 2021-01-18 11:30:17 +03:00
runner.go work with logger 2021-01-26 08:41:26 +03:00
sessions_test.go init 2021-01-18 11:30:17 +03:00
sessions.go new: RawRespond export field ParsedRespond 2021-01-25 17:29:02 +03:00
unmarshaler_test.go init 2021-01-18 11:30:17 +03:00
unmarshaler.go init 2021-01-18 11:30:17 +03:00
utils.go init 2021-01-18 11:30:17 +03:00

rac

Исполнитель rac от 1С Предприятие

Пример использования


package main

import (
	"github.com/k0kubun/pp"
	"github.com/v8platform/rac"
	"log"
)

func main() {

	manager, err := rac.NewManager("localhost")

	if err != nil {
		log.Fatal(err)
	}

	clusters, err := manager.Clusters(rac.ClustersList{})

	if err != nil {
		log.Fatal(err)
	}

	pp.Println(clusters)

	infobases, err := manager.InfobasesList()

	if err != nil {
		log.Fatal(err)
	}

	pp.Println(infobases)

}