pub

package
v0.4.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AccountNewNonce    string = "CUSTODIAL.accountNewNonce"
	AccountRegister    string = "CUSTODIAL.accountRegister"
	AccountGiftGas     string = "CUSTODIAL.systemNewAccountGas"
	AccountGiftVoucher string = "CUSTODIAL.systemNewAccountVoucher"
	AccountRefillGas   string = "CUSTODIAL.systemRefillAccountGas"
	DispatchFail       string = "CUSTODIAL.dispatchFail"
	DispatchSuccess    string = "CUSTODIAL.dispatchSuccess"
	SignTransfer       string = "CUSTODIAL.signTransfer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventPayload

type EventPayload struct {
	OtxId      uint   `json:"otxId"`
	TrackingId string `json:"trackingId"`
	TxHash     string `json:"txHash"`
}

type Pub

type Pub struct {
	// contains filtered or unexported fields
}

func NewPub

func NewPub(o PubOpts) (*Pub, error)

func (*Pub) Publish

func (p *Pub) Publish(subject string, dedupId string, eventPayload interface{}) error

type PubOpts

type PubOpts struct {
	DedupDuration   time.Duration
	JsCtx           nats.JetStreamContext
	PersistDuration time.Duration
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL