Documentation
¶
Index ¶
- Variables
- func Resetuniq()
- func Uniq8() byte
- func Uniq8odd() byte
- func Uniq16() uint16
- func Uniq16odd() uint16
- type AAbortRQ
- type AAssociationAC
- type AAssociationRJ
- type AAssociationRQ
- type AReleaseRP
- type AReleaseRQ
- type AsyncOperationWindow
- type Destination
- type MaximumSubLength
- type PDUService
- type PDV
- type PDataTF
- type PresentationContext
- type PresentationContextAccept
- type RoleSelect
- type UIDItem
- type UserInformation
Constants ¶
This section is empty.
Variables ¶
var PermanentRejectReasons map[byte]string = map[byte]string{
1: "No reason given",
2: "Application context not supported",
3: "Calling AE not recognized",
7: "Called AE not recognized",
}
PermanentRejectReasons - Permanent association reject reasons
var TransientRejectReasons map[byte]string = map[byte]string{
1: "Temporary congestion",
2: "Local limit exceeded",
}
TransientRejectReasons - Transient association reject reasons
Functions ¶
Types ¶
type AAbortRQ ¶
type AAbortRQ interface {
Size() uint32
Write(rw *bufio.ReadWriter) error
Read(ms media.MemoryStream) (err error)
ReadDynamic(ms media.MemoryStream) (err error)
}
AAbortRQ - AAbortRQ
type AAssociationAC ¶
type AAssociationAC interface {
GetAppContext() UIDItem
SetAppContext(context UIDItem)
GetCallingAE() string
SetCallingAE(AET string)
GetCalledAE() string
SetCalledAE(AET string)
AddPresContextAccept(context PresentationContextAccept)
GetPresContextAccepts() []PresentationContextAccept
GetUserInformation() UserInformation
SetUserInformation(UserInfo UserInformation)
GetMaxSubLength() uint32
SetMaxSubLength(length uint32)
Size() uint32
Write(rw *bufio.ReadWriter) error
Read(ms media.MemoryStream) (err error)
ReadDynamic(ms media.MemoryStream) (err error)
}
AAssociationAC AAssociationAC
func NewAAssociationAC ¶
func NewAAssociationAC() AAssociationAC
NewAAssociationAC NewAAssociationAC
type AAssociationRJ ¶
type AAssociationRJ interface {
GetReason() string
Set(result byte, reason byte)
Size() uint32
Write(rw *bufio.ReadWriter) error
Read(ms media.MemoryStream) (err error)
ReadDynamic(ms media.MemoryStream) (err error)
}
AAssociationRJ association reject struct
func NewAAssociationRJ ¶
func NewAAssociationRJ() AAssociationRJ
NewAAssociationRJ creates an association reject
type AAssociationRQ ¶
type AAssociationRQ interface {
GetAppContext() UIDItem
SetAppContext(context UIDItem)
GetCallingAE() string
SetCallingAE(AET string)
GetCalledAE() string
SetCalledAE(AET string)
GetPresContexts() []PresentationContext
GetUserInformation() UserInformation
SetUserInformation(userInfo UserInformation)
GetMaxSubLength() uint32
SetMaxSubLength(length uint32)
GetImpClass() UIDItem
SetImpClassUID(uid string)
SetImpVersionName(name string)
Size() uint32
Write(rw *bufio.ReadWriter) error
Read(ms media.MemoryStream) error
AddPresContexts(presentationContext PresentationContext)
}
AAssociationRQ - AAssociationRQ
func NewAAssociationRQ ¶
func NewAAssociationRQ() AAssociationRQ
NewAAssociationRQ - NewAAssociationRQ
type AReleaseRP ¶
type AReleaseRP interface {
Size() uint32
Write(rw *bufio.ReadWriter) error
Read(ms media.MemoryStream) (err error)
ReadDynamic(ms media.MemoryStream) (err error)
}
AReleaseRP - AReleaseRP
type AReleaseRQ ¶
type AReleaseRQ interface {
Size() uint32
Write(rw *bufio.ReadWriter) error
Read(ms media.MemoryStream) (err error)
ReadDynamic(ms media.MemoryStream) (err error)
}
AReleaseRQ AReleaseRQ
type AsyncOperationWindow ¶
type AsyncOperationWindow interface {
Size() uint16
Read(ms media.MemoryStream) (err error)
ReadDynamic(ms media.MemoryStream) (err error)
}
AsyncOperationWindow - AsyncOperationWindow
func NewAsyncOperationWindow ¶
func NewAsyncOperationWindow() AsyncOperationWindow
NewAsyncOperationWindow - NewAsyncOperationWindow
type Destination ¶
type Destination struct {
ID string
Name string
HostName string
CalledAE string
CallingAE string
Port int
IsCStore bool
IsCFind bool
IsCMove bool
IsMWL bool
IsTLS bool
Anonymize bool
}
Destination - a DICOM destination
type MaximumSubLength ¶
type MaximumSubLength interface {
GetMaximumLength() uint32
SetMaximumLength(length uint32)
Size() uint16
Write(rw *bufio.ReadWriter) bool
Read(ms media.MemoryStream) (err error)
ReadDynamic(ms media.MemoryStream) (err error)
}
MaximumSubLength - MaximumSubLength
func NewMaximumSubLength ¶
func NewMaximumSubLength() MaximumSubLength
NewMaximumSubLength - NewMaximumSubLength
type PDUService ¶
type PDUService interface {
GetTransferSyntax(pcid byte) *transfersyntax.TransferSyntax
SetTimeout(timeout int)
Connect(IP string, Port string) error
Close()
GetAAssociationRQ() AAssociationRQ
GetCalledAE() string
GetCallingAE() string
SetCalledAE(calledAE string)
SetCallingAE(callingAE string)
SetConn(rw *bufio.ReadWriter)
NextPDU() (media.DcmObj, error)
AddPresContexts(presentationContext PresentationContext)
GetPresentationContextID() byte
SetOnAssociationRequest(f func(request AAssociationRQ) bool)
Write(DCO media.DcmObj, SOPClass string, ItemType byte) error
// contains filtered or unexported methods
}
PDUService - struct for PDUService
func NewPDUService ¶
func NewPDUService() PDUService
NewPDUService - creates a pointer to PDUService
type PDataTF ¶
type PDataTF struct {
ItemType byte
Reserved1 byte
Length uint32
Buffer media.BufData
BlockSize uint32
MsgStatus uint32
Endian uint32
PresentationContextID byte
MsgHeader byte
// contains filtered or unexported fields
}
PDataTF - PDataTF
func (*PDataTF) ReadDynamic ¶
func (pd *PDataTF) ReadDynamic(ms media.MemoryStream) (err error)
ReadDynamic - ReadDynamic
type PresentationContext ¶
type PresentationContext interface {
GetPresentationContextID() byte
SetPresentationContextID(id byte)
GetAbstractSyntax() UIDItem
SetAbstractSyntax(Abst string)
AddTransferSyntax(Tran string)
GetTransferSyntaxes() []UIDItem
Size() uint16
Write(rw *bufio.ReadWriter) error
Read(ms media.MemoryStream) error
ReadDynamic(ms media.MemoryStream) error
}
PresentationContext - PresentationContext
func NewPresentationContext ¶
func NewPresentationContext() PresentationContext
NewPresentationContext - NewPresentationContext
type PresentationContextAccept ¶
type PresentationContextAccept interface {
GetPresentationContextID() byte
SetPresentationContextID(id byte)
GetResult() byte
SetResult(result byte)
GetTrnSyntax() UIDItem
Size() uint16
GetAbstractSyntax() UIDItem
SetAbstractSyntax(Abst string)
SetTransferSyntax(Tran string)
Write(rw *bufio.ReadWriter) (err error)
Read(ms media.MemoryStream) (err error)
ReadDynamic(ms media.MemoryStream) (err error)
}
PresentationContextAccept accepted presentation context
func NewPresentationContextAccept ¶
func NewPresentationContextAccept() PresentationContextAccept
NewPresentationContextAccept creates a PresentationContextAccept
type RoleSelect ¶
type RoleSelect interface {
Size() uint16
Write(rw *bufio.ReadWriter) bool
Read(ms media.MemoryStream) (err error)
ReadDynamic(ms media.MemoryStream) (err error)
}
RoleSelect - RoleSelect
type UIDItem ¶
type UIDItem interface {
GetLength() uint16
GetReserved() byte
GetSize() uint16
GetType() byte
GetUID() string
SetReserved(reserve byte)
SetLength(length uint16)
SetType(itemType byte)
SetUID(uid string)
Write(rw *bufio.ReadWriter) error
Read(ms media.MemoryStream) (err error)
ReadDynamic(ms media.MemoryStream) (err error)
}
UIDitem - UIDitem
func NewUIDItem ¶
type UserInformation ¶
type UserInformation interface {
GetItemType() byte
SetItemType(t byte)
GetMaxSubLength() MaximumSubLength
SetMaxSubLength(length MaximumSubLength)
Size() uint16
GetImpClass() UIDItem
SetImpClassUID(name string)
GetImpVersion() UIDItem
SetImpVersionName(name string)
Write(rw *bufio.ReadWriter) (err error)
Read(ms media.MemoryStream) (err error)
ReadDynamic(ms media.MemoryStream) (err error)
}
UserInformation - UserInformation
func NewUserInformation ¶
func NewUserInformation() UserInformation
NewUserInformation - NewUserInformation