paywall

package
v1.10.8 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPaywallNotFound = errors.New("paywall record not found")
	ErrPaywallExists   = errors.New("paywall record already exists")
)

Functions

This section is empty.

Types

type Record

type Record struct {
	Id uint64

	OwnerAccount            string
	DestinationTokenAccount string

	ExchangeCurrency currency.Code
	NativeAmount     float64
	RedirectUrl      string
	ShortPath        string

	Signature string

	CreatedAt time.Time
}

func (*Record) Clone

func (r *Record) Clone() Record

func (*Record) CopyTo

func (r *Record) CopyTo(dst *Record)

func (*Record) Validate

func (r *Record) Validate() error

type Store

type Store interface {
	Put(ctx context.Context, record *Record) error

	GetByShortPath(ctx context.Context, path string) (*Record, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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