Back to godoc.org

Package federation

v0.0.0 (5215f1e)
Latest Go to latest
Published: 1 day ago | License: Apache-2.0 | Module: github.com/stellar/go

Index

Package Files

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier