internal

package
v0.0.0-...-5d8db7d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsyncSubmitTransaction

func AsyncSubmitTransaction(bot *Bot, channel chan TxResult, signed string)

AsyncSubmitTransaction should be passed into the bot

Types

type Bot

type Bot struct {
	Horizon           *horizon.Client
	Secret            string
	Network           string
	StartingBalance   string
	SubmitTransaction func(bot *Bot, channel chan TxResult, signed string)
	// contains filtered or unexported fields
}

Bot represents the friendbot subsystem.

func (*Bot) Pay

func (bot *Bot) Pay(destAddress string) (*horizon.TransactionSuccess, error)

Pay funds the account at `destAddress`

type FriendbotHandler

type FriendbotHandler struct {
	Friendbot *Bot
}

FriendbotHandler causes an account at `Address` to be created.

func (*FriendbotHandler) Handle

func (handler *FriendbotHandler) Handle(w http.ResponseWriter, r *http.Request)

Handle is a method that implements http.HandlerFunc

type TxResult

type TxResult struct {
	// contains filtered or unexported fields
}

TxResult is the result from the asynchronous submit transaction method over a channel

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL