Documentation
¶
Index ¶
- type Guard
- func (g *Guard) AllowCurrencyLaunch(ctx context.Context, owner *common.Account, name, symbol string) (bool, error)
- func (g *Guard) AllowDistribution(ctx context.Context, owner *common.Account, isPublic bool) (bool, error)
- func (g *Guard) AllowOpenAccounts(ctx context.Context, owner *common.Account, ...) (bool, error)
- func (g *Guard) AllowReceivePayments(ctx context.Context, owner *common.Account, isPublic bool) (bool, error)
- func (g *Guard) AllowSendPayment(ctx context.Context, owner, destination *common.Account, isPublic bool) (bool, error)
- func (g *Guard) AllowSwap(ctx context.Context, fundingSource swap.FundingSource, ...) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Guard ¶
type Guard struct {
// contains filtered or unexported fields
}
func NewGuard ¶
func NewGuard(integration integration.Antispam) *Guard
func (*Guard) AllowCurrencyLaunch ¶ added in v1.0.0
func (*Guard) AllowDistribution ¶
func (*Guard) AllowOpenAccounts ¶
func (g *Guard) AllowOpenAccounts(ctx context.Context, owner *common.Account, accountSet transactionpb.OpenAccountsMetadata_AccountSet) (bool, error)
func (*Guard) AllowReceivePayments ¶
func (*Guard) AllowSendPayment ¶
Click to show internal directories.
Click to hide internal directories.