Documentation
¶
Index ¶
- Variables
- func AcceptConn(conn io.ReadWriteCloser, mach *am.Machine, fwdTo []*fwdConn)
- func New(mach *am.Machine, addr string, params func() *types.Params) (cmux.CMux, *http.Server, error)
- type A
- type Client
- func (c *Client) ClearCache()
- func (c *Client) FilterIndexByCursor1(cursor1 int) int
- func (c *Client) HadErrSinceTx(tx, distance int) bool
- func (c *Client) IndexesToStates(indexes []int) am.S
- func (c *Client) LastActive() time.Time
- func (c *Client) ParseSchema()
- func (c *Client) StatesStringToIndex(states string) []int
- func (c *Client) StatesToIndexes(states am.S) []int
- func (c *Client) Tx(idx int) *dbg.DbgMsgTx
- func (c *Client) TxAtHTime(hTime time.Time) int
- func (c *Client) TxAtMachTime(sum uint64) int
- func (c *Client) TxAtQueueTick(qTick uint64) int
- func (c *Client) TxAtStateTick(state string, tick uint64) int
- func (c *Client) TxExecutedBy(idx int) *dbg.DbgMsgTx
- func (c *Client) TxIndex(id string) int
- func (c *Client) TxIsMarked(txId string) bool
- func (c *Client) TxMark(txId string, mark bool)
- func (c *Client) TxParsed(idx int) *types.MsgTxParsed
- type DbgMsgSchemaFwd
- type DbgMsgTx
- type Exportable
- type RPCServer
Constants ¶
This section is empty.
Variables ¶
var Pass = am.Pass
Functions ¶
func AcceptConn ¶ added in v0.18.0
func AcceptConn( conn io.ReadWriteCloser, mach *am.Machine, fwdTo []*fwdConn, )
AcceptConn accepts a std rpc connection, or alike.
Types ¶
type Client ¶ added in v0.16.1
type Client struct {
// bits which get saved into the go file
*Exportable
// current transition, 1-based, mirrors the slider (eg 1 means tx.ID == 0)
// TODO atomic
ReaderCollapsed bool
Id string
MTimeSum uint64
SelectedGroup string
Connected atomic.Bool
ConnId string
SchemaHash string
// processed list of filtered tx _indexes_
MsgTxsFiltered []int
// cache of processed log entries
LogMsgs [][]*am.LogEntry
// indexes of txs with errors, desc order for bisects
// TOOD refresh on GC
Errors []int
// processed
MsgTxsParsed []*types.MsgTxParsed
MsgSchemaParsed *types.MsgSchemaParsed
// contains filtered or unexported fields
}
func NewClient ¶ added in v0.19.3
func NewClient(connId string, msgSchema *dbg.DbgMsgStruct) *Client
func (*Client) ClearCache ¶ added in v0.16.1
func (c *Client) ClearCache()
func (*Client) FilterIndexByCursor1 ¶ added in v0.16.1
func (*Client) HadErrSinceTx ¶ added in v0.16.1
func (*Client) IndexesToStates ¶ added in v0.16.1
func (*Client) LastActive ¶ added in v0.16.1
func (*Client) ParseSchema ¶ added in v0.16.1
func (c *Client) ParseSchema()
func (*Client) StatesStringToIndex ¶ added in v0.19.5
func (*Client) StatesToIndexes ¶ added in v0.16.1
func (*Client) TxAtMachTime ¶ added in v0.18.9
func (*Client) TxAtQueueTick ¶ added in v0.18.9
func (*Client) TxAtStateTick ¶ added in v0.19.7
TxAtStateTick returns the index of the first transition after which [state] reached the [tick] of its clock, or the closest later transition.
func (*Client) TxExecutedBy ¶ added in v0.18.9
TxExecutedBy returns the execution transition for a queued transition
func (*Client) TxIndex ¶ added in v0.16.1
TxIndex returns the index of transition ID [id] or -1 if not found.
func (*Client) TxIsMarked ¶ added in v0.19.3
type DbgMsgSchemaFwd ¶ added in v0.12.0
type DbgMsgSchemaFwd struct {
MsgStruct *dbg.DbgMsgStruct
ConnId string
}
type Exportable ¶ added in v0.16.1
type RPCServer ¶
type RPCServer struct {
Mach *am.Machine
// TODO ConnId
ConnID string
FwdTo []*fwdConn
// contains filtered or unexported fields
}
TODO rename to RPCServer (compat break)
func (*RPCServer) DbgMsgSchema ¶ added in v0.15.0
func (r *RPCServer) DbgMsgSchema( msgSchema *dbg.DbgMsgStruct, _ *string, ) error
func (*RPCServer) DbgMsgSchemaFwd ¶ added in v0.12.0
func (r *RPCServer) DbgMsgSchemaFwd( msg *DbgMsgSchemaFwd, _ *string, ) error
TODO rename to RemoteMsgSchemaReceive (compat break)