internal

package
v0.0.0-...-798156f Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 12 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         *frontier.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) (*frontier.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