N
N
NikolayZakharov2020-11-12 13:41:41
go
NikolayZakharov, 2020-11-12 13:41:41

How to correctly connect the postgresql plugin as a store in the egts-protocol project?

I'm trying to build https://github.com/kuznetsovin/egts-protocol as a whole after build-receiver.sh it starts, but:
When I try to specify in the settings
[store]
plugin = "pg.so" (or "postgresql.so" )
host = "xxxx"
PORT = "5432"

says: main.go:35 FATAL - Failed to load repository plugin: plugin.Open("pg.so"): realpath failed

when trying to
$ go build postgresql.go
says:
# command-line-arguments
runtime.main_main f: function main is undeclared in the main package

I intuitively feel that I need to do something from postgresql.go > pg.so (or postgresql.so) but how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2020-11-12
@R0dger

cd receiver/store/postgresql/
go build -linkshared -buildmode=plugin postgresql.go

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question