Documentation ¶
Index ¶
- func Add(a, b int) int
- func AltCurrency(pricer service.QuotePricer, curCode *string) func(*librefund.Money) *librefund.Money
- func ToTitle(arg string) string
- type About
- type Contribute
- type ContributeBitcoin
- type Objective
- type Project
- type ProjectContributions
- type ProjectUpdates
- type Renderer
- func (r *Renderer) QRCodeURL(payload template.URL) (string, error)
- func (r *Renderer) RenderAbout(w io.Writer, arg *About) error
- func (r *Renderer) RenderContribute(w io.Writer, arg *Contribute) error
- func (r *Renderer) RenderContributeBitcoin(w io.Writer, arg *ContributeBitcoin) error
- func (r *Renderer) RenderProject(w io.Writer, arg *Project) error
- func (r *Renderer) RenderProjectContributions(w io.Writer, arg *ProjectContributions) error
- func (r *Renderer) RenderProjectUpdates(w io.Writer, arg *ProjectUpdates) error
- func (r *Renderer) RenderServiceAgreement(w io.Writer, arg *ServiceAgreement) error
- type ServiceAgreement
- type URLGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AltCurrency ¶
Types ¶
type About ¶
type Contribute ¶
type Contribute struct { *librefund.Project RootURL string Title string Currency string MinContribution *librefund.Money MaxContribution *librefund.Money TransferMethod string SuggestedContribution *librefund.Money SuggestedContributionStep decimal.Decimal SuggestedContributions []*librefund.Money ShowTermsAndConditions bool Objective *Objective FieldErrors schema.MultiError Error error }
func NewContribute ¶
func (*Contribute) AddError ¶
func (t *Contribute) AddError(err error)
type ContributeBitcoin ¶
type ContributeBitcoin struct { RootURL string Title string BitcoinAddress string BitcoinURI template.URL Project *librefund.Project Objective *librefund.Objective PaymentInfo *bitcoin.PaymentInfo PaymentReference string }
func NewContributeBitcoin ¶
func NewContributeBitcoin( srv *service.Service, payInfo *bitcoin.PaymentInfo, project string, ) (*ContributeBitcoin, error)
type Objective ¶
type Objective struct { *librefund.Objective Description template.HTML ShortDescription template.HTML RefundPerc librefund.Percentage ImpactPerc librefund.Percentage }
type Project ¶
type ProjectContributions ¶
type ProjectUpdates ¶
type Renderer ¶
func NewRenderer ¶
func (*Renderer) RenderContribute ¶
func (r *Renderer) RenderContribute(w io.Writer, arg *Contribute) error
func (*Renderer) RenderContributeBitcoin ¶
func (r *Renderer) RenderContributeBitcoin(w io.Writer, arg *ContributeBitcoin) error
func (*Renderer) RenderProjectContributions ¶
func (r *Renderer) RenderProjectContributions(w io.Writer, arg *ProjectContributions) error
Click to show internal directories.
Click to hide internal directories.