ensicoin_rpc

package
v0.0.0-...-c3aa728 Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Error_name = map[int32]string{
	0: "INVALID_DATA",
}
View Source
var Error_value = map[string]int32{
	"INVALID_DATA": 0,
}

Functions

func RegisterNodeServer

func RegisterNodeServer(s *grpc.Server, srv NodeServer)

Types

type Address

type Address struct {
	Ip                   string   `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Port                 uint32   `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Address) Descriptor

func (*Address) Descriptor() ([]byte, []int)

func (*Address) GetIp

func (m *Address) GetIp() string

func (*Address) GetPort

func (m *Address) GetPort() uint32

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) String

func (m *Address) String() string

func (*Address) XXX_DiscardUnknown

func (m *Address) XXX_DiscardUnknown()

func (*Address) XXX_Marshal

func (m *Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Address) XXX_Merge

func (dst *Address) XXX_Merge(src proto.Message)

func (*Address) XXX_Size

func (m *Address) XXX_Size() int

func (*Address) XXX_Unmarshal

func (m *Address) XXX_Unmarshal(b []byte) error

type Block

type Block struct {
	Hash                 []byte   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Version              uint32   `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	Flags                []string `protobuf:"bytes,3,rep,name=flags,proto3" json:"flags,omitempty"`
	PrevBlock            []byte   `protobuf:"bytes,4,opt,name=prev_block,json=prevBlock,proto3" json:"prev_block,omitempty"`
	MerkleRoot           []byte   `protobuf:"bytes,5,opt,name=merkle_root,json=merkleRoot,proto3" json:"merkle_root,omitempty"`
	Timestamp            uint64   `protobuf:"varint,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Height               uint32   `protobuf:"varint,7,opt,name=height,proto3" json:"height,omitempty"`
	Target               []byte   `protobuf:"bytes,8,opt,name=target,proto3" json:"target,omitempty"`
	Txs                  []*Tx    `protobuf:"bytes,9,rep,name=txs,proto3" json:"txs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Block) Descriptor

func (*Block) Descriptor() ([]byte, []int)

func (*Block) GetFlags

func (m *Block) GetFlags() []string

func (*Block) GetHash

func (m *Block) GetHash() []byte

func (*Block) GetHeight

func (m *Block) GetHeight() uint32

func (*Block) GetMerkleRoot

func (m *Block) GetMerkleRoot() []byte

func (*Block) GetPrevBlock

func (m *Block) GetPrevBlock() []byte

func (*Block) GetTarget

func (m *Block) GetTarget() []byte

func (*Block) GetTimestamp

func (m *Block) GetTimestamp() uint64

func (*Block) GetTxs

func (m *Block) GetTxs() []*Tx

func (*Block) GetVersion

func (m *Block) GetVersion() uint32

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) Reset

func (m *Block) Reset()

func (*Block) String

func (m *Block) String() string

func (*Block) XXX_DiscardUnknown

func (m *Block) XXX_DiscardUnknown()

func (*Block) XXX_Marshal

func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Block) XXX_Merge

func (dst *Block) XXX_Merge(src proto.Message)

func (*Block) XXX_Size

func (m *Block) XXX_Size() int

func (*Block) XXX_Unmarshal

func (m *Block) XXX_Unmarshal(b []byte) error

type BlockTemplate

type BlockTemplate struct {
	Version              uint32   `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Flags                []string `protobuf:"bytes,2,rep,name=flags,proto3" json:"flags,omitempty"`
	PrevBlock            []byte   `protobuf:"bytes,3,opt,name=prev_block,json=prevBlock,proto3" json:"prev_block,omitempty"`
	Timestamp            uint64   `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Height               uint32   `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	Target               []byte   `protobuf:"bytes,6,opt,name=target,proto3" json:"target,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BlockTemplate) Descriptor

func (*BlockTemplate) Descriptor() ([]byte, []int)

func (*BlockTemplate) GetFlags

func (m *BlockTemplate) GetFlags() []string

func (*BlockTemplate) GetHeight

func (m *BlockTemplate) GetHeight() uint32

func (*BlockTemplate) GetPrevBlock

func (m *BlockTemplate) GetPrevBlock() []byte

func (*BlockTemplate) GetTarget

func (m *BlockTemplate) GetTarget() []byte

func (*BlockTemplate) GetTimestamp

func (m *BlockTemplate) GetTimestamp() uint64

func (*BlockTemplate) GetVersion

func (m *BlockTemplate) GetVersion() uint32

func (*BlockTemplate) ProtoMessage

func (*BlockTemplate) ProtoMessage()

func (*BlockTemplate) Reset

func (m *BlockTemplate) Reset()

func (*BlockTemplate) String

func (m *BlockTemplate) String() string

func (*BlockTemplate) XXX_DiscardUnknown

func (m *BlockTemplate) XXX_DiscardUnknown()

func (*BlockTemplate) XXX_Marshal

func (m *BlockTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BlockTemplate) XXX_Merge

func (dst *BlockTemplate) XXX_Merge(src proto.Message)

func (*BlockTemplate) XXX_Size

func (m *BlockTemplate) XXX_Size() int

func (*BlockTemplate) XXX_Unmarshal

func (m *BlockTemplate) XXX_Unmarshal(b []byte) error

type ConnectPeerReply

type ConnectPeerReply struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ConnectPeerReply) Descriptor

func (*ConnectPeerReply) Descriptor() ([]byte, []int)

func (*ConnectPeerReply) ProtoMessage

func (*ConnectPeerReply) ProtoMessage()

func (*ConnectPeerReply) Reset

func (m *ConnectPeerReply) Reset()

func (*ConnectPeerReply) String

func (m *ConnectPeerReply) String() string

func (*ConnectPeerReply) XXX_DiscardUnknown

func (m *ConnectPeerReply) XXX_DiscardUnknown()

func (*ConnectPeerReply) XXX_Marshal

func (m *ConnectPeerReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConnectPeerReply) XXX_Merge

func (dst *ConnectPeerReply) XXX_Merge(src proto.Message)

func (*ConnectPeerReply) XXX_Size

func (m *ConnectPeerReply) XXX_Size() int

func (*ConnectPeerReply) XXX_Unmarshal

func (m *ConnectPeerReply) XXX_Unmarshal(b []byte) error

type ConnectPeerRequest

type ConnectPeerRequest struct {
	Peer                 *Peer    `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ConnectPeerRequest) Descriptor

func (*ConnectPeerRequest) Descriptor() ([]byte, []int)

func (*ConnectPeerRequest) GetPeer

func (m *ConnectPeerRequest) GetPeer() *Peer

func (*ConnectPeerRequest) ProtoMessage

func (*ConnectPeerRequest) ProtoMessage()

func (*ConnectPeerRequest) Reset

func (m *ConnectPeerRequest) Reset()

func (*ConnectPeerRequest) String

func (m *ConnectPeerRequest) String() string

func (*ConnectPeerRequest) XXX_DiscardUnknown

func (m *ConnectPeerRequest) XXX_DiscardUnknown()

func (*ConnectPeerRequest) XXX_Marshal

func (m *ConnectPeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ConnectPeerRequest) XXX_Merge

func (dst *ConnectPeerRequest) XXX_Merge(src proto.Message)

func (*ConnectPeerRequest) XXX_Size

func (m *ConnectPeerRequest) XXX_Size() int

func (*ConnectPeerRequest) XXX_Unmarshal

func (m *ConnectPeerRequest) XXX_Unmarshal(b []byte) error

type DisconnectPeerReply

type DisconnectPeerReply struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DisconnectPeerReply) Descriptor

func (*DisconnectPeerReply) Descriptor() ([]byte, []int)

func (*DisconnectPeerReply) ProtoMessage

func (*DisconnectPeerReply) ProtoMessage()

func (*DisconnectPeerReply) Reset

func (m *DisconnectPeerReply) Reset()

func (*DisconnectPeerReply) String

func (m *DisconnectPeerReply) String() string

func (*DisconnectPeerReply) XXX_DiscardUnknown

func (m *DisconnectPeerReply) XXX_DiscardUnknown()

func (*DisconnectPeerReply) XXX_Marshal

func (m *DisconnectPeerReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DisconnectPeerReply) XXX_Merge

func (dst *DisconnectPeerReply) XXX_Merge(src proto.Message)

func (*DisconnectPeerReply) XXX_Size

func (m *DisconnectPeerReply) XXX_Size() int

func (*DisconnectPeerReply) XXX_Unmarshal

func (m *DisconnectPeerReply) XXX_Unmarshal(b []byte) error

type DisconnectPeerRequest

type DisconnectPeerRequest struct {
	Peer                 *Peer    `protobuf:"bytes,1,opt,name=peer,proto3" json:"peer,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DisconnectPeerRequest) Descriptor

func (*DisconnectPeerRequest) Descriptor() ([]byte, []int)

func (*DisconnectPeerRequest) GetPeer

func (m *DisconnectPeerRequest) GetPeer() *Peer

func (*DisconnectPeerRequest) ProtoMessage

func (*DisconnectPeerRequest) ProtoMessage()

func (*DisconnectPeerRequest) Reset

func (m *DisconnectPeerRequest) Reset()

func (*DisconnectPeerRequest) String

func (m *DisconnectPeerRequest) String() string

func (*DisconnectPeerRequest) XXX_DiscardUnknown

func (m *DisconnectPeerRequest) XXX_DiscardUnknown()

func (*DisconnectPeerRequest) XXX_Marshal

func (m *DisconnectPeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DisconnectPeerRequest) XXX_Merge

func (dst *DisconnectPeerRequest) XXX_Merge(src proto.Message)

func (*DisconnectPeerRequest) XXX_Size

func (m *DisconnectPeerRequest) XXX_Size() int

func (*DisconnectPeerRequest) XXX_Unmarshal

func (m *DisconnectPeerRequest) XXX_Unmarshal(b []byte) error

type Error

type Error int32
const (
	Error_INVALID_DATA Error = 0
)

func (Error) EnumDescriptor

func (Error) EnumDescriptor() ([]byte, []int)

func (Error) String

func (x Error) String() string

type GetBestBlocksReply

type GetBestBlocksReply struct {
	Hash                 []byte   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetBestBlocksReply) Descriptor

func (*GetBestBlocksReply) Descriptor() ([]byte, []int)

func (*GetBestBlocksReply) GetHash

func (m *GetBestBlocksReply) GetHash() []byte

func (*GetBestBlocksReply) ProtoMessage

func (*GetBestBlocksReply) ProtoMessage()

func (*GetBestBlocksReply) Reset

func (m *GetBestBlocksReply) Reset()

func (*GetBestBlocksReply) String

func (m *GetBestBlocksReply) String() string

func (*GetBestBlocksReply) XXX_DiscardUnknown

func (m *GetBestBlocksReply) XXX_DiscardUnknown()

func (*GetBestBlocksReply) XXX_Marshal

func (m *GetBestBlocksReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBestBlocksReply) XXX_Merge

func (dst *GetBestBlocksReply) XXX_Merge(src proto.Message)

func (*GetBestBlocksReply) XXX_Size

func (m *GetBestBlocksReply) XXX_Size() int

func (*GetBestBlocksReply) XXX_Unmarshal

func (m *GetBestBlocksReply) XXX_Unmarshal(b []byte) error

type GetBestBlocksRequest

type GetBestBlocksRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetBestBlocksRequest) Descriptor

func (*GetBestBlocksRequest) Descriptor() ([]byte, []int)

func (*GetBestBlocksRequest) ProtoMessage

func (*GetBestBlocksRequest) ProtoMessage()

func (*GetBestBlocksRequest) Reset

func (m *GetBestBlocksRequest) Reset()

func (*GetBestBlocksRequest) String

func (m *GetBestBlocksRequest) String() string

func (*GetBestBlocksRequest) XXX_DiscardUnknown

func (m *GetBestBlocksRequest) XXX_DiscardUnknown()

func (*GetBestBlocksRequest) XXX_Marshal

func (m *GetBestBlocksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBestBlocksRequest) XXX_Merge

func (dst *GetBestBlocksRequest) XXX_Merge(src proto.Message)

func (*GetBestBlocksRequest) XXX_Size

func (m *GetBestBlocksRequest) XXX_Size() int

func (*GetBestBlocksRequest) XXX_Unmarshal

func (m *GetBestBlocksRequest) XXX_Unmarshal(b []byte) error

type GetBlockByHashReply

type GetBlockByHashReply struct {
	Block                *Block   `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetBlockByHashReply) Descriptor

func (*GetBlockByHashReply) Descriptor() ([]byte, []int)

func (*GetBlockByHashReply) GetBlock

func (m *GetBlockByHashReply) GetBlock() *Block

func (*GetBlockByHashReply) ProtoMessage

func (*GetBlockByHashReply) ProtoMessage()

func (*GetBlockByHashReply) Reset

func (m *GetBlockByHashReply) Reset()

func (*GetBlockByHashReply) String

func (m *GetBlockByHashReply) String() string

func (*GetBlockByHashReply) XXX_DiscardUnknown

func (m *GetBlockByHashReply) XXX_DiscardUnknown()

func (*GetBlockByHashReply) XXX_Marshal

func (m *GetBlockByHashReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBlockByHashReply) XXX_Merge

func (dst *GetBlockByHashReply) XXX_Merge(src proto.Message)

func (*GetBlockByHashReply) XXX_Size

func (m *GetBlockByHashReply) XXX_Size() int

func (*GetBlockByHashReply) XXX_Unmarshal

func (m *GetBlockByHashReply) XXX_Unmarshal(b []byte) error

type GetBlockByHashRequest

type GetBlockByHashRequest struct {
	Hash                 []byte   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetBlockByHashRequest) Descriptor

func (*GetBlockByHashRequest) Descriptor() ([]byte, []int)

func (*GetBlockByHashRequest) GetHash

func (m *GetBlockByHashRequest) GetHash() []byte

func (*GetBlockByHashRequest) ProtoMessage

func (*GetBlockByHashRequest) ProtoMessage()

func (*GetBlockByHashRequest) Reset

func (m *GetBlockByHashRequest) Reset()

func (*GetBlockByHashRequest) String

func (m *GetBlockByHashRequest) String() string

func (*GetBlockByHashRequest) XXX_DiscardUnknown

func (m *GetBlockByHashRequest) XXX_DiscardUnknown()

func (*GetBlockByHashRequest) XXX_Marshal

func (m *GetBlockByHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBlockByHashRequest) XXX_Merge

func (dst *GetBlockByHashRequest) XXX_Merge(src proto.Message)

func (*GetBlockByHashRequest) XXX_Size

func (m *GetBlockByHashRequest) XXX_Size() int

func (*GetBlockByHashRequest) XXX_Unmarshal

func (m *GetBlockByHashRequest) XXX_Unmarshal(b []byte) error

type GetBlockTemplateReply

type GetBlockTemplateReply struct {
	BlockTemplate        *BlockTemplate `protobuf:"bytes,1,opt,name=block_template,json=blockTemplate,proto3" json:"block_template,omitempty"`
	Txs                  []*Tx          `protobuf:"bytes,2,rep,name=txs,proto3" json:"txs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*GetBlockTemplateReply) Descriptor

func (*GetBlockTemplateReply) Descriptor() ([]byte, []int)

func (*GetBlockTemplateReply) GetBlockTemplate

func (m *GetBlockTemplateReply) GetBlockTemplate() *BlockTemplate

func (*GetBlockTemplateReply) GetTxs

func (m *GetBlockTemplateReply) GetTxs() []*Tx

func (*GetBlockTemplateReply) ProtoMessage

func (*GetBlockTemplateReply) ProtoMessage()

func (*GetBlockTemplateReply) Reset

func (m *GetBlockTemplateReply) Reset()

func (*GetBlockTemplateReply) String

func (m *GetBlockTemplateReply) String() string

func (*GetBlockTemplateReply) XXX_DiscardUnknown

func (m *GetBlockTemplateReply) XXX_DiscardUnknown()

func (*GetBlockTemplateReply) XXX_Marshal

func (m *GetBlockTemplateReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBlockTemplateReply) XXX_Merge

func (dst *GetBlockTemplateReply) XXX_Merge(src proto.Message)

func (*GetBlockTemplateReply) XXX_Size

func (m *GetBlockTemplateReply) XXX_Size() int

func (*GetBlockTemplateReply) XXX_Unmarshal

func (m *GetBlockTemplateReply) XXX_Unmarshal(b []byte) error

type GetBlockTemplateRequest

type GetBlockTemplateRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetBlockTemplateRequest) Descriptor

func (*GetBlockTemplateRequest) Descriptor() ([]byte, []int)

func (*GetBlockTemplateRequest) ProtoMessage

func (*GetBlockTemplateRequest) ProtoMessage()

func (*GetBlockTemplateRequest) Reset

func (m *GetBlockTemplateRequest) Reset()

func (*GetBlockTemplateRequest) String

func (m *GetBlockTemplateRequest) String() string

func (*GetBlockTemplateRequest) XXX_DiscardUnknown

func (m *GetBlockTemplateRequest) XXX_DiscardUnknown()

func (*GetBlockTemplateRequest) XXX_Marshal

func (m *GetBlockTemplateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBlockTemplateRequest) XXX_Merge

func (dst *GetBlockTemplateRequest) XXX_Merge(src proto.Message)

func (*GetBlockTemplateRequest) XXX_Size

func (m *GetBlockTemplateRequest) XXX_Size() int

func (*GetBlockTemplateRequest) XXX_Unmarshal

func (m *GetBlockTemplateRequest) XXX_Unmarshal(b []byte) error

type GetInfoReply

type GetInfoReply struct {
	Implementation       string   `protobuf:"bytes,1,opt,name=implementation,proto3" json:"implementation,omitempty"`
	ProtocolVersion      uint32   `protobuf:"varint,2,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
	BestBlockHash        []byte   `protobuf:"bytes,3,opt,name=best_block_hash,json=bestBlockHash,proto3" json:"best_block_hash,omitempty"`
	GenesisBlockHash     []byte   `protobuf:"bytes,4,opt,name=genesis_block_hash,json=genesisBlockHash,proto3" json:"genesis_block_hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetInfoReply) Descriptor

func (*GetInfoReply) Descriptor() ([]byte, []int)

func (*GetInfoReply) GetBestBlockHash

func (m *GetInfoReply) GetBestBlockHash() []byte

func (*GetInfoReply) GetGenesisBlockHash

func (m *GetInfoReply) GetGenesisBlockHash() []byte

func (*GetInfoReply) GetImplementation

func (m *GetInfoReply) GetImplementation() string

func (*GetInfoReply) GetProtocolVersion

func (m *GetInfoReply) GetProtocolVersion() uint32

func (*GetInfoReply) ProtoMessage

func (*GetInfoReply) ProtoMessage()

func (*GetInfoReply) Reset

func (m *GetInfoReply) Reset()

func (*GetInfoReply) String

func (m *GetInfoReply) String() string

func (*GetInfoReply) XXX_DiscardUnknown

func (m *GetInfoReply) XXX_DiscardUnknown()

func (*GetInfoReply) XXX_Marshal

func (m *GetInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetInfoReply) XXX_Merge

func (dst *GetInfoReply) XXX_Merge(src proto.Message)

func (*GetInfoReply) XXX_Size

func (m *GetInfoReply) XXX_Size() int

func (*GetInfoReply) XXX_Unmarshal

func (m *GetInfoReply) XXX_Unmarshal(b []byte) error

type GetInfoRequest

type GetInfoRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetInfoRequest) Descriptor

func (*GetInfoRequest) Descriptor() ([]byte, []int)

func (*GetInfoRequest) ProtoMessage

func (*GetInfoRequest) ProtoMessage()

func (*GetInfoRequest) Reset

func (m *GetInfoRequest) Reset()

func (*GetInfoRequest) String

func (m *GetInfoRequest) String() string

func (*GetInfoRequest) XXX_DiscardUnknown

func (m *GetInfoRequest) XXX_DiscardUnknown()

func (*GetInfoRequest) XXX_Marshal

func (m *GetInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetInfoRequest) XXX_Merge

func (dst *GetInfoRequest) XXX_Merge(src proto.Message)

func (*GetInfoRequest) XXX_Size

func (m *GetInfoRequest) XXX_Size() int

func (*GetInfoRequest) XXX_Unmarshal

func (m *GetInfoRequest) XXX_Unmarshal(b []byte) error

type GetTxByHashReply

type GetTxByHashReply struct {
	Tx                   *Tx      `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetTxByHashReply) Descriptor

func (*GetTxByHashReply) Descriptor() ([]byte, []int)

func (*GetTxByHashReply) GetTx

func (m *GetTxByHashReply) GetTx() *Tx

func (*GetTxByHashReply) ProtoMessage

func (*GetTxByHashReply) ProtoMessage()

func (*GetTxByHashReply) Reset

func (m *GetTxByHashReply) Reset()

func (*GetTxByHashReply) String

func (m *GetTxByHashReply) String() string

func (*GetTxByHashReply) XXX_DiscardUnknown

func (m *GetTxByHashReply) XXX_DiscardUnknown()

func (*GetTxByHashReply) XXX_Marshal

func (m *GetTxByHashReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTxByHashReply) XXX_Merge

func (dst *GetTxByHashReply) XXX_Merge(src proto.Message)

func (*GetTxByHashReply) XXX_Size

func (m *GetTxByHashReply) XXX_Size() int

func (*GetTxByHashReply) XXX_Unmarshal

func (m *GetTxByHashReply) XXX_Unmarshal(b []byte) error

type GetTxByHashRequest

type GetTxByHashRequest struct {
	Hash                 []byte   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetTxByHashRequest) Descriptor

func (*GetTxByHashRequest) Descriptor() ([]byte, []int)

func (*GetTxByHashRequest) GetHash

func (m *GetTxByHashRequest) GetHash() []byte

func (*GetTxByHashRequest) ProtoMessage

func (*GetTxByHashRequest) ProtoMessage()

func (*GetTxByHashRequest) Reset

func (m *GetTxByHashRequest) Reset()

func (*GetTxByHashRequest) String

func (m *GetTxByHashRequest) String() string

func (*GetTxByHashRequest) XXX_DiscardUnknown

func (m *GetTxByHashRequest) XXX_DiscardUnknown()

func (*GetTxByHashRequest) XXX_Marshal

func (m *GetTxByHashRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetTxByHashRequest) XXX_Merge

func (dst *GetTxByHashRequest) XXX_Merge(src proto.Message)

func (*GetTxByHashRequest) XXX_Size

func (m *GetTxByHashRequest) XXX_Size() int

func (*GetTxByHashRequest) XXX_Unmarshal

func (m *GetTxByHashRequest) XXX_Unmarshal(b []byte) error

type NodeClient

NodeClient is the client API for Node service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewNodeClient

func NewNodeClient(cc *grpc.ClientConn) NodeClient

type Node_GetBestBlocksClient

type Node_GetBestBlocksClient interface {
	Recv() (*GetBestBlocksReply, error)
	grpc.ClientStream
}

type Node_GetBestBlocksServer

type Node_GetBestBlocksServer interface {
	Send(*GetBestBlocksReply) error
	grpc.ServerStream
}

type Node_GetBlockTemplateClient

type Node_GetBlockTemplateClient interface {
	Recv() (*GetBlockTemplateReply, error)
	grpc.ClientStream
}

type Node_GetBlockTemplateServer

type Node_GetBlockTemplateServer interface {
	Send(*GetBlockTemplateReply) error
	grpc.ServerStream
}

type Outpoint

type Outpoint struct {
	Hash                 []byte   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Index                uint32   `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Outpoint) Descriptor

func (*Outpoint) Descriptor() ([]byte, []int)

func (*Outpoint) GetHash

func (m *Outpoint) GetHash() []byte

func (*Outpoint) GetIndex

func (m *Outpoint) GetIndex() uint32

func (*Outpoint) ProtoMessage

func (*Outpoint) ProtoMessage()

func (*Outpoint) Reset

func (m *Outpoint) Reset()

func (*Outpoint) String

func (m *Outpoint) String() string

func (*Outpoint) XXX_DiscardUnknown

func (m *Outpoint) XXX_DiscardUnknown()

func (*Outpoint) XXX_Marshal

func (m *Outpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Outpoint) XXX_Merge

func (dst *Outpoint) XXX_Merge(src proto.Message)

func (*Outpoint) XXX_Size

func (m *Outpoint) XXX_Size() int

func (*Outpoint) XXX_Unmarshal

func (m *Outpoint) XXX_Unmarshal(b []byte) error

type Peer

type Peer struct {
	Address              *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Peer) Descriptor

func (*Peer) Descriptor() ([]byte, []int)

func (*Peer) GetAddress

func (m *Peer) GetAddress() *Address

func (*Peer) ProtoMessage

func (*Peer) ProtoMessage()

func (*Peer) Reset

func (m *Peer) Reset()

func (*Peer) String

func (m *Peer) String() string

func (*Peer) XXX_DiscardUnknown

func (m *Peer) XXX_DiscardUnknown()

func (*Peer) XXX_Marshal

func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Peer) XXX_Merge

func (dst *Peer) XXX_Merge(src proto.Message)

func (*Peer) XXX_Size

func (m *Peer) XXX_Size() int

func (*Peer) XXX_Unmarshal

func (m *Peer) XXX_Unmarshal(b []byte) error

type PublishRawBlockReply

type PublishRawBlockReply struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PublishRawBlockReply) Descriptor

func (*PublishRawBlockReply) Descriptor() ([]byte, []int)

func (*PublishRawBlockReply) ProtoMessage

func (*PublishRawBlockReply) ProtoMessage()

func (*PublishRawBlockReply) Reset

func (m *PublishRawBlockReply) Reset()

func (*PublishRawBlockReply) String

func (m *PublishRawBlockReply) String() string

func (*PublishRawBlockReply) XXX_DiscardUnknown

func (m *PublishRawBlockReply) XXX_DiscardUnknown()

func (*PublishRawBlockReply) XXX_Marshal

func (m *PublishRawBlockReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PublishRawBlockReply) XXX_Merge

func (dst *PublishRawBlockReply) XXX_Merge(src proto.Message)

func (*PublishRawBlockReply) XXX_Size

func (m *PublishRawBlockReply) XXX_Size() int

func (*PublishRawBlockReply) XXX_Unmarshal

func (m *PublishRawBlockReply) XXX_Unmarshal(b []byte) error

type PublishRawBlockRequest

type PublishRawBlockRequest struct {
	RawBlock             []byte   `protobuf:"bytes,1,opt,name=raw_block,json=rawBlock,proto3" json:"raw_block,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PublishRawBlockRequest) Descriptor

func (*PublishRawBlockRequest) Descriptor() ([]byte, []int)

func (*PublishRawBlockRequest) GetRawBlock

func (m *PublishRawBlockRequest) GetRawBlock() []byte

func (*PublishRawBlockRequest) ProtoMessage

func (*PublishRawBlockRequest) ProtoMessage()

func (*PublishRawBlockRequest) Reset

func (m *PublishRawBlockRequest) Reset()

func (*PublishRawBlockRequest) String

func (m *PublishRawBlockRequest) String() string

func (*PublishRawBlockRequest) XXX_DiscardUnknown

func (m *PublishRawBlockRequest) XXX_DiscardUnknown()

func (*PublishRawBlockRequest) XXX_Marshal

func (m *PublishRawBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PublishRawBlockRequest) XXX_Merge

func (dst *PublishRawBlockRequest) XXX_Merge(src proto.Message)

func (*PublishRawBlockRequest) XXX_Size

func (m *PublishRawBlockRequest) XXX_Size() int

func (*PublishRawBlockRequest) XXX_Unmarshal

func (m *PublishRawBlockRequest) XXX_Unmarshal(b []byte) error

type PublishRawTxReply

type PublishRawTxReply struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PublishRawTxReply) Descriptor

func (*PublishRawTxReply) Descriptor() ([]byte, []int)

func (*PublishRawTxReply) ProtoMessage

func (*PublishRawTxReply) ProtoMessage()

func (*PublishRawTxReply) Reset

func (m *PublishRawTxReply) Reset()

func (*PublishRawTxReply) String

func (m *PublishRawTxReply) String() string

func (*PublishRawTxReply) XXX_DiscardUnknown

func (m *PublishRawTxReply) XXX_DiscardUnknown()

func (*PublishRawTxReply) XXX_Marshal

func (m *PublishRawTxReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PublishRawTxReply) XXX_Merge

func (dst *PublishRawTxReply) XXX_Merge(src proto.Message)

func (*PublishRawTxReply) XXX_Size

func (m *PublishRawTxReply) XXX_Size() int

func (*PublishRawTxReply) XXX_Unmarshal

func (m *PublishRawTxReply) XXX_Unmarshal(b []byte) error

type PublishRawTxRequest

type PublishRawTxRequest struct {
	RawTx                []byte   `protobuf:"bytes,1,opt,name=raw_tx,json=rawTx,proto3" json:"raw_tx,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PublishRawTxRequest) Descriptor

func (*PublishRawTxRequest) Descriptor() ([]byte, []int)

func (*PublishRawTxRequest) GetRawTx

func (m *PublishRawTxRequest) GetRawTx() []byte

func (*PublishRawTxRequest) ProtoMessage

func (*PublishRawTxRequest) ProtoMessage()

func (*PublishRawTxRequest) Reset

func (m *PublishRawTxRequest) Reset()

func (*PublishRawTxRequest) String

func (m *PublishRawTxRequest) String() string

func (*PublishRawTxRequest) XXX_DiscardUnknown

func (m *PublishRawTxRequest) XXX_DiscardUnknown()

func (*PublishRawTxRequest) XXX_Marshal

func (m *PublishRawTxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PublishRawTxRequest) XXX_Merge

func (dst *PublishRawTxRequest) XXX_Merge(src proto.Message)

func (*PublishRawTxRequest) XXX_Size

func (m *PublishRawTxRequest) XXX_Size() int

func (*PublishRawTxRequest) XXX_Unmarshal

func (m *PublishRawTxRequest) XXX_Unmarshal(b []byte) error

type Reply

type Reply struct {
	Error                Error    `protobuf:"varint,1,opt,name=error,proto3,enum=ensicoin_rpc.Error" json:"error,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Reply) Descriptor

func (*Reply) Descriptor() ([]byte, []int)

func (*Reply) GetError

func (m *Reply) GetError() Error

func (*Reply) ProtoMessage

func (*Reply) ProtoMessage()

func (*Reply) Reset

func (m *Reply) Reset()

func (*Reply) String

func (m *Reply) String() string

func (*Reply) XXX_DiscardUnknown

func (m *Reply) XXX_DiscardUnknown()

func (*Reply) XXX_Marshal

func (m *Reply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Reply) XXX_Merge

func (dst *Reply) XXX_Merge(src proto.Message)

func (*Reply) XXX_Size

func (m *Reply) XXX_Size() int

func (*Reply) XXX_Unmarshal

func (m *Reply) XXX_Unmarshal(b []byte) error

type Tx

type Tx struct {
	Version              uint32      `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	Flags                []string    `protobuf:"bytes,2,rep,name=flags,proto3" json:"flags,omitempty"`
	Inputs               []*TxInput  `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"`
	Outputs              []*TxOutput `protobuf:"bytes,4,rep,name=outputs,proto3" json:"outputs,omitempty"`
	Hash                 []byte      `protobuf:"bytes,5,opt,name=hash,proto3" json:"hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

func (*Tx) Descriptor

func (*Tx) Descriptor() ([]byte, []int)

func (*Tx) GetFlags

func (m *Tx) GetFlags() []string

func (*Tx) GetHash

func (m *Tx) GetHash() []byte

func (*Tx) GetInputs

func (m *Tx) GetInputs() []*TxInput

func (*Tx) GetOutputs

func (m *Tx) GetOutputs() []*TxOutput

func (*Tx) GetVersion

func (m *Tx) GetVersion() uint32

func (*Tx) ProtoMessage

func (*Tx) ProtoMessage()

func (*Tx) Reset

func (m *Tx) Reset()

func (*Tx) String

func (m *Tx) String() string

func (*Tx) XXX_DiscardUnknown

func (m *Tx) XXX_DiscardUnknown()

func (*Tx) XXX_Marshal

func (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Tx) XXX_Merge

func (dst *Tx) XXX_Merge(src proto.Message)

func (*Tx) XXX_Size

func (m *Tx) XXX_Size() int

func (*Tx) XXX_Unmarshal

func (m *Tx) XXX_Unmarshal(b []byte) error

type TxInput

type TxInput struct {
	PreviousOutput       *Outpoint `protobuf:"bytes,1,opt,name=previous_output,json=previousOutput,proto3" json:"previous_output,omitempty"`
	Script               []byte    `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*TxInput) Descriptor

func (*TxInput) Descriptor() ([]byte, []int)

func (*TxInput) GetPreviousOutput

func (m *TxInput) GetPreviousOutput() *Outpoint

func (*TxInput) GetScript

func (m *TxInput) GetScript() []byte

func (*TxInput) ProtoMessage

func (*TxInput) ProtoMessage()

func (*TxInput) Reset

func (m *TxInput) Reset()

func (*TxInput) String

func (m *TxInput) String() string

func (*TxInput) XXX_DiscardUnknown

func (m *TxInput) XXX_DiscardUnknown()

func (*TxInput) XXX_Marshal

func (m *TxInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxInput) XXX_Merge

func (dst *TxInput) XXX_Merge(src proto.Message)

func (*TxInput) XXX_Size

func (m *TxInput) XXX_Size() int

func (*TxInput) XXX_Unmarshal

func (m *TxInput) XXX_Unmarshal(b []byte) error

type TxOutput

type TxOutput struct {
	Value                uint64   `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	Script               []byte   `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*TxOutput) Descriptor

func (*TxOutput) Descriptor() ([]byte, []int)

func (*TxOutput) GetScript

func (m *TxOutput) GetScript() []byte

func (*TxOutput) GetValue

func (m *TxOutput) GetValue() uint64

func (*TxOutput) ProtoMessage

func (*TxOutput) ProtoMessage()

func (*TxOutput) Reset

func (m *TxOutput) Reset()

func (*TxOutput) String

func (m *TxOutput) String() string

func (*TxOutput) XXX_DiscardUnknown

func (m *TxOutput) XXX_DiscardUnknown()

func (*TxOutput) XXX_Marshal

func (m *TxOutput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TxOutput) XXX_Merge

func (dst *TxOutput) XXX_Merge(src proto.Message)

func (*TxOutput) XXX_Size

func (m *TxOutput) XXX_Size() int

func (*TxOutput) XXX_Unmarshal

func (m *TxOutput) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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