Documentation
¶
Index ¶
- Constants
- func AsBool(src interface{}) bool
- func AsString(src interface{}) string
- func IsAliveTransaction(id string) bool
- func IsFatimaIPCAvailable(proc string) bool
- func RegisterIPCSessionListener(listener FatimaIPCSessionListener)
- func StartIPCService(fr fatima.FatimaRuntime, ps fatima.PlatformSupport, ...) io.Closer
- func StopIPCService()
- type ConnectionListener
- type CronListener
- type FatimaIPCClientSession
- type FatimaIPCSessionListener
- type GoAwaySessionListener
- type Initiator
- type JsonBody
- type Message
- func NewMessageCronExecute(jobName, sample string) Message
- func NewMessageGoaway() Message
- func NewMessageGoawayDone(transactionId string) Message
- func NewMessageGoawayStart(transactionId string) Message
- func NewMessageTransactionVerify(transactionId string) Message
- func NewMessageTransactionVerifyDone(transactionId string, result bool) Message
- type SessionContext
- type SessionEvent
- type SessionEventType
- type SessionType
Constants ¶
View Source
const ( CommandGoaway = "GOAWAY" CommandTransactionVerify = "TRANSACTION_VERIFY" CommandTransactionVerifyDone = "TRANSACTION_VERIFY_DONE" CommandGoawayStart = "GOAWAY_START" CommandGoawayDone = "GOAWAY_DONE" CommandCronExecute = "CRON_EXECUTE" DataKeyTransaction = "transaction" DataKeyVerify = "verify" DataKeyJobName = "job" DataKeyJobSample = "sample" )
Variables ¶
This section is empty.
Functions ¶
func IsAliveTransaction ¶
func IsFatimaIPCAvailable ¶
func RegisterIPCSessionListener ¶
func RegisterIPCSessionListener(listener FatimaIPCSessionListener)
func StartIPCService ¶
func StartIPCService(fr fatima.FatimaRuntime, ps fatima.PlatformSupport, goawayImpl fatima.FatimaRuntimeGoaway, cronRunner cronRunnableFunc) io.Closer
func StopIPCService ¶
func StopIPCService()
Types ¶
type ConnectionListener ¶
type ConnectionListener struct {
// contains filtered or unexported fields
}
func (*ConnectionListener) OnClose ¶
func (g *ConnectionListener) OnClose(ctx SessionContext)
func (*ConnectionListener) OnReceiveCommand ¶
func (g *ConnectionListener) OnReceiveCommand(ctx SessionContext, message Message)
func (*ConnectionListener) StartSession ¶
func (g *ConnectionListener) StartSession(ctx SessionContext)
type CronListener ¶
type CronListener struct {
}
func (*CronListener) OnClose ¶
func (g *CronListener) OnClose(ctx SessionContext)
func (*CronListener) OnReceiveCommand ¶
func (g *CronListener) OnReceiveCommand(ctx SessionContext, message Message)
func (*CronListener) StartSession ¶
func (g *CronListener) StartSession(ctx SessionContext)
type FatimaIPCClientSession ¶
type FatimaIPCClientSession interface {
SendCommand(Message) error
ReadCommand() (Message, error)
Disconnect()
}
func NewFatimaIPCClientSession ¶
func NewFatimaIPCClientSession(proc string) (FatimaIPCClientSession, error)
type FatimaIPCSessionListener ¶
type FatimaIPCSessionListener interface {
StartSession(ctx SessionContext)
OnReceiveCommand(ctx SessionContext, message Message)
OnClose(ctx SessionContext)
}
type GoAwaySessionListener ¶
type GoAwaySessionListener struct {
}
func (*GoAwaySessionListener) OnClose ¶
func (g *GoAwaySessionListener) OnClose(ctx SessionContext)
func (*GoAwaySessionListener) OnReceiveCommand ¶
func (g *GoAwaySessionListener) OnReceiveCommand(ctx SessionContext, message Message)
func (*GoAwaySessionListener) StartSession ¶
func (g *GoAwaySessionListener) StartSession(ctx SessionContext)
type Initiator ¶
type Message ¶
type Message struct {
Initiator Initiator `json:"initiator"`
Data JsonBody `json:"data,omitempty"`
}
func NewMessageCronExecute ¶
func NewMessageGoaway ¶
func NewMessageGoaway() Message
func NewMessageGoawayDone ¶
func NewMessageGoawayStart ¶
func (Message) GetTransactionId ¶
type SessionContext ¶
type SessionEvent ¶
type SessionEvent struct {
// contains filtered or unexported fields
}
type SessionEventType ¶
type SessionEventType uint8
const ( SessionEventStart SessionEventType = iota SessionEventReceiveCommand SessionEventClose )
type SessionType ¶
type SessionType uint8
Click to show internal directories.
Click to hide internal directories.