parser

package
v0.1.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmountOfferKind added in v0.1.10

type AmountOfferKind int
const (
	AmountBuyKind AmountOfferKind = iota + 1
	AmountSellKind
)

type DataEntry added in v0.1.6

type DataEntry struct {
	Kind  SetDataEntryKind
	Value string
}

type Kind

type Kind int
const (
	SendKind Kind = iota + 1
	ShareAccountKind
	SetDataKind
	BuyOfferKind
	SellOfferKind
)

type Offer added in v0.1.10

type Offer struct {
	Account    string
	Amount     string
	AmountKind AmountOfferKind
	Buying     string
	Selling    string
	Price      string
	// contains filtered or unexported fields
}

func (*Offer) Kind added in v0.1.10

func (s *Offer) Kind() Kind

type SendRequest

type SendRequest struct {
	Amount   string
	Currency string
	From, To string
}

func (*SendRequest) Kind

func (s *SendRequest) Kind() Kind

type SetDataEntryKind added in v0.1.6

type SetDataEntryKind string
const (
	SetDataFromString SetDataEntryKind = "from-string"
	SetDataFromFile                    = "from-file"
)

type SetDataRequest added in v0.1.6

type SetDataRequest struct {
	Account string
	KVs     map[string]DataEntry
}

func (*SetDataRequest) Kind added in v0.1.6

func (s *SetDataRequest) Kind() Kind

type ShareAccountRequest added in v0.1.5

type ShareAccountRequest struct {
	Account            string
	AdditionnalSigners []string
}

func (*ShareAccountRequest) Kind added in v0.1.5

func (s *ShareAccountRequest) Kind() Kind

type Statement

type Statement interface {
	Kind() Kind
	// contains filtered or unexported methods
}

func Parse

func Parse(in string) (Statement, error)

func ParseReader

func ParseReader(reader *strings.Reader) (s Statement, err error)

Jump to

Keyboard shortcuts

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