service

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package service implements the different RFQ relayer services.

Index

Constants

View Source
const (
	// MaxEventChanSize is the maximum size of the event channel.
	MaxEventChanSize = 1000
	// MaxSeenChanSize is the maximum size of the seen channel.
	MaxSeenChanSize = 1000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IRelayer

type IRelayer interface {
	Start(ctx context.Context) error
}

IRelayer is the interface for the relayer.

func NewRelayer

func NewRelayer(ctx context.Context, cfg *config.Config, db db.DB, handler metrics.Handler) (IRelayer, error)

NewRelayer inits all necessary components for the relayer.

Directories

Path Synopsis
Package balance keeps track of the balance
Package balance keeps track of the balance
Package listener provides the event listener service for the RFQ relayer.
Package listener provides the event listener service for the RFQ relayer.
Package queue implements a thread safe queue.
Package queue implements a thread safe queue.
Package quote contains the quote service
Package quote contains the quote service

Jump to

Keyboard shortcuts

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