watchlist

package
v0.0.0-...-66ccf9c Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetDetails

type AssetDetails struct {
	ExternalSystemType int32 `json:"external_system_type,string"`
	Stellar            struct {
		Deposit   bool   `json:"deposit"`
		AssetType string `json:"asset_type"`
		Code      string `json:"asset_code"`
	} `json:"stellar"`
}

func (AssetDetails) Validate

func (s AssetDetails) Validate() error

type Details

type Details struct {
	regources.Asset
	AssetDetails
}

type Opts

type Opts struct {
	Streamer getters.AssetHandler
	Log      *logan.Entry
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(opts Opts) *Service

func (*Service) GetToAdd

func (s *Service) GetToAdd() <-chan Details

func (*Service) GetToRemove

func (s *Service) GetToRemove() <-chan string

func (*Service) Run

func (s *Service) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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