Documentation
¶
Index ¶
- func BuildOrderMaroto(ec *EmailContent) core.Maroto
- func OutputPDF(args *OutputParams) (*bytes.Buffer, error)
- func OutputText(args *OutputParams) (*bytes.Buffer, error)
- type Content
- func (c *Content) IsPlasmid(str string) bool
- func (c *Content) IsStrain(str string) bool
- func (c *Content) OrderTimestamp() string
- func (c *Content) PlasmidCost() int
- func (c *Content) PlasmidItems() int
- func (c *Content) StrainCost() int
- func (c *Content) StrainItems() int
- func (c *Content) TotalCost() int
- type EmailContent
- type IssueContent
- type OutputParams
- type PlasmidRows
- type StrainRows
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildOrderMaroto ¶ added in v0.2.0
func BuildOrderMaroto(ec *EmailContent) core.Maroto
BuildOrderMaroto constructs the Indigo Dossier Maroto v2 document tree for an order.
func OutputText ¶
func OutputText(args *OutputParams) (*bytes.Buffer, error)
Types ¶
type Content ¶
type Content struct {
Order *order.Order
Shipper *order.UserInfo
Payer *order.UserInfo
StrainPrice int
PlasmidPrice int
}
func (*Content) OrderTimestamp ¶
func (*Content) PlasmidCost ¶
func (*Content) PlasmidItems ¶
func (*Content) StrainCost ¶
func (*Content) StrainItems ¶
type EmailContent ¶
type EmailContent struct {
*Content
StrainData []*StrainRows
PlasmidData []*PlasmidRows
}
type IssueContent ¶
type OutputParams ¶
type OutputParams struct {
Content any
}
type PlasmidRows ¶
type PlasmidRows struct {
ID string
Name string
PubInfo []*datasource.PubInfo
}
type StrainRows ¶
Click to show internal directories.
Click to hide internal directories.