Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Quoter ¶
type Quoter interface {
Quote(ctx context.Context, report *ReportData) (string, error)
}
Quoter is an interface for getting a quote.
type ReportData ¶
ReportData is the data that is sent to the Quoter to get a quote.
func (*ReportData) MarshalBinary ¶
func (r *ReportData) MarshalBinary() ([]byte, error)
MarshalBinary marshals the ReportData to binary.
func (*ReportData) MarshalJSON ¶
func (r *ReportData) MarshalJSON() ([]byte, error)
MarshalJSON marshals the ReportData to JSON.
func (*ReportData) ToTappdQuoteField ¶
func (r *ReportData) ToTappdQuoteField(tag string) ([64]byte, error)
type TappdQuoter ¶
type TappdQuoter struct {
// contains filtered or unexported fields
}
TappdQuoter is a quoter that uses the Tappd API to get a quote.
func NewTappdQuoter ¶
func NewTappdQuoter(client *tappd.TappdClient) *TappdQuoter
NewTappdQuoter creates a new TappdQuoter.
func (*TappdQuoter) Quote ¶
func (q *TappdQuoter) Quote(ctx context.Context, report *ReportData) (string, error)
Quote returns a quote for the given report.
Click to show internal directories.
Click to hide internal directories.