types

package
v0.0.0-...-dc9d089 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SettingLatestBlock keeps the latest parsed block ID
	SettingLatestBlock = "latest_block"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Incoming

type Incoming struct {
	ID            uint64
	Service       Service
	To            sumuslib.PublicKey
	From          sumuslib.PublicKey
	Amount        *amount.Amount
	Token         sumuslib.Token
	Digest        sumuslib.Digest
	Block         *big.Int
	Timestamp     time.Time
	FirstNotifyAt *time.Time
	NotifyAt      *time.Time
	Notified      bool
}

Incoming model

type Service

type Service struct {
	ID          uint64
	Name        string
	Transport   ServiceTransport
	CallbackURL string
}

Service model

type ServiceTransport

type ServiceTransport uint8

ServiceTransport is a type of transport of the API, i.e. HTTP, Nats etc.

const (
	// ServiceNats is Nats transport
	ServiceNats ServiceTransport = iota + 1
	// ServiceHTTP is HTTP transport
	ServiceHTTP
)

type Wallet

type Wallet struct {
	PublicKey sumuslib.PublicKey
	Service   Service
}

Wallet model

type WalletServices

type WalletServices struct {
	PublicKey sumuslib.PublicKey
	Services  []Service
}

WalletServices model

Jump to

Keyboard shortcuts

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