Go
- 21 ответ
- 0 вопросов
18
Вклад в тег
buffer := new(bytes.Buffer)
params := url.Values{}
params.Set("username", "a")
params.Set("password", "b")
buffer.WriteString(params.Encode())
req, _ := http.NewRequest("POST", "", buffer)
req.Header.Set("content-type", "application/x-www-form-urlencoded")
select row_to_json(j.*) from (
select 'string' as parentTableFirstProp, to_json(
(
select to_json(array_agg(r.*)) from (
select s as childTableFirstProp from (select unnest('{another string,yet another string}'::text[]) as s) _
)as r
)
) as parentToChildReference
) as j
[program:you_program_name]
command=/opt/bin/you_program
numprocs=1
autostart=true
autorestart=true
startsecs=10
startretries=5
exitcodes=0,2
stopsignal=TERM
stopwaitsecs=10