Documentation
¶
Index ¶
- Variables
- func RegisterBitcoinServer(s grpc.ServiceRegistrar, srv BitcoinServer)
- type BitcoinClient
- type BitcoinServer
- type GenerateToAddressRequest
- func (*GenerateToAddressRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateToAddressRequest) GetAddress() string
- func (x *GenerateToAddressRequest) GetNumOfBlocks() uint32
- func (*GenerateToAddressRequest) ProtoMessage()
- func (x *GenerateToAddressRequest) ProtoReflect() protoreflect.Message
- func (x *GenerateToAddressRequest) Reset()
- func (x *GenerateToAddressRequest) String() string
- type GenerateToAddressResponse
- func (*GenerateToAddressResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GenerateToAddressResponse) GetHashes() []string
- func (*GenerateToAddressResponse) ProtoMessage()
- func (x *GenerateToAddressResponse) ProtoReflect() protoreflect.Message
- func (x *GenerateToAddressResponse) Reset()
- func (x *GenerateToAddressResponse) String() string
- type UnimplementedBitcoinServer
- type UnsafeBitcoinServer
Constants ¶
This section is empty.
Variables ¶
var Bitcoin_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bitcoin", HandlerType: (*BitcoinServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GenerateToAddress", Handler: _Bitcoin_GenerateToAddress_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "bitcoin_client.proto", }
Bitcoin_ServiceDesc is the grpc.ServiceDesc for Bitcoin service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_bitcoin_client_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBitcoinServer ¶
func RegisterBitcoinServer(s grpc.ServiceRegistrar, srv BitcoinServer)
Types ¶
type BitcoinClient ¶
type BitcoinClient interface {
GenerateToAddress(ctx context.Context, in *GenerateToAddressRequest, opts ...grpc.CallOption) (*GenerateToAddressResponse, error)
}
BitcoinClient is the client API for Bitcoin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewBitcoinClient ¶
func NewBitcoinClient(cc grpc.ClientConnInterface) BitcoinClient
type BitcoinServer ¶
type BitcoinServer interface { GenerateToAddress(context.Context, *GenerateToAddressRequest) (*GenerateToAddressResponse, error) // contains filtered or unexported methods }
BitcoinServer is the server API for Bitcoin service. All implementations must embed UnimplementedBitcoinServer for forward compatibility
type GenerateToAddressRequest ¶
type GenerateToAddressRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` NumOfBlocks uint32 `protobuf:"varint,2,opt,name=numOfBlocks,proto3" json:"numOfBlocks,omitempty"` // contains filtered or unexported fields }
func (*GenerateToAddressRequest) Descriptor
deprecated
func (*GenerateToAddressRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateToAddressRequest.ProtoReflect.Descriptor instead.
func (*GenerateToAddressRequest) GetAddress ¶
func (x *GenerateToAddressRequest) GetAddress() string
func (*GenerateToAddressRequest) GetNumOfBlocks ¶
func (x *GenerateToAddressRequest) GetNumOfBlocks() uint32
func (*GenerateToAddressRequest) ProtoMessage ¶
func (*GenerateToAddressRequest) ProtoMessage()
func (*GenerateToAddressRequest) ProtoReflect ¶
func (x *GenerateToAddressRequest) ProtoReflect() protoreflect.Message
func (*GenerateToAddressRequest) Reset ¶
func (x *GenerateToAddressRequest) Reset()
func (*GenerateToAddressRequest) String ¶
func (x *GenerateToAddressRequest) String() string
type GenerateToAddressResponse ¶
type GenerateToAddressResponse struct { Hashes []string `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"` // contains filtered or unexported fields }
func (*GenerateToAddressResponse) Descriptor
deprecated
func (*GenerateToAddressResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateToAddressResponse.ProtoReflect.Descriptor instead.
func (*GenerateToAddressResponse) GetHashes ¶
func (x *GenerateToAddressResponse) GetHashes() []string
func (*GenerateToAddressResponse) ProtoMessage ¶
func (*GenerateToAddressResponse) ProtoMessage()
func (*GenerateToAddressResponse) ProtoReflect ¶
func (x *GenerateToAddressResponse) ProtoReflect() protoreflect.Message
func (*GenerateToAddressResponse) Reset ¶
func (x *GenerateToAddressResponse) Reset()
func (*GenerateToAddressResponse) String ¶
func (x *GenerateToAddressResponse) String() string
type UnimplementedBitcoinServer ¶
type UnimplementedBitcoinServer struct { }
UnimplementedBitcoinServer must be embedded to have forward compatible implementations.
func (UnimplementedBitcoinServer) GenerateToAddress ¶
func (UnimplementedBitcoinServer) GenerateToAddress(context.Context, *GenerateToAddressRequest) (*GenerateToAddressResponse, error)
type UnsafeBitcoinServer ¶
type UnsafeBitcoinServer interface {
// contains filtered or unexported methods
}
UnsafeBitcoinServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BitcoinServer will result in compilation errors.