mirror of
https://github.com/luxfi/netrunner.git
synced 2026-07-27 00:04:23 +00:00
- Rename staking.key -> luxtls.key in embedded configs - Rename staking.crt -> luxtls.crt in embedded configs - Update imports to github.com/luxfi/constants
36 lines
630 B
Go
36 lines
630 B
Go
package local
|
|
|
|
import "github.com/luxfi/p2p/message"
|
|
|
|
var _ message.OutboundMessage = &TestMsg{}
|
|
|
|
type TestMsg struct {
|
|
op message.Op
|
|
bytes []byte
|
|
bypassThrottling bool
|
|
}
|
|
|
|
func NewTestMsg(op message.Op, bytes []byte, bypassThrottling bool) *TestMsg {
|
|
return &TestMsg{
|
|
op: op,
|
|
bytes: bytes,
|
|
bypassThrottling: bypassThrottling,
|
|
}
|
|
}
|
|
|
|
func (m *TestMsg) BypassThrottling() bool {
|
|
return m.bypassThrottling
|
|
}
|
|
|
|
func (m *TestMsg) Op() message.Op {
|
|
return m.op
|
|
}
|
|
|
|
func (m *TestMsg) Bytes() []byte {
|
|
return m.bytes
|
|
}
|
|
|
|
func (*TestMsg) BytesSavedCompression() int {
|
|
return 0
|
|
}
|