config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 23 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixBoolString

func FixBoolString(b bool) string

func FixIntString

func FixIntString(i int) string

func GetAgeIdentities

func GetAgeIdentities(interactive bool) []age.Identity

func GetConfig

func GetConfig() *fixConfig

func GetLogger

func GetLogger() *zerolog.Logger

func GetOptions

func GetOptions() *cliOptions

func IntToZerologLevel

func IntToZerologLevel(level int) zerolog.Level

func ReadYAML

func ReadYAML(path string, interactive bool) (*fixConfig, error)

func ReadYAMLNoAge

func ReadYAMLNoAge(path string) (*fixConfig, error)

func SetLogger

func SetLogger(l *zerolog.Logger)

Types

type Acceptor

type Acceptor struct {
	SocketAcceptHost string `yaml:"SocketAcceptHost"`
	SocketAcceptPort int    `yaml:"SocketAcceptPort"`
	UseTCPProxy      string `yaml:"UseTCPProxy"`
	// contains filtered or unexported fields
}

func GetAcceptor

func GetAcceptor(name string) (*Acceptor, error)

func (*Acceptor) GetName

func (c *Acceptor) GetName() string

func (*Acceptor) GetSQLStoreDataSourceName

func (a *Acceptor) GetSQLStoreDataSourceName() string

func (*Acceptor) GetSQLStoreDriver

func (a *Acceptor) GetSQLStoreDriver() string

type Context

type Context struct {
	Name      string   `yaml:"name"`
	Initiator string   `yaml:"initiator"`
	Acceptor  string   `yaml:"acceptor"`
	Sessions  []string `yaml:"sessions"`
}

func GetContext

func GetContext(name string) (*Context, error)

func GetContexts

func GetContexts() []*Context

func GetCurrentContext

func GetCurrentContext() (*Context, error)

func (Context) GetAcceptor

func (c Context) GetAcceptor() (*Acceptor, error)

func (Context) GetInitiator

func (c Context) GetInitiator() (*Initiator, error)

func (*Context) GetName

func (c *Context) GetName() string

func (Context) GetSession

func (c Context) GetSession(name string) (*Session, error)

func (Context) GetSessions

func (c Context) GetSessions() ([]*Session, error)

func (Context) ToQuickFixAcceptorSettings

func (c Context) ToQuickFixAcceptorSettings() (*quickfix.Settings, error)

func (Context) ToQuickFixInitiatorSettings

func (c Context) ToQuickFixInitiatorSettings() (*quickfix.Settings, error)

type HasName

type HasName interface {
	GetName() string
}

type Initiator

type Initiator struct {
	SocketConnectHost string `yaml:"SocketConnectHost"`
	SocketConnectPort int    `yaml:"SocketConnectPort"`
	SocketServerName  string `yaml:"SocketServerName"`
	// contains filtered or unexported fields
}

func GetInitiator

func GetInitiator(name string) (*Initiator, error)

func (*Initiator) GetName

func (c *Initiator) GetName() string

func (*Initiator) GetSQLStoreDataSourceName

func (c *Initiator) GetSQLStoreDataSourceName() string

func (*Initiator) GetSQLStoreDriver

func (c *Initiator) GetSQLStoreDriver() string

type SQLStoreConfig

type SQLStoreConfig interface {
	GetSQLStoreDriver() string
	GetSQLStoreDataSourceName() string
}

type Session

type Session struct {
	Name                    string `yaml:"name"`
	BeginString             string `yaml:"BeginString"`
	DefaultApplVerID        string `yaml:"DefaultApplVerID"`
	HeartBtInt              int    `yaml:"HeartBtInt"`
	SenderCompID            string `yaml:"SenderCompID"`
	SenderSubID             string `yaml:"SenderSubID"`
	SenderLocationID        string `yaml:"SenderLocationID"`
	TargetCompID            string `yaml:"TargetCompID"`
	TargetSubID             string `yaml:"TargetSubID"`
	TargetLocationID        string `yaml:"TargetLocationID"`
	SessionQualifier        string `yaml:"SessionQualifier"`
	Username                string `yaml:"Username"`
	Password                string `yaml:"Password"`
	StartTime               string `yaml:"StartTime"`
	EndTime                 string `yaml:"EndTime"`
	StartDay                string `yaml:"StartDay"`
	EndDay                  string `yaml:"EndDay"`
	TimeZone                string `yaml:"TimeZone"`
	TransportDataDictionary string `yaml:"TransportDataDictionary"`
	AppDataDictionary       string `yaml:"AppDataDictionary"`
	ResetOnLogon            bool   `yaml:"ResetOnLogon"`
	ResetOnLogout           bool   `yaml:"ResetOnLogout"`
	ResetOnDisconnect       bool   `yaml:"ResetOnDisconnect"`
}

func GetSession

func GetSession(name string) (*Session, error)

func (Session) GetFIXDictionaries

func (*Session) GetName

func (s *Session) GetName() string

Jump to

Keyboard shortcuts

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