Versions in this module Expand all Collapse all v1 v1.3.2 Mar 24, 2026 v1.3.1 Nov 3, 2025 v1.3.0 Oct 21, 2025 v1.2.1 Aug 27, 2025 v1.2.0 Aug 9, 2025 v1.1.0 Jul 21, 2025 v1.0.2 Jul 17, 2025 v1.0.1 Jul 10, 2025 Changes in this version + type AllowList interface + GetPermission func(ipAddress string) Permission + type DatabaseAllowList struct + func NewDatabaseAllowList(ctx context.Context, db *bun.DB, log *zap.Logger) (*DatabaseAllowList, error) + func (d *DatabaseAllowList) GetPermission(ipAddress string) Permission + func (d *DatabaseAllowList) Stop() + type IPAddress struct + Comment string + CreatedAt time.Time + DeletedAt *time.Time + ID int64 + IPAddress string + Permission string type Permission + const AllowAll + const Priority v1.0.0 Jul 7, 2025 v0 v0.1.0 Jul 1, 2025 Changes in this version + const REFRESH_INTERVAL_SECONDS + type DatabaseWalletAllowLister struct + func NewDatabaseWalletAllowLister(db *bun.DB, log *zap.Logger) *DatabaseWalletAllowLister + func (d *DatabaseWalletAllowLister) Allow(ctx context.Context, walletAddress string) error + func (d *DatabaseWalletAllowLister) Apply(ctx context.Context, walletAddress string, permission Permission) error + func (d *DatabaseWalletAllowLister) Deny(ctx context.Context, walletAddress string) error + func (d *DatabaseWalletAllowLister) GetPermissions(walletAddress string) Permission + func (d *DatabaseWalletAllowLister) IsAllowListed(walletAddress string) bool + func (d *DatabaseWalletAllowLister) IsDenyListed(walletAddress string) bool + func (d *DatabaseWalletAllowLister) Start(ctx context.Context) error + func (d *DatabaseWalletAllowLister) Stop() + type Permission int64 + const Allowed + const Denied + const Unspecified + func (p Permission) String() string + type WalletAddress struct + Comment string + CreatedAt time.Time + DeletedAt *time.Time + ID int64 + Permission string + WalletAddress string + type WalletAllowLister interface + Allow func(ctx context.Context, WalletAddress string) error + Deny func(ctx context.Context, WalletAddress string) error + GetPermissions func(walletAddress string) Permission + IsAllowListed func(walletAddress string) bool + IsDenyListed func(walletAddress string) bool + Start func(ctx context.Context) error + Stop func()