notif

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notif

type Notif struct {
	Type       string `json:"type"      redis:"type"`
	WalletAddr string `json:"address"   redis:"address"`
	Amount     string `json:"amount"    redis:"amount"`
	TokenName  string `json:"tokenName" redis:"tokenName"`
	TxID       string `json:"txid"      redis:"txid"`
}

func (Notif) MarshalBinary

func (n Notif) MarshalBinary() ([]byte, error)

type Service

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

func NewService

func NewService(nats *nats.Conn, rdb *redis.Client, retryClient *retryablehttp.Client, ns *state.NotifState, wg *sync.WaitGroup) (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(wg *sync.WaitGroup)

Jump to

Keyboard shortcuts

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