xirrAsync

package
v0.0.0-...-51e5f1b Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IProcessor

type IProcessor interface {
	Requests() chan IRequest

	Responses() <-chan IResponse

	Start(coresCount int)

	Stop() <-chan bool
}

func NewProcessor

func NewProcessor() IProcessor

Factory method

type IRequest

type IRequest interface {
	RequestId() int64

	Payments() []netPresentValue.IPayment
}

func NewRequest

func NewRequest(id int64, payments []netPresentValue.IPayment) IRequest

type IResponse

type IResponse interface {
	RequestId() int64

	Result() numMethods.IResult
}

func NewResponse

func NewResponse(id int64, res numMethods.IResult) IResponse

type Request

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

func (*Request) Payments

func (r *Request) Payments() []netPresentValue.IPayment

func (*Request) RequestId

func (r *Request) RequestId() int64

type RequestsProcessor

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

func (*RequestsProcessor) Requests

func (p *RequestsProcessor) Requests() chan IRequest

func (*RequestsProcessor) Responses

func (p *RequestsProcessor) Responses() <-chan IResponse

func (*RequestsProcessor) Start

func (p *RequestsProcessor) Start(coresCount int)

func (*RequestsProcessor) Stop

func (p *RequestsProcessor) Stop() <-chan bool

type Response

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

func (*Response) RequestId

func (r *Response) RequestId() int64

func (*Response) Result

func (r *Response) Result() numMethods.IResult

Jump to

Keyboard shortcuts

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