fixc

package
v0.0.0-...-f3cc0d2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EncryptMethod_NONE_OTHER  = 0
	EncryptMethod_PKCS        = 1
	EncryptMethod_DES         = 2
	EncryptMethod_PKCS_DES    = 3
	EncryptMethod_PGP_DES     = 4
	EncryptMethod_PGP_DES_MD5 = 5
	EncryptMethod_PEM_DES_MD5 = 6
)
View Source
const (
	FID_EncryptMethod = 98
	FID_HeartBtInt    = 108
)
View Source
const ENDLEN = 8

length of |10=???|

View Source
const SOH = string(1)

Variables

This section is empty.

Functions

func GUID

func GUID() string

Types

type FIXClient

type FIXClient struct {
	Timeout   time.Duration
	HeartBeat time.Duration
	Version   string
	FIXAddr   string

	SenderCompID string
	TargetCompID string
	// contains filtered or unexported fields
}

func NewFixClient

func NewFixClient(timeout, heartBeat time.Duration, version, fixAddr, senderCompID, targetCompID string) *FIXClient

func (*FIXClient) Expect

func (p *FIXClient) Expect(filter ...string) (msg *FixMessage, err error)

func (*FIXClient) Send

func (p *FIXClient) Send(s string) (err error)

func (*FIXClient) Start

func (p *FIXClient) Start(onConnect func(), onMessage func(*FixMessage), onError func(error))

func (*FIXClient) Stop

func (p *FIXClient) Stop()

type FixMessage

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

func NewFixMessage

func NewFixMessage(s string) *FixMessage

func (*FixMessage) Find

func (p *FixMessage) Find(k string, cuts ...string) (string, bool)

func (*FixMessage) Get

func (p *FixMessage) Get(k string) (string, bool)

func (*FixMessage) Next

func (p *FixMessage) Next(k string) (string, bool)

func (*FixMessage) Raw

func (p *FixMessage) Raw() string

func (*FixMessage) ResetCursor

func (p *FixMessage) ResetCursor()

func (*FixMessage) String

func (p *FixMessage) String() string

type IMsg

type IMsg interface {
	Pack() string
}

type MsgBase

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

func (*MsgBase) AddField

func (p *MsgBase) AddField(fid int, s interface{})

func (*MsgBase) AddGroup

func (p *MsgBase) AddGroup(fid int, msg IMsg)

func (*MsgBase) Pack

func (p *MsgBase) Pack() string

type MsgFilter

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

type MsgLogon

type MsgLogon struct {
	MsgBase
}

func (*MsgLogon) SetEncryptMethod

func (p *MsgLogon) SetEncryptMethod(v int)

func (*MsgLogon) SetHeartBtInt

func (p *MsgLogon) SetHeartBtInt(v int)

Jump to

Keyboard shortcuts

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