internal

package
v0.0.0-...-b785d8f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	Horizon         *horizon.Client
	Secret          string
	Network         string
	StartingBalance 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

Jump to

Keyboard shortcuts

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