powergate: github.com/textileio/powergate/wallet/rpc Index | Files

package rpc

import "github.com/textileio/powergate/wallet/rpc"

Index

Package Files

rpc.go rpc.pb.go

Variables

var File_wallet_rpc_rpc_proto protoreflect.FileDescriptor

func RegisterRPCServiceServer Uses

func RegisterRPCServiceServer(s *grpc.Server, srv RPCServiceServer)

type BalanceRequest Uses

type BalanceRequest struct {
    Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
    // contains filtered or unexported fields
}

func (*BalanceRequest) Descriptor Uses

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

Deprecated: Use BalanceRequest.ProtoReflect.Descriptor instead.

func (*BalanceRequest) GetAddress Uses

func (x *BalanceRequest) GetAddress() string

func (*BalanceRequest) ProtoMessage Uses

func (*BalanceRequest) ProtoMessage()

func (*BalanceRequest) ProtoReflect Uses

func (x *BalanceRequest) ProtoReflect() protoreflect.Message

func (*BalanceRequest) Reset Uses

func (x *BalanceRequest) Reset()

func (*BalanceRequest) String Uses

func (x *BalanceRequest) String() string

type BalanceResponse Uses

type BalanceResponse struct {
    Balance uint64 `protobuf:"varint,1,opt,name=balance,proto3" json:"balance,omitempty"`
    // contains filtered or unexported fields
}

func (*BalanceResponse) Descriptor Uses

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

Deprecated: Use BalanceResponse.ProtoReflect.Descriptor instead.

func (*BalanceResponse) GetBalance Uses

func (x *BalanceResponse) GetBalance() uint64

func (*BalanceResponse) ProtoMessage Uses

func (*BalanceResponse) ProtoMessage()

func (*BalanceResponse) ProtoReflect Uses

func (x *BalanceResponse) ProtoReflect() protoreflect.Message

func (*BalanceResponse) Reset Uses

func (x *BalanceResponse) Reset()

func (*BalanceResponse) String Uses

func (x *BalanceResponse) String() string

type ListRequest Uses

type ListRequest struct {
    Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
    // contains filtered or unexported fields
}

func (*ListRequest) Descriptor Uses

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetType Uses

func (x *ListRequest) GetType() string

func (*ListRequest) ProtoMessage Uses

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect Uses

func (x *ListRequest) ProtoReflect() protoreflect.Message

func (*ListRequest) Reset Uses

func (x *ListRequest) Reset()

func (*ListRequest) String Uses

func (x *ListRequest) String() string

type ListResponse Uses

type ListResponse struct {
    Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
    // contains filtered or unexported fields
}

func (*ListResponse) Descriptor Uses

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetAddresses Uses

func (x *ListResponse) GetAddresses() []string

func (*ListResponse) ProtoMessage Uses

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect Uses

func (x *ListResponse) ProtoReflect() protoreflect.Message

func (*ListResponse) Reset Uses

func (x *ListResponse) Reset()

func (*ListResponse) String Uses

func (x *ListResponse) String() string

type NewAddressRequest Uses

type NewAddressRequest struct {
    Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
    // contains filtered or unexported fields
}

func (*NewAddressRequest) Descriptor Uses

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

Deprecated: Use NewAddressRequest.ProtoReflect.Descriptor instead.

func (*NewAddressRequest) GetType Uses

func (x *NewAddressRequest) GetType() string

func (*NewAddressRequest) ProtoMessage Uses

func (*NewAddressRequest) ProtoMessage()

func (*NewAddressRequest) ProtoReflect Uses

func (x *NewAddressRequest) ProtoReflect() protoreflect.Message

func (*NewAddressRequest) Reset Uses

func (x *NewAddressRequest) Reset()

func (*NewAddressRequest) String Uses

func (x *NewAddressRequest) String() string

type NewAddressResponse Uses

type NewAddressResponse struct {
    Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
    // contains filtered or unexported fields
}

func (*NewAddressResponse) Descriptor Uses

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

Deprecated: Use NewAddressResponse.ProtoReflect.Descriptor instead.

func (*NewAddressResponse) GetAddress Uses

func (x *NewAddressResponse) GetAddress() string

func (*NewAddressResponse) ProtoMessage Uses

func (*NewAddressResponse) ProtoMessage()

func (*NewAddressResponse) ProtoReflect Uses

func (x *NewAddressResponse) ProtoReflect() protoreflect.Message

func (*NewAddressResponse) Reset Uses

func (x *NewAddressResponse) Reset()

func (*NewAddressResponse) String Uses

func (x *NewAddressResponse) String() string

type RPC Uses

type RPC struct {
    UnimplementedRPCServiceServer

    Module wallet.Module
}

RPC implements the gprc service.

func New Uses

func New(m wallet.Module) *RPC

New creates a new rpc service.

func (*RPC) Balance Uses

func (s *RPC) Balance(ctx context.Context, req *BalanceRequest) (*BalanceResponse, error)

Balance checks a wallet balance.

func (*RPC) List Uses

func (s *RPC) List(ctx context.Context, req *ListRequest) (*ListResponse, error)

List returns all wallet addresses.

func (*RPC) NewAddress Uses

func (s *RPC) NewAddress(ctx context.Context, req *NewAddressRequest) (*NewAddressResponse, error)

NewAddress creates a new wallet.

func (*RPC) SendFil Uses

func (s *RPC) SendFil(ctx context.Context, req *SendFilRequest) (*SendFilResponse, error)

SendFil calls wallet.SendFil.

type RPCServiceClient Uses

type RPCServiceClient interface {
    NewAddress(ctx context.Context, in *NewAddressRequest, opts ...grpc.CallOption) (*NewAddressResponse, error)
    List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
    Balance(ctx context.Context, in *BalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, error)
    SendFil(ctx context.Context, in *SendFilRequest, opts ...grpc.CallOption) (*SendFilResponse, error)
}

RPCServiceClient is the client API for RPCService service.

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

func NewRPCServiceClient Uses

func NewRPCServiceClient(cc grpc.ClientConnInterface) RPCServiceClient

type RPCServiceServer Uses

type RPCServiceServer interface {
    NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error)
    List(context.Context, *ListRequest) (*ListResponse, error)
    Balance(context.Context, *BalanceRequest) (*BalanceResponse, error)
    SendFil(context.Context, *SendFilRequest) (*SendFilResponse, error)
}

RPCServiceServer is the server API for RPCService service.

type SendFilRequest Uses

type SendFilRequest 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 int64  `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
    // contains filtered or unexported fields
}

func (*SendFilRequest) Descriptor Uses

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

Deprecated: Use SendFilRequest.ProtoReflect.Descriptor instead.

func (*SendFilRequest) GetAmount Uses

func (x *SendFilRequest) GetAmount() int64

func (*SendFilRequest) GetFrom Uses

func (x *SendFilRequest) GetFrom() string

func (*SendFilRequest) GetTo Uses

func (x *SendFilRequest) GetTo() string

func (*SendFilRequest) ProtoMessage Uses

func (*SendFilRequest) ProtoMessage()

func (*SendFilRequest) ProtoReflect Uses

func (x *SendFilRequest) ProtoReflect() protoreflect.Message

func (*SendFilRequest) Reset Uses

func (x *SendFilRequest) Reset()

func (*SendFilRequest) String Uses

func (x *SendFilRequest) String() string

type SendFilResponse Uses

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

func (*SendFilResponse) Descriptor Uses

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

Deprecated: Use SendFilResponse.ProtoReflect.Descriptor instead.

func (*SendFilResponse) ProtoMessage Uses

func (*SendFilResponse) ProtoMessage()

func (*SendFilResponse) ProtoReflect Uses

func (x *SendFilResponse) ProtoReflect() protoreflect.Message

func (*SendFilResponse) Reset Uses

func (x *SendFilResponse) Reset()

func (*SendFilResponse) String Uses

func (x *SendFilResponse) String() string

type UnimplementedRPCServiceServer Uses

type UnimplementedRPCServiceServer struct {
}

UnimplementedRPCServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedRPCServiceServer) Balance Uses

func (*UnimplementedRPCServiceServer) Balance(context.Context, *BalanceRequest) (*BalanceResponse, error)

func (*UnimplementedRPCServiceServer) List Uses

func (*UnimplementedRPCServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)

func (*UnimplementedRPCServiceServer) NewAddress Uses

func (*UnimplementedRPCServiceServer) NewAddress(context.Context, *NewAddressRequest) (*NewAddressResponse, error)

func (*UnimplementedRPCServiceServer) SendFil Uses

func (*UnimplementedRPCServiceServer) SendFil(context.Context, *SendFilRequest) (*SendFilResponse, error)

Package rpc imports 11 packages (graph) and is imported by 6 packages. Updated 2020-09-21. Refresh now. Tools for package owners.