msgsend

package
v0.0.0-...-2f68b9a Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or or http://www.opensource.org/licenses/mit-license.php

Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or or http://www.opensource.org/licenses/mit-license.php

Copyright (c) 2018 The MATRIX Authors Distributed under the MIT software license, see the accompanying file COPYING or or http://www.opensource.org/licenses/mit-license.php

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlgorithmMsg

type AlgorithmMsg struct {
	Account common.Address
	Data    NetData
}

AlgorithmMsg

type HD

type HD struct {
	// contains filtered or unexported fields
}

func NewHD

func NewHD() (*HD, error)

func (*HD) SendNodeMsg

func (self *HD) SendNodeMsg(subCode mc.EventCode, msg interface{}, Roles common.RoleType, nodes []common.Address)

type MsgCodec

type MsgCodec interface {
	EncodeFn(msg interface{}) ([]byte, error)
	DecodeFn(data []byte, from common.Address) (interface{}, error)
}

每个模块需要自己实现这两个接口

type NetData

type NetData struct {
	SubCode uint32
	Msg     []byte
}

NetData

Jump to

Keyboard shortcuts

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