protocols

package
Version: v0.0.0-...-b1bd2f5 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Contains structs shared between bridge and compliance servers

Index

Constants

View Source
const (
	PathCodeField   = "path[%d][asset_code]"
	PathIssuerField = "path[%d][asset_issuer]"
)

Variables

View Source
var FederationDestinationFieldName = regexp.MustCompile("forward_destination\\[fields\\]\\[([a-z_-]+)\\]")

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Code   string `name:"asset_code" json:"code"`
	Issuer string `name:"asset_issuer" json:"issuer"`
}

Asset represents asset

func (Asset) String

func (a Asset) String() string

String returns string representation of this asset

func (Asset) ToBaseAsset

func (a Asset) ToBaseAsset() build.Asset

ToBaseAsset transforms Asset to github.com/stellar/go-stellar-base/build.Asset

func (Asset) Validate

func (a Asset) Validate() error

Validate checks if asset params are correct.

type ForwardDestination

type ForwardDestination struct {
	Domain string     `name:"domain"`
	Fields url.Values `name:"fields"`
}

ForwardDestination contains fields required to create forward federation request

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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