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 ¶
type Recommender ¶
type Recommender struct { AccountID string Recommended []Recommended }
type RecommendersFetchResult ¶
type RecommendersFetchResult struct { Conflict map[string][]string // recommended-recommender Recommenders []Recommender TotalRecommendedMTLAP int64 }
Click to show internal directories.
Click to hide internal directories.