当前位置: 首页>>代码示例>>Golang>>正文


Golang Link.RemoteTarget方法代码示例

本文整理汇总了Golang中qpid/apache/org/proton.Link.RemoteTarget方法的典型用法代码示例。如果您正苦于以下问题:Golang Link.RemoteTarget方法的具体用法?Golang Link.RemoteTarget怎么用?Golang Link.RemoteTarget使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在qpid/apache/org/proton.Link的用法示例。


在下文中一共展示了Link.RemoteTarget方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: makeIncomingLinkSettings

func makeIncomingLinkSettings(pLink proton.Link, sn *session) linkSettings {
	return linkSettings{
		isSender:  pLink.IsSender(),
		source:    pLink.RemoteSource().Address(),
		target:    pLink.RemoteTarget().Address(),
		linkName:  pLink.Name(),
		sndSettle: SndSettleMode(pLink.RemoteSndSettleMode()),
		rcvSettle: RcvSettleMode(pLink.RemoteRcvSettleMode()),
		capacity:  1,
		prefetch:  false,
		pLink:     pLink,
		session:   sn,
	}
}
开发者ID:orpiske,项目名称:qpid-proton,代码行数:14,代码来源:link.go

示例2: makeIncomingLink

// initIncoming sets link settings from an incoming proton.Link.
// Call in proton goroutine
func makeIncomingLink(sn *session, eLink proton.Link) link {
	l := link{
		session:  sn,
		isSender: eLink.IsSender(),
		eLink:    eLink,
		settings: LinkSettings{
			Source:        eLink.RemoteSource().Address(),
			Target:        eLink.RemoteTarget().Address(),
			Name:          eLink.Name(),
			SndSettleMode: SndSettleMode(eLink.RemoteSndSettleMode()),
			RcvSettleMode: RcvSettleMode(eLink.RemoteRcvSettleMode()),
		},
	}
	l.setSettings()
	return l
}
开发者ID:Karm,项目名称:qpid-proton,代码行数:18,代码来源:link.go

示例3: makeIncomingLink

// Set up a link from an incoming proton.Link.
func makeIncomingLink(sn *session, eLink proton.Link) incomingLink {
	l := incomingLink{
		incoming: makeIncoming(eLink),
		linkSettings: linkSettings{
			isSender:  eLink.IsSender(),
			source:    eLink.RemoteSource().Address(),
			target:    eLink.RemoteTarget().Address(),
			linkName:  eLink.Name(),
			sndSettle: SndSettleMode(eLink.RemoteSndSettleMode()),
			rcvSettle: RcvSettleMode(eLink.RemoteRcvSettleMode()),
			capacity:  1,
			prefetch:  false,
			eLink:     eLink,
			session:   sn,
		},
	}
	return l
}
开发者ID:marcelmeulemans,项目名称:qpid-proton-1,代码行数:19,代码来源:link.go

示例4: makeIncomingLink

// Set up a link from an incoming proton.Link.
func makeIncomingLink(sn *session, eLink proton.Link) incomingLink {
	l := incomingLink{
		link: link{
			session:   sn,
			isSender:  eLink.IsSender(),
			eLink:     eLink,
			source:    eLink.RemoteSource().Address(),
			target:    eLink.RemoteTarget().Address(),
			linkName:  eLink.Name(),
			sndSettle: SndSettleMode(eLink.RemoteSndSettleMode()),
			rcvSettle: RcvSettleMode(eLink.RemoteRcvSettleMode()),
			capacity:  1,
			prefetch:  false,
			done:      make(chan struct{}),
		},
	}
	l.str = eLink.String()
	return l
}
开发者ID:b-cuts,项目名称:qpid-proton,代码行数:20,代码来源:link.go


注:本文中的qpid/apache/org/proton.Link.RemoteTarget方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。