Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageBuilder ¶
type MessageBuilder struct {
// contains filtered or unexported fields
}
func NewMessageBuilder ¶
func NewMessageBuilder(logger log.Logger) *MessageBuilder
func (*MessageBuilder) CreateMessage ¶
func (m *MessageBuilder) CreateMessage(tx *TransactionData) error
Prepares a social media message from RawTXs.
func (*MessageBuilder) SendMessage ¶
func (m *MessageBuilder) SendMessage(tx *TransactionData) error
Sends message. Call this after CreateMessage().
type TransactionData ¶
type TransactionData struct { //RawTXs []*pb.Transaction_Output `json:"txs"` AmountBchRaw float64 `json:"amount_bch_raw"` Amount string `json:"amount"` Symbol string `json:"symbol"` Currency string `json:"currency"` FeeBch float64 `json:"fee"` FiatFee string `json:"fee"` FiatAmount string `json:"fiat_amount"` FiatSymbol string `json:"fiat_symbol"` Hash string `json:"hash"` TxLink string `json:"tx_link"` Message string `json:"message"` }
type TwitterClient ¶
func NewTwitterClient ¶
func NewTwitterClient(logger log.Logger) *TwitterClient
Click to show internal directories.
Click to hide internal directories.