Documentation
¶
Index ¶
- func RegisterConnectServer(s *grpc.Server, srv ConnectServer)
- type ConnectClient
- type ConnectServer
- type CreateWalletRequest
- func (*CreateWalletRequest) Descriptor() ([]byte, []int)
- func (m *CreateWalletRequest) GetName() string
- func (*CreateWalletRequest) ProtoMessage()
- func (m *CreateWalletRequest) Reset()
- func (m *CreateWalletRequest) String() string
- func (m *CreateWalletRequest) XXX_DiscardUnknown()
- func (m *CreateWalletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreateWalletRequest) XXX_Merge(src proto.Message)
- func (m *CreateWalletRequest) XXX_Size() int
- func (m *CreateWalletRequest) XXX_Unmarshal(b []byte) error
- type CreateWalletResponse
- func (*CreateWalletResponse) Descriptor() ([]byte, []int)
- func (m *CreateWalletResponse) GetAddress() string
- func (m *CreateWalletResponse) GetMessage() string
- func (*CreateWalletResponse) ProtoMessage()
- func (m *CreateWalletResponse) Reset()
- func (m *CreateWalletResponse) String() string
- func (m *CreateWalletResponse) XXX_DiscardUnknown()
- func (m *CreateWalletResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreateWalletResponse) XXX_Merge(src proto.Message)
- func (m *CreateWalletResponse) XXX_Size() int
- func (m *CreateWalletResponse) XXX_Unmarshal(b []byte) error
- type GetBalanceRequest
- func (*GetBalanceRequest) Descriptor() ([]byte, []int)
- func (m *GetBalanceRequest) GetAddress() string
- func (m *GetBalanceRequest) GetName() string
- func (*GetBalanceRequest) ProtoMessage()
- func (m *GetBalanceRequest) Reset()
- func (m *GetBalanceRequest) String() string
- func (m *GetBalanceRequest) XXX_DiscardUnknown()
- func (m *GetBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetBalanceRequest) XXX_Merge(src proto.Message)
- func (m *GetBalanceRequest) XXX_Size() int
- func (m *GetBalanceRequest) XXX_Unmarshal(b []byte) error
- type GetBalanceResponse
- func (*GetBalanceResponse) Descriptor() ([]byte, []int)
- func (m *GetBalanceResponse) GetAmmount() int64
- func (m *GetBalanceResponse) GetMessage() string
- func (*GetBalanceResponse) ProtoMessage()
- func (m *GetBalanceResponse) Reset()
- func (m *GetBalanceResponse) String() string
- func (m *GetBalanceResponse) XXX_DiscardUnknown()
- func (m *GetBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetBalanceResponse) XXX_Merge(src proto.Message)
- func (m *GetBalanceResponse) XXX_Size() int
- func (m *GetBalanceResponse) XXX_Unmarshal(b []byte) error
- type GetPeerInfoRequest
- func (*GetPeerInfoRequest) Descriptor() ([]byte, []int)
- func (*GetPeerInfoRequest) ProtoMessage()
- func (m *GetPeerInfoRequest) Reset()
- func (m *GetPeerInfoRequest) String() string
- func (m *GetPeerInfoRequest) XXX_DiscardUnknown()
- func (m *GetPeerInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetPeerInfoRequest) XXX_Merge(src proto.Message)
- func (m *GetPeerInfoRequest) XXX_Size() int
- func (m *GetPeerInfoRequest) XXX_Unmarshal(b []byte) error
- type GetPeerInfoResponse
- func (*GetPeerInfoResponse) Descriptor() ([]byte, []int)
- func (m *GetPeerInfoResponse) GetPeerList() *pb.Peerlist
- func (*GetPeerInfoResponse) ProtoMessage()
- func (m *GetPeerInfoResponse) Reset()
- func (m *GetPeerInfoResponse) String() string
- func (m *GetPeerInfoResponse) XXX_DiscardUnknown()
- func (m *GetPeerInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetPeerInfoResponse) XXX_Merge(src proto.Message)
- func (m *GetPeerInfoResponse) XXX_Size() int
- func (m *GetPeerInfoResponse) XXX_Unmarshal(b []byte) error
- type SendRequest
- func (*SendRequest) Descriptor() ([]byte, []int)
- func (m *SendRequest) GetAmmount() int64
- func (m *SendRequest) GetFrom() string
- func (m *SendRequest) GetName() string
- func (m *SendRequest) GetTo() string
- func (*SendRequest) ProtoMessage()
- func (m *SendRequest) Reset()
- func (m *SendRequest) String() string
- func (m *SendRequest) XXX_DiscardUnknown()
- func (m *SendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SendRequest) XXX_Merge(src proto.Message)
- func (m *SendRequest) XXX_Size() int
- func (m *SendRequest) XXX_Unmarshal(b []byte) error
- type SendResponse
- func (*SendResponse) Descriptor() ([]byte, []int)
- func (m *SendResponse) GetMessage() string
- func (*SendResponse) ProtoMessage()
- func (m *SendResponse) Reset()
- func (m *SendResponse) String() string
- func (m *SendResponse) XXX_DiscardUnknown()
- func (m *SendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SendResponse) XXX_Merge(src proto.Message)
- func (m *SendResponse) XXX_Size() int
- func (m *SendResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterConnectServer ¶
func RegisterConnectServer(s *grpc.Server, srv ConnectServer)
Types ¶
type ConnectClient ¶
type ConnectClient interface {
// Sends a greeting
RpcCreateWallet(ctx context.Context, in *CreateWalletRequest, opts ...grpc.CallOption) (*CreateWalletResponse, error)
RpcGetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error)
RpcSend(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error)
RpcGetPeerInfo(ctx context.Context, in *GetPeerInfoRequest, opts ...grpc.CallOption) (*GetPeerInfoResponse, error)
}
ConnectClient is the client API for Connect service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewConnectClient ¶
func NewConnectClient(cc *grpc.ClientConn) ConnectClient
type ConnectServer ¶
type ConnectServer interface {
// Sends a greeting
RpcCreateWallet(context.Context, *CreateWalletRequest) (*CreateWalletResponse, error)
RpcGetBalance(context.Context, *GetBalanceRequest) (*GetBalanceResponse, error)
RpcSend(context.Context, *SendRequest) (*SendResponse, error)
RpcGetPeerInfo(context.Context, *GetPeerInfoRequest) (*GetPeerInfoResponse, error)
}
ConnectServer is the server API for Connect service.
type CreateWalletRequest ¶
type CreateWalletRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
The request message
func (*CreateWalletRequest) Descriptor ¶
func (*CreateWalletRequest) Descriptor() ([]byte, []int)
func (*CreateWalletRequest) GetName ¶
func (m *CreateWalletRequest) GetName() string
func (*CreateWalletRequest) ProtoMessage ¶
func (*CreateWalletRequest) ProtoMessage()
func (*CreateWalletRequest) Reset ¶
func (m *CreateWalletRequest) Reset()
func (*CreateWalletRequest) String ¶
func (m *CreateWalletRequest) String() string
func (*CreateWalletRequest) XXX_DiscardUnknown ¶
func (m *CreateWalletRequest) XXX_DiscardUnknown()
func (*CreateWalletRequest) XXX_Marshal ¶
func (m *CreateWalletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateWalletRequest) XXX_Merge ¶
func (dst *CreateWalletRequest) XXX_Merge(src proto.Message)
func (*CreateWalletRequest) XXX_Size ¶
func (m *CreateWalletRequest) XXX_Size() int
func (*CreateWalletRequest) XXX_Unmarshal ¶
func (m *CreateWalletRequest) XXX_Unmarshal(b []byte) error
type CreateWalletResponse ¶
type CreateWalletResponse struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*CreateWalletResponse) Descriptor ¶
func (*CreateWalletResponse) Descriptor() ([]byte, []int)
func (*CreateWalletResponse) GetAddress ¶
func (m *CreateWalletResponse) GetAddress() string
func (*CreateWalletResponse) GetMessage ¶
func (m *CreateWalletResponse) GetMessage() string
func (*CreateWalletResponse) ProtoMessage ¶
func (*CreateWalletResponse) ProtoMessage()
func (*CreateWalletResponse) Reset ¶
func (m *CreateWalletResponse) Reset()
func (*CreateWalletResponse) String ¶
func (m *CreateWalletResponse) String() string
func (*CreateWalletResponse) XXX_DiscardUnknown ¶
func (m *CreateWalletResponse) XXX_DiscardUnknown()
func (*CreateWalletResponse) XXX_Marshal ¶
func (m *CreateWalletResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateWalletResponse) XXX_Merge ¶
func (dst *CreateWalletResponse) XXX_Merge(src proto.Message)
func (*CreateWalletResponse) XXX_Size ¶
func (m *CreateWalletResponse) XXX_Size() int
func (*CreateWalletResponse) XXX_Unmarshal ¶
func (m *CreateWalletResponse) XXX_Unmarshal(b []byte) error
type GetBalanceRequest ¶
type GetBalanceRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*GetBalanceRequest) Descriptor ¶
func (*GetBalanceRequest) Descriptor() ([]byte, []int)
func (*GetBalanceRequest) GetAddress ¶
func (m *GetBalanceRequest) GetAddress() string
func (*GetBalanceRequest) GetName ¶
func (m *GetBalanceRequest) GetName() string
func (*GetBalanceRequest) ProtoMessage ¶
func (*GetBalanceRequest) ProtoMessage()
func (*GetBalanceRequest) Reset ¶
func (m *GetBalanceRequest) Reset()
func (*GetBalanceRequest) String ¶
func (m *GetBalanceRequest) String() string
func (*GetBalanceRequest) XXX_DiscardUnknown ¶
func (m *GetBalanceRequest) XXX_DiscardUnknown()
func (*GetBalanceRequest) XXX_Marshal ¶
func (m *GetBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBalanceRequest) XXX_Merge ¶
func (dst *GetBalanceRequest) XXX_Merge(src proto.Message)
func (*GetBalanceRequest) XXX_Size ¶
func (m *GetBalanceRequest) XXX_Size() int
func (*GetBalanceRequest) XXX_Unmarshal ¶
func (m *GetBalanceRequest) XXX_Unmarshal(b []byte) error
type GetBalanceResponse ¶
type GetBalanceResponse struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
Ammount int64 `protobuf:"varint,2,opt,name=ammount,proto3" json:"ammount,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*GetBalanceResponse) Descriptor ¶
func (*GetBalanceResponse) Descriptor() ([]byte, []int)
func (*GetBalanceResponse) GetAmmount ¶
func (m *GetBalanceResponse) GetAmmount() int64
func (*GetBalanceResponse) GetMessage ¶
func (m *GetBalanceResponse) GetMessage() string
func (*GetBalanceResponse) ProtoMessage ¶
func (*GetBalanceResponse) ProtoMessage()
func (*GetBalanceResponse) Reset ¶
func (m *GetBalanceResponse) Reset()
func (*GetBalanceResponse) String ¶
func (m *GetBalanceResponse) String() string
func (*GetBalanceResponse) XXX_DiscardUnknown ¶
func (m *GetBalanceResponse) XXX_DiscardUnknown()
func (*GetBalanceResponse) XXX_Marshal ¶
func (m *GetBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBalanceResponse) XXX_Merge ¶
func (dst *GetBalanceResponse) XXX_Merge(src proto.Message)
func (*GetBalanceResponse) XXX_Size ¶
func (m *GetBalanceResponse) XXX_Size() int
func (*GetBalanceResponse) XXX_Unmarshal ¶
func (m *GetBalanceResponse) XXX_Unmarshal(b []byte) error
type GetPeerInfoRequest ¶
type GetPeerInfoRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*GetPeerInfoRequest) Descriptor ¶
func (*GetPeerInfoRequest) Descriptor() ([]byte, []int)
func (*GetPeerInfoRequest) ProtoMessage ¶
func (*GetPeerInfoRequest) ProtoMessage()
func (*GetPeerInfoRequest) Reset ¶
func (m *GetPeerInfoRequest) Reset()
func (*GetPeerInfoRequest) String ¶
func (m *GetPeerInfoRequest) String() string
func (*GetPeerInfoRequest) XXX_DiscardUnknown ¶
func (m *GetPeerInfoRequest) XXX_DiscardUnknown()
func (*GetPeerInfoRequest) XXX_Marshal ¶
func (m *GetPeerInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPeerInfoRequest) XXX_Merge ¶
func (dst *GetPeerInfoRequest) XXX_Merge(src proto.Message)
func (*GetPeerInfoRequest) XXX_Size ¶
func (m *GetPeerInfoRequest) XXX_Size() int
func (*GetPeerInfoRequest) XXX_Unmarshal ¶
func (m *GetPeerInfoRequest) XXX_Unmarshal(b []byte) error
type GetPeerInfoResponse ¶
type GetPeerInfoResponse struct {
PeerList *pb.Peerlist `protobuf:"bytes,1,opt,name=peerList,proto3" json:"peerList,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*GetPeerInfoResponse) Descriptor ¶
func (*GetPeerInfoResponse) Descriptor() ([]byte, []int)
func (*GetPeerInfoResponse) GetPeerList ¶
func (m *GetPeerInfoResponse) GetPeerList() *pb.Peerlist
func (*GetPeerInfoResponse) ProtoMessage ¶
func (*GetPeerInfoResponse) ProtoMessage()
func (*GetPeerInfoResponse) Reset ¶
func (m *GetPeerInfoResponse) Reset()
func (*GetPeerInfoResponse) String ¶
func (m *GetPeerInfoResponse) String() string
func (*GetPeerInfoResponse) XXX_DiscardUnknown ¶
func (m *GetPeerInfoResponse) XXX_DiscardUnknown()
func (*GetPeerInfoResponse) XXX_Marshal ¶
func (m *GetPeerInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetPeerInfoResponse) XXX_Merge ¶
func (dst *GetPeerInfoResponse) XXX_Merge(src proto.Message)
func (*GetPeerInfoResponse) XXX_Size ¶
func (m *GetPeerInfoResponse) XXX_Size() int
func (*GetPeerInfoResponse) XXX_Unmarshal ¶
func (m *GetPeerInfoResponse) XXX_Unmarshal(b []byte) error
type SendRequest ¶
type SendRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
Ammount int64 `protobuf:"varint,4,opt,name=ammount,proto3" json:"ammount,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*SendRequest) Descriptor ¶
func (*SendRequest) Descriptor() ([]byte, []int)
func (*SendRequest) GetAmmount ¶
func (m *SendRequest) GetAmmount() int64
func (*SendRequest) GetFrom ¶
func (m *SendRequest) GetFrom() string
func (*SendRequest) GetName ¶
func (m *SendRequest) GetName() string
func (*SendRequest) GetTo ¶
func (m *SendRequest) GetTo() string
func (*SendRequest) ProtoMessage ¶
func (*SendRequest) ProtoMessage()
func (*SendRequest) Reset ¶
func (m *SendRequest) Reset()
func (*SendRequest) String ¶
func (m *SendRequest) String() string
func (*SendRequest) XXX_DiscardUnknown ¶
func (m *SendRequest) XXX_DiscardUnknown()
func (*SendRequest) XXX_Marshal ¶
func (m *SendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendRequest) XXX_Merge ¶
func (dst *SendRequest) XXX_Merge(src proto.Message)
func (*SendRequest) XXX_Size ¶
func (m *SendRequest) XXX_Size() int
func (*SendRequest) XXX_Unmarshal ¶
func (m *SendRequest) XXX_Unmarshal(b []byte) error
type SendResponse ¶
type SendResponse struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (*SendResponse) Descriptor ¶
func (*SendResponse) Descriptor() ([]byte, []int)
func (*SendResponse) GetMessage ¶
func (m *SendResponse) GetMessage() string
func (*SendResponse) ProtoMessage ¶
func (*SendResponse) ProtoMessage()
func (*SendResponse) Reset ¶
func (m *SendResponse) Reset()
func (*SendResponse) String ¶
func (m *SendResponse) String() string
func (*SendResponse) XXX_DiscardUnknown ¶
func (m *SendResponse) XXX_DiscardUnknown()
func (*SendResponse) XXX_Marshal ¶
func (m *SendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendResponse) XXX_Merge ¶
func (dst *SendResponse) XXX_Merge(src proto.Message)
func (*SendResponse) XXX_Size ¶
func (m *SendResponse) XXX_Size() int
func (*SendResponse) XXX_Unmarshal ¶
func (m *SendResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.