package
0.1.1
Repository: https://github.com/qosgroup/cassini.git
Documentation: pkg.go.dev

# README

中继适配器SDK

按照 QCP 协议规范封装适配SDK,以实现安全、简便和快捷的接入非 Tendermint 技术栈的区块链。

为接入链提供交易发布功能,并为中继通信提供标准接口及相关服务( Http Rpc、Web Socket )。

# Packages

No description provided by the author
Package ports provides an adapter management center and enables plug-ins for adapter modules to enhance extendibility and maintainability.
No description provided by the author

# Functions

BufferCapacity allows you to specify capacity for the internal server's queue.
NewBaseService creates a new BaseService.
NewRemoteAdapter 创建新的交易广播器.
NewServer returns a new server.
NewTagMap constructs a new immutable tag set from a map.

# Variables

ErrAlreadyStarted 已启动错误.
ErrAlreadyStopped 已停止错误.
ErrAlreadySubscribed is returned when a client tries to subscribe twice or more using the same query.
ErrSubscriptionNotFound is returned when a client tries to unsubscribe from not existing subscription.

# Structs

BaseService 封装服务基础操作方法.
DefaultBroadcaster 实现内存交易广播器。 作为接入链跨链交易的缓存以提高查询的相关功能的执行效率。 交易在广播器中不会缓存,而是直接转发给中继适配服务。.
RemoteAdapter 适配接口封装,封装交易广播接口和交易接收接口。 交易广播接口( Broadcaster )为调用端检测到交易事件时,由调用端调用; 交易接收接口( Receiver )为中继适配服务接收到远端中继广播的交易后,由适配服务回调通知调用方接收到远端跨链交易。.
Server allows clients to subscribe/unsubscribe for messages, publishing messages with or without tags, and manages internal state.

# Interfaces

Broadcaster 交易广播接口,通过该接口广播的交易即表示需要通过中继跨链提交交易以最终完成交易。.
HandlerService 中继基础服务封装接口.
Query defines an interface for a query to be used for subscribing.
Receiver 交易接收接口,接收中继从其他接入链发来的跨链交易。.
Service defines a service that can be started, stopped, and reset.
TagMap is used to associate tags to a message.

# Type aliases

Option sets a parameter for the server.