aboutsummaryrefslogtreecommitdiff
path: root/acse/acse.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-10-05 18:32:50 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-10-05 18:32:50 +0200
commiteea7dedabcfcb7f59d344456da7be1e42cdb20e4 (patch)
tree69bb03920514d72c1eef97b14de13714dbbb05f6 /acse/acse.go
parentaf6018ecb5c0e6aafd1cb9f2ab5ae91142e118bb (diff)
Rename to lowercase
Diffstat (limited to 'acse/acse.go')
-rw-r--r--acse/acse.go65
1 files changed, 65 insertions, 0 deletions
diff --git a/acse/acse.go b/acse/acse.go
new file mode 100644
index 0000000..8429b83
--- /dev/null
+++ b/acse/acse.go
@@ -0,0 +1,65 @@
+package acse
+
+// 2.2.0.0.1
+
+type ObjectIdentifier []int // asn1.ObjectIdentifier
+
+// A-ASSOCIATE Request
+// Application Constructed implicit 0
+type AARQ struct {
+ ProtocolVersion Version // 0 implicit BitString
+ ApplicationContextName ObjectIdentifier // 1
+ UserInformation interface{} // 30 implicit
+}
+
+type Version byte
+
+const (
+ Version1 Version = iota
+)
+
+// A-ASSOCIATE Result (Result == 0)
+// A-REJECT (Result == 1)
+// Application Constructed implicit 1
+type AARE struct {
+ ProtocolVersion Version // 0 implicit BitString
+ ApplicationContextName ObjectIdentifier // 1
+ Result Result // 2
+ ResultSourceDiagnostic AcseServiceUser // 3
+ UserInformation interface{} // 30 implicit
+}
+
+type Result int
+
+const (
+ Accepted Result = iota
+ RejectedPermanent
+)
+
+type AcseServiceUser int
+
+const (
+ Null AcseServiceUser = iota
+ NoReasonGiven
+)
+
+// A-RELEASE Request
+// Application Constructed implicit 2
+type RLRQ struct{}
+
+// A-RELEASE Result
+// Application Constructed implicit 3
+type RLRE struct{}
+
+// A-ABORT
+// Application Constructed implicit 4
+type ABRT struct {
+ AbortSource AbortSource // 0 implicit
+}
+
+type AbortSource int
+
+const (
+ ServiceUser AbortSource = iota
+ ServiceProvider
+)