From eea7dedabcfcb7f59d344456da7be1e42cdb20e4 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 5 Oct 2015 18:32:50 +0200 Subject: Rename to lowercase --- acse/acse.go | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 acse/acse.go (limited to 'acse/acse.go') 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 +) -- cgit v1.2.3