sync

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeRegistration added in v0.1.1

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

type SyncServer

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

func NewSyncServer

func NewSyncServer(opts ...SyncServerOption) (*SyncServer, error)

func (*SyncServer) Close

func (s *SyncServer) Close()

type SyncServerConfig added in v0.4.0

type SyncServerConfig struct {
	Ctx           context.Context
	Log           *zap.Logger
	NodeRegistry  registry.NodeRegistry
	Registrant    *registrant.Registrant
	DB            *sql.DB
	FeeCalculator fees.IFeeCalculator
}

type SyncServerOption added in v0.4.0

type SyncServerOption func(*SyncServerConfig)

func WithContext added in v0.4.0

func WithContext(ctx context.Context) SyncServerOption

func WithDB added in v0.4.0

func WithDB(db *sql.DB) SyncServerOption

func WithFeeCalculator added in v0.4.0

func WithFeeCalculator(calc fees.IFeeCalculator) SyncServerOption

func WithLogger added in v0.4.0

func WithLogger(log *zap.Logger) SyncServerOption

func WithNodeRegistry added in v0.4.0

func WithNodeRegistry(reg registry.NodeRegistry) SyncServerOption

func WithRegistrant added in v0.4.0

func WithRegistrant(r *registrant.Registrant) SyncServerOption

Jump to

Keyboard shortcuts

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