Versions in this module Expand all Collapse all v0 v0.1.0 Jul 3, 2019 Changes in this version + type MessageDTO struct + ClientID uint32 + Data []byte + MsgID uint16 + MsgName string + type MsgWithContext struct + Msg api.Message + Multipart bool + SeqNum uint16 + type ReplyHandler func(request MessageDTO) (reply []byte, msgID uint16, ok bool) + type StatsAdapter struct + func NewStatsAdapter() *StatsAdapter + func (a *StatsAdapter) Connect() error + func (a *StatsAdapter) Disconnect() error + func (a *StatsAdapter) DumpStats(patterns ...string) ([]*adapter.StatEntry, error) + func (a *StatsAdapter) ListStats(patterns ...string) ([]string, error) + func (a *StatsAdapter) MockStats(stats []*adapter.StatEntry) + type VppAdapter struct + func NewVppAdapter() *VppAdapter + func (a *VppAdapter) Connect() error + func (a *VppAdapter) Disconnect() error + func (a *VppAdapter) GetMsgID(msgName string, msgCrc string) (uint16, error) + func (a *VppAdapter) GetMsgNameByID(msgID uint16) (string, bool) + func (a *VppAdapter) MockReply(msgs ...api.Message) + func (a *VppAdapter) MockReplyHandler(replyHandler ReplyHandler) + func (a *VppAdapter) MockReplyWithContext(msgs ...MsgWithContext) + func (a *VppAdapter) ReplyBytes(request MessageDTO, reply api.Message) ([]byte, error) + func (a *VppAdapter) ReplyFor(requestMsgName string) (api.Message, uint16, bool) + func (a *VppAdapter) ReplyTypeFor(requestMsgName string) (reflect.Type, uint16, bool) + func (a *VppAdapter) SendMsg(clientID uint32, data []byte) error + func (a *VppAdapter) SetMsgCallback(cb adapter.MsgCallback) + func (a *VppAdapter) WaitReady() error