Documentation ¶
Index ¶
Constants ¶
View Source
const ( Dedicated = ServiceHandler("dedicated") Pooled = ServiceHandler("pooled") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressList ¶
type AddressList struct { Options ListOptions Addresses []Address }
func (AddressList) IsZero ¶
func (al AddressList) IsZero() bool
func (*AddressList) Parse ¶
func (al *AddressList) Parse(ss []Statement) error
type ConnectData ¶
type ConnectData struct { FailoverMode FailoverMode ServiceName, SID string GlobalName, InstanceName, RDBDatabase string Hs bool Server ServiceHandler }
func (ConnectData) IsZero ¶
func (cd ConnectData) IsZero() bool
func (*ConnectData) Parse ¶
func (cd *ConnectData) Parse(ss []Statement) error
type Description ¶
type Description struct { TCPKeepAlive bool SDU int Bufs BufSizes Options ListOptions Addresses []Address AddressList AddressList ConnectData ConnectData TypeOfService string Security Security }
func (Description) IsZero ¶
func (d Description) IsZero() bool
func (*Description) Parse ¶
func (d *Description) Parse(ss []Statement) error
type DescriptionList ¶
type DescriptionList struct { Options ListOptions Descriptions []Description TypeOfService string }
func (*DescriptionList) Parse ¶
func (cd *DescriptionList) Parse(ss []Statement) error
type FailoverMode ¶
func (FailoverMode) IsZero ¶
func (fo FailoverMode) IsZero() bool
func (*FailoverMode) Parse ¶
func (fo *FailoverMode) Parse(ss []Statement) error
type ListOptions ¶
type ListOptions struct {
Failover, LoadBalance, SourceRoute bool
}
func (ListOptions) IsZero ¶
func (lo ListOptions) IsZero() bool
func (*ListOptions) Parse ¶
func (lo *ListOptions) Parse(ss []Statement) error
type ServiceHandler ¶
type ServiceHandler string
type Statement ¶
Statement can Parse and Print Oracle connection descriptor (DESRIPTION=(ADDRESS=...)) format. It can be used to parse or build a SID.
See https://docs.oracle.com/cd/B28359_01/network.111/b28317/tnsnames.htm#NETRF271
func ParseConnDescription ¶
Click to show internal directories.
Click to hide internal directories.