scanner

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TxRetryer = Retryer{
		UnsignedTxs: make(map[string]UnsignedTx),
	}
)

Functions

This section is empty.

Types

type CombinedHashes

type CombinedHashes struct {
	Hash  string   `json:"hash"`
	Boxes []string `json:"boxes"`
}

type Retryer

type Retryer struct {
	UnsignedTxs map[string]UnsignedTx
	// contains filtered or unexported fields
}

func (*Retryer) Add

func (r *Retryer) Add(uuid string, payload []byte)

func (*Retryer) Delete

func (r *Retryer) Delete(uuid string)

func (*Retryer) RetryLoop

func (r *Retryer) RetryLoop()

func (*Retryer) RetrySend

func (r *Retryer) RetrySend(uuid string) error

type Service

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

func NewService

func NewService(nats *nats.Conn) (service *Service, err error)

func (*Service) Start

func (s *Service) Start()

func (*Service) Stop

func (s *Service) Stop()

func (*Service) Wait

func (s *Service) Wait()

type UnsignedTx

type UnsignedTx struct {
	Payload     []byte `json:"payload"`
	RetryCount  int    `json:"retryCount"`
	LastAttempt string `json:"lastAttempt"`
}

Jump to

Keyboard shortcuts

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