mlm

package module
v0.0.0-...-24d0fbb Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 6 Imported by: 0

README

mlm

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmbedMigrations embed.FS

Functions

This section is empty.

Types

type DistributeOption

type DistributeOption func(*DistributeOptions)

func WithoutReport

func WithoutReport() DistributeOption

type DistributeOptions

type DistributeOptions struct {
	WithoutReport bool
}

type DistributeResult

type DistributeResult struct {
	CreatedAt               time.Time
	XDR                     string
	Conflicts               []db.ReportConflict
	Recommends              []db.ReportRecommend
	Distributes             []db.ReportDistribute
	ReportID                int64
	Amount                  float64
	AmountPerTag            float64
	RecommendedNewCount     int64
	RecommendedLevelUpCount int64
}

type Distributor

type Distributor interface {
	Distribute(ctx context.Context, opts ...DistributeOption) (*DistributeResult, error)
}

type HorizonClient

type HorizonClient interface {
	horizonclient.ClientInterface
}
type Recommended struct {
	AccountID string
	MTLAP     int64
}

type Recommender

type Recommender struct {
	AccountID   string
	Recommended []Recommended
}

type RecommendersFetchResult

type RecommendersFetchResult struct {
	Conflict              map[string][]string // recommended-recommender
	Recommenders          []Recommender
	TotalRecommendedMTLAP int64
}

type StellarAgregator

type StellarAgregator interface {
	Balance(ctx context.Context, accountID, asset, issuer string) (string, error)
	Recommenders(ctx context.Context) (*RecommendersFetchResult, error)
	AccountDetail(accountID string) (horizon.Account, error)
}

Directories

Path Synopsis
cmd
mlm

Jump to

Keyboard shortcuts

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