github.com/decred/dcrlnd@v0.7.6/invoices/interface.go (about)

     1  package invoices
     2  
     3  import (
     4  	"github.com/decred/dcrlnd/record"
     5  )
     6  
     7  // Payload abstracts access to any additional fields provided in the final hop's
     8  // TLV onion payload.
     9  type Payload interface {
    10  	// MultiPath returns the record corresponding the option_mpp parsed from
    11  	// the onion payload.
    12  	MultiPath() *record.MPP
    13  
    14  	// AMPRecord returns the record corresponding to the option_amp record
    15  	// parsed from the onion payload.
    16  	AMPRecord() *record.AMP
    17  
    18  	// CustomRecords returns the custom tlv type records that were parsed
    19  	// from the payload.
    20  	CustomRecords() record.CustomSet
    21  }