message

package
v1.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGreeterServer

func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)

Types

type GreeterClient

type GreeterClient interface {
	SendTransaction(ctx context.Context, in *ReqTransaction, opts ...grpc.CallOption) (*ResTransaction, error)
	SendSignedTransaction(ctx context.Context, in *ReqSignedTransaction, opts ...grpc.CallOption) (*RespSignedTransaction, error)
	GetAddressNonceAt(ctx context.Context, in *ReqNonce, opts ...grpc.CallOption) (*ResposeNonce, error)
	GetTxByHash(ctx context.Context, in *ReqTxByHash, opts ...grpc.CallOption) (*Tx, error)
	GetTxsByAddr(ctx context.Context, in *ReqTx, opts ...grpc.CallOption) (*ResposeTxs, error)
	GetBlockByNum(ctx context.Context, in *ReqBlockByNumber, opts ...grpc.CallOption) (*RespBlock, error)
	GetBalance(ctx context.Context, in *ReqBalance, opts ...grpc.CallOption) (*ResBalance, error)
	CreateAddr(ctx context.Context, in *ReqCreateAddr, opts ...grpc.CallOption) (*RespCreateAddr, error)
	GetAddrByPriv(ctx context.Context, in *ReqAddrByPriv, opts ...grpc.CallOption) (*RespAddrByPriv, error)
	GetMaxBlockNumber(ctx context.Context, in *ReqMaxBlockNumber, opts ...grpc.CallOption) (*RespMaxBlockNumber, error)
}

GreeterClient is the client API for Greeter service.

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

func NewGreeterClient

func NewGreeterClient(cc grpc.ClientConnInterface) GreeterClient

type GreeterServer

type GreeterServer interface {
	SendTransaction(context.Context, *ReqTransaction) (*ResTransaction, error)
	SendSignedTransaction(context.Context, *ReqSignedTransaction) (*RespSignedTransaction, error)
	GetAddressNonceAt(context.Context, *ReqNonce) (*ResposeNonce, error)
	GetTxByHash(context.Context, *ReqTxByHash) (*Tx, error)
	GetTxsByAddr(context.Context, *ReqTx) (*ResposeTxs, error)
	GetBlockByNum(context.Context, *ReqBlockByNumber) (*RespBlock, error)
	GetBalance(context.Context, *ReqBalance) (*ResBalance, error)
	CreateAddr(context.Context, *ReqCreateAddr) (*RespCreateAddr, error)
	GetAddrByPriv(context.Context, *ReqAddrByPriv) (*RespAddrByPriv, error)
	GetMaxBlockNumber(context.Context, *ReqMaxBlockNumber) (*RespMaxBlockNumber, error)
}

GreeterServer is the server API for Greeter service.

type ReqAddrByPriv

type ReqAddrByPriv struct {
	Priv                 string   `protobuf:"bytes,1,opt,name=priv,proto3" json:"priv,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqAddrByPriv) Descriptor

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

func (*ReqAddrByPriv) GetPriv

func (m *ReqAddrByPriv) GetPriv() string

func (*ReqAddrByPriv) ProtoMessage

func (*ReqAddrByPriv) ProtoMessage()

func (*ReqAddrByPriv) Reset

func (m *ReqAddrByPriv) Reset()

func (*ReqAddrByPriv) String

func (m *ReqAddrByPriv) String() string

func (*ReqAddrByPriv) XXX_DiscardUnknown

func (m *ReqAddrByPriv) XXX_DiscardUnknown()

func (*ReqAddrByPriv) XXX_Marshal

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

func (*ReqAddrByPriv) XXX_Merge

func (m *ReqAddrByPriv) XXX_Merge(src proto.Message)

func (*ReqAddrByPriv) XXX_Size

func (m *ReqAddrByPriv) XXX_Size() int

func (*ReqAddrByPriv) XXX_Unmarshal

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

type ReqBalance

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

func (*ReqBalance) Descriptor

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

func (*ReqBalance) GetAddress

func (m *ReqBalance) GetAddress() string

func (*ReqBalance) ProtoMessage

func (*ReqBalance) ProtoMessage()

func (*ReqBalance) Reset

func (m *ReqBalance) Reset()

func (*ReqBalance) String

func (m *ReqBalance) String() string

func (*ReqBalance) XXX_DiscardUnknown

func (m *ReqBalance) XXX_DiscardUnknown()

func (*ReqBalance) XXX_Marshal

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

func (*ReqBalance) XXX_Merge

func (m *ReqBalance) XXX_Merge(src proto.Message)

func (*ReqBalance) XXX_Size

func (m *ReqBalance) XXX_Size() int

func (*ReqBalance) XXX_Unmarshal

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

type ReqBlockByHash

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

func (*ReqBlockByHash) Descriptor

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

func (*ReqBlockByHash) GetHash

func (m *ReqBlockByHash) GetHash() string

func (*ReqBlockByHash) ProtoMessage

func (*ReqBlockByHash) ProtoMessage()

func (*ReqBlockByHash) Reset

func (m *ReqBlockByHash) Reset()

func (*ReqBlockByHash) String

func (m *ReqBlockByHash) String() string

func (*ReqBlockByHash) XXX_DiscardUnknown

func (m *ReqBlockByHash) XXX_DiscardUnknown()

func (*ReqBlockByHash) XXX_Marshal

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

func (*ReqBlockByHash) XXX_Merge

func (m *ReqBlockByHash) XXX_Merge(src proto.Message)

func (*ReqBlockByHash) XXX_Size

func (m *ReqBlockByHash) XXX_Size() int

func (*ReqBlockByHash) XXX_Unmarshal

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

type ReqBlockByNumber

type ReqBlockByNumber struct {
	Height               uint64   `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqBlockByNumber) Descriptor

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

func (*ReqBlockByNumber) GetHeight

func (m *ReqBlockByNumber) GetHeight() uint64

func (*ReqBlockByNumber) ProtoMessage

func (*ReqBlockByNumber) ProtoMessage()

func (*ReqBlockByNumber) Reset

func (m *ReqBlockByNumber) Reset()

func (*ReqBlockByNumber) String

func (m *ReqBlockByNumber) String() string

func (*ReqBlockByNumber) XXX_DiscardUnknown

func (m *ReqBlockByNumber) XXX_DiscardUnknown()

func (*ReqBlockByNumber) XXX_Marshal

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

func (*ReqBlockByNumber) XXX_Merge

func (m *ReqBlockByNumber) XXX_Merge(src proto.Message)

func (*ReqBlockByNumber) XXX_Size

func (m *ReqBlockByNumber) XXX_Size() int

func (*ReqBlockByNumber) XXX_Unmarshal

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

type ReqCreateAddr

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

func (*ReqCreateAddr) Descriptor

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

func (*ReqCreateAddr) ProtoMessage

func (*ReqCreateAddr) ProtoMessage()

func (*ReqCreateAddr) Reset

func (m *ReqCreateAddr) Reset()

func (*ReqCreateAddr) String

func (m *ReqCreateAddr) String() string

func (*ReqCreateAddr) XXX_DiscardUnknown

func (m *ReqCreateAddr) XXX_DiscardUnknown()

func (*ReqCreateAddr) XXX_Marshal

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

func (*ReqCreateAddr) XXX_Merge

func (m *ReqCreateAddr) XXX_Merge(src proto.Message)

func (*ReqCreateAddr) XXX_Size

func (m *ReqCreateAddr) XXX_Size() int

func (*ReqCreateAddr) XXX_Unmarshal

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

type ReqMaxBlockNumber

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

func (*ReqMaxBlockNumber) Descriptor

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

func (*ReqMaxBlockNumber) ProtoMessage

func (*ReqMaxBlockNumber) ProtoMessage()

func (*ReqMaxBlockNumber) Reset

func (m *ReqMaxBlockNumber) Reset()

func (*ReqMaxBlockNumber) String

func (m *ReqMaxBlockNumber) String() string

func (*ReqMaxBlockNumber) XXX_DiscardUnknown

func (m *ReqMaxBlockNumber) XXX_DiscardUnknown()

func (*ReqMaxBlockNumber) XXX_Marshal

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

func (*ReqMaxBlockNumber) XXX_Merge

func (m *ReqMaxBlockNumber) XXX_Merge(src proto.Message)

func (*ReqMaxBlockNumber) XXX_Size

func (m *ReqMaxBlockNumber) XXX_Size() int

func (*ReqMaxBlockNumber) XXX_Unmarshal

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

type ReqNonce

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

func (*ReqNonce) Descriptor

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

func (*ReqNonce) GetAddress

func (m *ReqNonce) GetAddress() string

func (*ReqNonce) ProtoMessage

func (*ReqNonce) ProtoMessage()

func (*ReqNonce) Reset

func (m *ReqNonce) Reset()

func (*ReqNonce) String

func (m *ReqNonce) String() string

func (*ReqNonce) XXX_DiscardUnknown

func (m *ReqNonce) XXX_DiscardUnknown()

func (*ReqNonce) XXX_Marshal

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

func (*ReqNonce) XXX_Merge

func (m *ReqNonce) XXX_Merge(src proto.Message)

func (*ReqNonce) XXX_Size

func (m *ReqNonce) XXX_Size() int

func (*ReqNonce) XXX_Unmarshal

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

type ReqSignedTransaction

type ReqSignedTransaction struct {
	From                 string   `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To                   string   `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	Amount               uint64   `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Nonce                uint64   `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Time                 int64    `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"`
	Hash                 []byte   `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"`
	Signature            []byte   `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqSignedTransaction) Descriptor

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

func (*ReqSignedTransaction) GetAmount

func (m *ReqSignedTransaction) GetAmount() uint64

func (*ReqSignedTransaction) GetFrom

func (m *ReqSignedTransaction) GetFrom() string

func (*ReqSignedTransaction) GetHash

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

func (*ReqSignedTransaction) GetNonce

func (m *ReqSignedTransaction) GetNonce() uint64

func (*ReqSignedTransaction) GetSignature

func (m *ReqSignedTransaction) GetSignature() []byte

func (*ReqSignedTransaction) GetTime

func (m *ReqSignedTransaction) GetTime() int64

func (*ReqSignedTransaction) GetTo

func (m *ReqSignedTransaction) GetTo() string

func (*ReqSignedTransaction) ProtoMessage

func (*ReqSignedTransaction) ProtoMessage()

func (*ReqSignedTransaction) Reset

func (m *ReqSignedTransaction) Reset()

func (*ReqSignedTransaction) String

func (m *ReqSignedTransaction) String() string

func (*ReqSignedTransaction) XXX_DiscardUnknown

func (m *ReqSignedTransaction) XXX_DiscardUnknown()

func (*ReqSignedTransaction) XXX_Marshal

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

func (*ReqSignedTransaction) XXX_Merge

func (m *ReqSignedTransaction) XXX_Merge(src proto.Message)

func (*ReqSignedTransaction) XXX_Size

func (m *ReqSignedTransaction) XXX_Size() int

func (*ReqSignedTransaction) XXX_Unmarshal

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

type ReqTransaction

type ReqTransaction struct {
	From                 string   `protobuf:"bytes,1,opt,name=From,proto3" json:"From,omitempty"`
	To                   string   `protobuf:"bytes,2,opt,name=To,proto3" json:"To,omitempty"`
	Amount               uint64   `protobuf:"varint,3,opt,name=Amount,proto3" json:"Amount,omitempty"`
	Nonce                uint64   `protobuf:"varint,4,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	Priv                 string   `protobuf:"bytes,5,opt,name=Priv,proto3" json:"Priv,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ReqTransaction) Descriptor

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

func (*ReqTransaction) GetAmount

func (m *ReqTransaction) GetAmount() uint64

func (*ReqTransaction) GetFrom

func (m *ReqTransaction) GetFrom() string

func (*ReqTransaction) GetNonce

func (m *ReqTransaction) GetNonce() uint64

func (*ReqTransaction) GetPriv

func (m *ReqTransaction) GetPriv() string

func (*ReqTransaction) GetTo

func (m *ReqTransaction) GetTo() string

func (*ReqTransaction) ProtoMessage

func (*ReqTransaction) ProtoMessage()

func (*ReqTransaction) Reset

func (m *ReqTransaction) Reset()

func (*ReqTransaction) String

func (m *ReqTransaction) String() string

func (*ReqTransaction) XXX_DiscardUnknown

func (m *ReqTransaction) XXX_DiscardUnknown()

func (*ReqTransaction) XXX_Marshal

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

func (*ReqTransaction) XXX_Merge

func (m *ReqTransaction) XXX_Merge(src proto.Message)

func (*ReqTransaction) XXX_Size

func (m *ReqTransaction) XXX_Size() int

func (*ReqTransaction) XXX_Unmarshal

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

type ReqTx

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

func (*ReqTx) Descriptor

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

func (*ReqTx) GetAddress

func (m *ReqTx) GetAddress() string

func (*ReqTx) ProtoMessage

func (*ReqTx) ProtoMessage()

func (*ReqTx) Reset

func (m *ReqTx) Reset()

func (*ReqTx) String

func (m *ReqTx) String() string

func (*ReqTx) XXX_DiscardUnknown

func (m *ReqTx) XXX_DiscardUnknown()

func (*ReqTx) XXX_Marshal

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

func (*ReqTx) XXX_Merge

func (m *ReqTx) XXX_Merge(src proto.Message)

func (*ReqTx) XXX_Size

func (m *ReqTx) XXX_Size() int

func (*ReqTx) XXX_Unmarshal

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

type ReqTxByHash

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

func (*ReqTxByHash) Descriptor

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

func (*ReqTxByHash) GetHash

func (m *ReqTxByHash) GetHash() string

func (*ReqTxByHash) ProtoMessage

func (*ReqTxByHash) ProtoMessage()

func (*ReqTxByHash) Reset

func (m *ReqTxByHash) Reset()

func (*ReqTxByHash) String

func (m *ReqTxByHash) String() string

func (*ReqTxByHash) XXX_DiscardUnknown

func (m *ReqTxByHash) XXX_DiscardUnknown()

func (*ReqTxByHash) XXX_Marshal

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

func (*ReqTxByHash) XXX_Merge

func (m *ReqTxByHash) XXX_Merge(src proto.Message)

func (*ReqTxByHash) XXX_Size

func (m *ReqTxByHash) XXX_Size() int

func (*ReqTxByHash) XXX_Unmarshal

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

type ResBalance

type ResBalance struct {
	Balnce               uint64   `protobuf:"varint,1,opt,name=balnce,proto3" json:"balnce,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ResBalance) Descriptor

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

func (*ResBalance) GetBalnce

func (m *ResBalance) GetBalnce() uint64

func (*ResBalance) ProtoMessage

func (*ResBalance) ProtoMessage()

func (*ResBalance) Reset

func (m *ResBalance) Reset()

func (*ResBalance) String

func (m *ResBalance) String() string

func (*ResBalance) XXX_DiscardUnknown

func (m *ResBalance) XXX_DiscardUnknown()

func (*ResBalance) XXX_Marshal

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

func (*ResBalance) XXX_Merge

func (m *ResBalance) XXX_Merge(src proto.Message)

func (*ResBalance) XXX_Size

func (m *ResBalance) XXX_Size() int

func (*ResBalance) XXX_Unmarshal

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

type ResTransaction

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

func (*ResTransaction) Descriptor

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

func (*ResTransaction) GetHash

func (m *ResTransaction) GetHash() string

func (*ResTransaction) ProtoMessage

func (*ResTransaction) ProtoMessage()

func (*ResTransaction) Reset

func (m *ResTransaction) Reset()

func (*ResTransaction) String

func (m *ResTransaction) String() string

func (*ResTransaction) XXX_DiscardUnknown

func (m *ResTransaction) XXX_DiscardUnknown()

func (*ResTransaction) XXX_Marshal

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

func (*ResTransaction) XXX_Merge

func (m *ResTransaction) XXX_Merge(src proto.Message)

func (*ResTransaction) XXX_Size

func (m *ResTransaction) XXX_Size() int

func (*ResTransaction) XXX_Unmarshal

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

type ResTx

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

func (*ResTx) Descriptor

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

func (*ResTx) GetTxs

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

func (*ResTx) ProtoMessage

func (*ResTx) ProtoMessage()

func (*ResTx) Reset

func (m *ResTx) Reset()

func (*ResTx) String

func (m *ResTx) String() string

func (*ResTx) XXX_DiscardUnknown

func (m *ResTx) XXX_DiscardUnknown()

func (*ResTx) XXX_Marshal

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

func (*ResTx) XXX_Merge

func (m *ResTx) XXX_Merge(src proto.Message)

func (*ResTx) XXX_Size

func (m *ResTx) XXX_Size() int

func (*ResTx) XXX_Unmarshal

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

type RespAddrByPriv

type RespAddrByPriv struct {
	Addr                 string   `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RespAddrByPriv) Descriptor

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

func (*RespAddrByPriv) GetAddr

func (m *RespAddrByPriv) GetAddr() string

func (*RespAddrByPriv) ProtoMessage

func (*RespAddrByPriv) ProtoMessage()

func (*RespAddrByPriv) Reset

func (m *RespAddrByPriv) Reset()

func (*RespAddrByPriv) String

func (m *RespAddrByPriv) String() string

func (*RespAddrByPriv) XXX_DiscardUnknown

func (m *RespAddrByPriv) XXX_DiscardUnknown()

func (*RespAddrByPriv) XXX_Marshal

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

func (*RespAddrByPriv) XXX_Merge

func (m *RespAddrByPriv) XXX_Merge(src proto.Message)

func (*RespAddrByPriv) XXX_Size

func (m *RespAddrByPriv) XXX_Size() int

func (*RespAddrByPriv) XXX_Unmarshal

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

type RespBlock

type RespBlock struct {
	Height               uint64   `protobuf:"varint,1,opt,name=Height,proto3" json:"Height,omitempty"`
	PrevBlockHash        string   `protobuf:"bytes,2,opt,name=PrevBlockHash,proto3" json:"PrevBlockHash,omitempty"`
	Txs                  []*Tx    `protobuf:"bytes,3,rep,name=Txs,proto3" json:"Txs,omitempty"`
	Root                 string   `protobuf:"bytes,4,opt,name=Root,proto3" json:"Root,omitempty"`
	Version              uint64   `protobuf:"varint,5,opt,name=Version,proto3" json:"Version,omitempty"`
	Timestamp            int64    `protobuf:"varint,6,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"`
	Hash                 string   `protobuf:"bytes,7,opt,name=Hash,proto3" json:"Hash,omitempty"`
	Miner                string   `protobuf:"bytes,8,opt,name=Miner,proto3" json:"Miner,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RespBlock) Descriptor

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

func (*RespBlock) GetHash

func (m *RespBlock) GetHash() string

func (*RespBlock) GetHeight

func (m *RespBlock) GetHeight() uint64

func (*RespBlock) GetMiner

func (m *RespBlock) GetMiner() string

func (*RespBlock) GetPrevBlockHash

func (m *RespBlock) GetPrevBlockHash() string

func (*RespBlock) GetRoot

func (m *RespBlock) GetRoot() string

func (*RespBlock) GetTimestamp

func (m *RespBlock) GetTimestamp() int64

func (*RespBlock) GetTxs

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

func (*RespBlock) GetVersion

func (m *RespBlock) GetVersion() uint64

func (*RespBlock) ProtoMessage

func (*RespBlock) ProtoMessage()

func (*RespBlock) Reset

func (m *RespBlock) Reset()

func (*RespBlock) String

func (m *RespBlock) String() string

func (*RespBlock) XXX_DiscardUnknown

func (m *RespBlock) XXX_DiscardUnknown()

func (*RespBlock) XXX_Marshal

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

func (*RespBlock) XXX_Merge

func (m *RespBlock) XXX_Merge(src proto.Message)

func (*RespBlock) XXX_Size

func (m *RespBlock) XXX_Size() int

func (*RespBlock) XXX_Unmarshal

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

type RespCreateAddr

type RespCreateAddr struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Privkey              string   `protobuf:"bytes,2,opt,name=privkey,proto3" json:"privkey,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RespCreateAddr) Descriptor

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

func (*RespCreateAddr) GetAddress

func (m *RespCreateAddr) GetAddress() string

func (*RespCreateAddr) GetPrivkey

func (m *RespCreateAddr) GetPrivkey() string

func (*RespCreateAddr) ProtoMessage

func (*RespCreateAddr) ProtoMessage()

func (*RespCreateAddr) Reset

func (m *RespCreateAddr) Reset()

func (*RespCreateAddr) String

func (m *RespCreateAddr) String() string

func (*RespCreateAddr) XXX_DiscardUnknown

func (m *RespCreateAddr) XXX_DiscardUnknown()

func (*RespCreateAddr) XXX_Marshal

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

func (*RespCreateAddr) XXX_Merge

func (m *RespCreateAddr) XXX_Merge(src proto.Message)

func (*RespCreateAddr) XXX_Size

func (m *RespCreateAddr) XXX_Size() int

func (*RespCreateAddr) XXX_Unmarshal

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

type RespMaxBlockNumber

type RespMaxBlockNumber struct {
	MaxNumber            uint64   `protobuf:"varint,1,opt,name=maxNumber,proto3" json:"maxNumber,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RespMaxBlockNumber) Descriptor

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

func (*RespMaxBlockNumber) GetMaxNumber

func (m *RespMaxBlockNumber) GetMaxNumber() uint64

func (*RespMaxBlockNumber) ProtoMessage

func (*RespMaxBlockNumber) ProtoMessage()

func (*RespMaxBlockNumber) Reset

func (m *RespMaxBlockNumber) Reset()

func (*RespMaxBlockNumber) String

func (m *RespMaxBlockNumber) String() string

func (*RespMaxBlockNumber) XXX_DiscardUnknown

func (m *RespMaxBlockNumber) XXX_DiscardUnknown()

func (*RespMaxBlockNumber) XXX_Marshal

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

func (*RespMaxBlockNumber) XXX_Merge

func (m *RespMaxBlockNumber) XXX_Merge(src proto.Message)

func (*RespMaxBlockNumber) XXX_Size

func (m *RespMaxBlockNumber) XXX_Size() int

func (*RespMaxBlockNumber) XXX_Unmarshal

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

type RespSignedTransaction

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

func (*RespSignedTransaction) Descriptor

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

func (*RespSignedTransaction) GetHash

func (m *RespSignedTransaction) GetHash() string

func (*RespSignedTransaction) ProtoMessage

func (*RespSignedTransaction) ProtoMessage()

func (*RespSignedTransaction) Reset

func (m *RespSignedTransaction) Reset()

func (*RespSignedTransaction) String

func (m *RespSignedTransaction) String() string

func (*RespSignedTransaction) XXX_DiscardUnknown

func (m *RespSignedTransaction) XXX_DiscardUnknown()

func (*RespSignedTransaction) XXX_Marshal

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

func (*RespSignedTransaction) XXX_Merge

func (m *RespSignedTransaction) XXX_Merge(src proto.Message)

func (*RespSignedTransaction) XXX_Size

func (m *RespSignedTransaction) XXX_Size() int

func (*RespSignedTransaction) XXX_Unmarshal

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

type ResposeNonce

type ResposeNonce struct {
	Nonce                uint64   `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ResposeNonce) Descriptor

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

func (*ResposeNonce) GetNonce

func (m *ResposeNonce) GetNonce() uint64

func (*ResposeNonce) ProtoMessage

func (*ResposeNonce) ProtoMessage()

func (*ResposeNonce) Reset

func (m *ResposeNonce) Reset()

func (*ResposeNonce) String

func (m *ResposeNonce) String() string

func (*ResposeNonce) XXX_DiscardUnknown

func (m *ResposeNonce) XXX_DiscardUnknown()

func (*ResposeNonce) XXX_Marshal

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

func (*ResposeNonce) XXX_Merge

func (m *ResposeNonce) XXX_Merge(src proto.Message)

func (*ResposeNonce) XXX_Size

func (m *ResposeNonce) XXX_Size() int

func (*ResposeNonce) XXX_Unmarshal

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

type ResposeTxs

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

func (*ResposeTxs) Descriptor

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

func (*ResposeTxs) GetTxs

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

func (*ResposeTxs) ProtoMessage

func (*ResposeTxs) ProtoMessage()

func (*ResposeTxs) Reset

func (m *ResposeTxs) Reset()

func (*ResposeTxs) String

func (m *ResposeTxs) String() string

func (*ResposeTxs) XXX_DiscardUnknown

func (m *ResposeTxs) XXX_DiscardUnknown()

func (*ResposeTxs) XXX_Marshal

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

func (*ResposeTxs) XXX_Merge

func (m *ResposeTxs) XXX_Merge(src proto.Message)

func (*ResposeTxs) XXX_Size

func (m *ResposeTxs) XXX_Size() int

func (*ResposeTxs) XXX_Unmarshal

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

type Tx

type Tx struct {
	Nonce                uint64   `protobuf:"varint,1,opt,name=Nonce,proto3" json:"Nonce,omitempty"`
	Amount               uint64   `protobuf:"varint,2,opt,name=Amount,proto3" json:"Amount,omitempty"`
	From                 string   `protobuf:"bytes,3,opt,name=From,proto3" json:"From,omitempty"`
	To                   string   `protobuf:"bytes,4,opt,name=To,proto3" json:"To,omitempty"`
	Hash                 string   `protobuf:"bytes,5,opt,name=Hash,proto3" json:"Hash,omitempty"`
	Signature            string   `protobuf:"bytes,6,opt,name=Signature,proto3" json:"Signature,omitempty"`
	Time                 int64    `protobuf:"varint,7,opt,name=Time,proto3" json:"Time,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Tx) Descriptor

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

func (*Tx) GetAmount

func (m *Tx) GetAmount() uint64

func (*Tx) GetFrom

func (m *Tx) GetFrom() string

func (*Tx) GetHash

func (m *Tx) GetHash() string

func (*Tx) GetNonce

func (m *Tx) GetNonce() uint64

func (*Tx) GetSignature

func (m *Tx) GetSignature() string

func (*Tx) GetTime

func (m *Tx) GetTime() int64

func (*Tx) GetTo

func (m *Tx) GetTo() string

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 (m *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 UnimplementedGreeterServer

type UnimplementedGreeterServer struct {
}

UnimplementedGreeterServer can be embedded to have forward compatible implementations.

func (*UnimplementedGreeterServer) CreateAddr

func (*UnimplementedGreeterServer) GetAddrByPriv

func (*UnimplementedGreeterServer) GetAddressNonceAt

func (*UnimplementedGreeterServer) GetAddressNonceAt(ctx context.Context, req *ReqNonce) (*ResposeNonce, error)

func (*UnimplementedGreeterServer) GetBalance

func (*UnimplementedGreeterServer) GetBlockByNum

func (*UnimplementedGreeterServer) GetMaxBlockNumber

func (*UnimplementedGreeterServer) GetTxByHash

func (*UnimplementedGreeterServer) GetTxByHash(ctx context.Context, req *ReqTxByHash) (*Tx, error)

func (*UnimplementedGreeterServer) GetTxsByAddr

func (*UnimplementedGreeterServer) GetTxsByAddr(ctx context.Context, req *ReqTx) (*ResposeTxs, error)

func (*UnimplementedGreeterServer) SendSignedTransaction

func (*UnimplementedGreeterServer) SendTransaction

Jump to

Keyboard shortcuts

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