-
Notifications
You must be signed in to change notification settings - Fork 0
/
services.go
49 lines (42 loc) · 919 Bytes
/
services.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package morganfield
import (
//"github.com/blackjack/syslog"
)
func Setup_services() {
// Service definitions
/*
Example services
c, err := Create_Service_Definition(
"POST",
"/rest/auth/1/session",
"http",
"localhost.localdomain",
"http",
"dev.localdomain",
".*",
true,
Auth_1_Session_Post_Request{},
Auth_1_Session_Post_Response{})
if err != nil {
syslog.Errf("%v", err)
panic(err)
}
i, err := Create_Service_Definition(
"GET",
"/rest/auth/1/session",
"http",
"localhost.localdomain",
"http",
"dev.localdomain",
".*",
true,
nil,
Auth_1_Session_Get_Response{})
if err != nil {
syslog.Errf("%v", err)
panic(err)
}
Services = append(Services, c)
Services = append(Services, i)
*/
}