federation

package
v0.0.0-...-821bc58 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDResponse

type IDResponse struct {
	Address string `json:"stellar_address"`
}

IDResponse represents the result of a federation request for `id` request.

type Memo

type Memo struct {
	Value string
}

Memo value can be either integer or string in JSON. This struct allows marshaling and unmarshaling both types.

func (Memo) MarshalJSON

func (m Memo) MarshalJSON() ([]byte, error)

func (*Memo) String

func (m *Memo) String() string

func (*Memo) UnmarshalJSON

func (m *Memo) UnmarshalJSON(value []byte) error

type NameResponse

type NameResponse struct {
	AccountID string `json:"account_id"`
	MemoType  string `json:"memo_type,omitempty"`
	Memo      Memo   `json:"memo,omitempty"`
}

NameResponse represents the result of a federation request for `name` and `forward` requests.

Jump to

Keyboard shortcuts

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