federation

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 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:"hcnet_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