File: ps_model.go

package info (click to toggle)
golang-github-wenerme-astgo 0.0~git20230926.1b5bc38-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 612 kB
  • sloc: makefile: 16
file content (52 lines) | stat: -rw-r--r-- 1,173 bytes parent folder | download
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
50
51
52
package astdb

import "database/sql"

type PsAor struct {
	ID      string `gorm:"primary_key"`
	Contact sql.NullString
	// 3600
	DefaultExpiration   int
	MinimumExpiration   int
	MaximumExpiration   int
	Mailboxes           sql.NullString
	MaxContacts         int
	QualifyFrequency    int
	QualifyTimeout      float64
	AuthenticateQualify YesNo
	OutboundProxy       sql.NullString
	SupportPath         YesNo
	VoicemailExtension  sql.NullString
}

type PsContact struct {
	ID               string `gorm:"primary_key"`
	URI              string
	ExpirationTime   string
	QualifyFrequency int
}
type PsDomainAlias struct {
	ID     string `gorm:"primary_key"`
	Domain string
}
type PsEndpointIdIp struct {
	ID       string `gorm:"primary_key"`
	Endpoint string
	Match    string
}
type PsAuth struct {
	ID string `gorm:"primary_key"`
	// userpass
	AuthType      string
	NonceLifetime sql.NullString
	Md5Cred       sql.NullString
	Username      string
	Password      string
	Realm         sql.NullString
}
type PsGlobal struct {
	ID                      string `gorm:"primary_key"`
	MaxForwards             *int
	UserAgent               *string
	DefaultOutboundEndpoint *string
}