Documentation ¶
Index ¶
Constants ¶
View Source
const (
CrossTransferTopic = Topic("cross-transfer")
)
Variables ¶
View Source
var ( // ErrDuplicateSubscriber is returned when a client tries to subscribe // with an existing client ID. ErrDuplicateClientID = errors.New("clientID is exist") // ErrAlreadySubscribed is returned when a client tries to subscribe twice or // more using the same topic. ErrAlreadySubscribed = errors.New("already subscribed") // ErrSubscriptionNotFound is returned when a client tries to unsubscribe // from not existing subscription. ErrSubscriptionNotFound = errors.New("subscription not found") ErrNilHandler = errors.New("handler is nil") )
Functions ¶
This section is empty.
Types ¶
type CrossReceiver ¶
type CrossTransferEvent ¶
type CrossTransferEvent struct { TxHash string ChainId string Type string RelayerFee int64 From string Denom string Contract string Decimals int To []CrossReceiver }
func (CrossTransferEvent) GetTopic ¶
func (event CrossTransferEvent) GetTopic() Topic
type Server ¶
type Server struct { common.BaseService // contains filtered or unexported fields }
func (*Server) HasSubscribed ¶
func (*Server) NewSubscriber ¶
type Subscriber ¶
func (*Subscriber) Unsubscribe ¶
func (s *Subscriber) Unsubscribe(topic Topic) error
func (*Subscriber) UnsubscribeAll ¶
func (s *Subscriber) UnsubscribeAll() error
func (*Subscriber) Wait ¶
func (s *Subscriber) Wait()
Click to show internal directories.
Click to hide internal directories.