Documentation ¶
Index ¶
- Variables
- func RegisterInternalRpcServiceServer(s grpc.ServiceRegistrar, srv InternalRpcServiceServer)
- type AddressInfoRep
- func (*AddressInfoRep) Descriptor() ([]byte, []int)deprecated
- func (x *AddressInfoRep) GetCode() ReturnCode
- func (x *AddressInfoRep) GetMsg() string
- func (*AddressInfoRep) ProtoMessage()
- func (x *AddressInfoRep) ProtoReflect() protoreflect.Message
- func (x *AddressInfoRep) Reset()
- func (x *AddressInfoRep) String() string
- type AddressInfoReq
- func (*AddressInfoReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddressInfoReq) GetAddress() string
- func (x *AddressInfoReq) GetConsumerToken() string
- func (*AddressInfoReq) ProtoMessage()
- func (x *AddressInfoReq) ProtoReflect() protoreflect.Message
- func (x *AddressInfoReq) Reset()
- func (x *AddressInfoReq) String() string
- type InternalRpcServiceClient
- type InternalRpcServiceServer
- type NftCollectionsInfoRep
- func (*NftCollectionsInfoRep) Descriptor() ([]byte, []int)deprecated
- func (x *NftCollectionsInfoRep) GetCode() ReturnCode
- func (x *NftCollectionsInfoRep) GetMsg() string
- func (*NftCollectionsInfoRep) ProtoMessage()
- func (x *NftCollectionsInfoRep) ProtoReflect() protoreflect.Message
- func (x *NftCollectionsInfoRep) Reset()
- func (x *NftCollectionsInfoRep) String() string
- type NftCollectionsInfoReq
- func (*NftCollectionsInfoReq) Descriptor() ([]byte, []int)deprecated
- func (x *NftCollectionsInfoReq) GetConsumerToken() string
- func (x *NftCollectionsInfoReq) GetTokenAddress() string
- func (*NftCollectionsInfoReq) ProtoMessage()
- func (x *NftCollectionsInfoReq) ProtoReflect() protoreflect.Message
- func (x *NftCollectionsInfoReq) Reset()
- func (x *NftCollectionsInfoReq) String() string
- type NftInfoRep
- type NftInfoReq
- func (*NftInfoReq) Descriptor() ([]byte, []int)deprecated
- func (x *NftInfoReq) GetConsumerToken() string
- func (x *NftInfoReq) GetTokenId() string
- func (*NftInfoReq) ProtoMessage()
- func (x *NftInfoReq) ProtoReflect() protoreflect.Message
- func (x *NftInfoReq) Reset()
- func (x *NftInfoReq) String() string
- type ReturnCode
- type UnimplementedInternalRpcServiceServer
- func (UnimplementedInternalRpcServiceServer) GetAddressInfo(context.Context, *AddressInfoReq) (*AddressInfoRep, error)
- func (UnimplementedInternalRpcServiceServer) GetNftCollectionsInfo(context.Context, *NftCollectionsInfoReq) (*NftCollectionsInfoRep, error)
- func (UnimplementedInternalRpcServiceServer) GetNftInfo(context.Context, *NftInfoReq) (*NftInfoRep, error)
- type UnsafeInternalRpcServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( ReturnCode_name = map[int32]string{ 0: "SUCCESS", 1: "ERROR", } ReturnCode_value = map[string]int32{ "SUCCESS": 0, "ERROR": 1, } )
Enum value maps for ReturnCode.
var File_services_proto protoreflect.FileDescriptor
var InternalRpcService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "fe_service.protobuf.InternalRpcService", HandlerType: (*InternalRpcServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAddressInfo", Handler: _InternalRpcService_GetAddressInfo_Handler, }, { MethodName: "GetNftCollectionsInfo", Handler: _InternalRpcService_GetNftCollectionsInfo_Handler, }, { MethodName: "GetNftInfo", Handler: _InternalRpcService_GetNftInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "services.proto", }
InternalRpcService_ServiceDesc is the grpc.ServiceDesc for InternalRpcService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInternalRpcServiceServer ¶
func RegisterInternalRpcServiceServer(s grpc.ServiceRegistrar, srv InternalRpcServiceServer)
Types ¶
type AddressInfoRep ¶
type AddressInfoRep struct { Code ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=fe_service.protobuf.ReturnCode" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*AddressInfoRep) Descriptor
deprecated
func (*AddressInfoRep) Descriptor() ([]byte, []int)
Deprecated: Use AddressInfoRep.ProtoReflect.Descriptor instead.
func (*AddressInfoRep) GetCode ¶
func (x *AddressInfoRep) GetCode() ReturnCode
func (*AddressInfoRep) GetMsg ¶
func (x *AddressInfoRep) GetMsg() string
func (*AddressInfoRep) ProtoMessage ¶
func (*AddressInfoRep) ProtoMessage()
func (*AddressInfoRep) ProtoReflect ¶
func (x *AddressInfoRep) ProtoReflect() protoreflect.Message
func (*AddressInfoRep) Reset ¶
func (x *AddressInfoRep) Reset()
func (*AddressInfoRep) String ¶
func (x *AddressInfoRep) String() string
type AddressInfoReq ¶
type AddressInfoReq struct { ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*AddressInfoReq) Descriptor
deprecated
func (*AddressInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use AddressInfoReq.ProtoReflect.Descriptor instead.
func (*AddressInfoReq) GetAddress ¶
func (x *AddressInfoReq) GetAddress() string
func (*AddressInfoReq) GetConsumerToken ¶
func (x *AddressInfoReq) GetConsumerToken() string
func (*AddressInfoReq) ProtoMessage ¶
func (*AddressInfoReq) ProtoMessage()
func (*AddressInfoReq) ProtoReflect ¶
func (x *AddressInfoReq) ProtoReflect() protoreflect.Message
func (*AddressInfoReq) Reset ¶
func (x *AddressInfoReq) Reset()
func (*AddressInfoReq) String ¶
func (x *AddressInfoReq) String() string
type InternalRpcServiceClient ¶
type InternalRpcServiceClient interface { GetAddressInfo(ctx context.Context, in *AddressInfoReq, opts ...grpc.CallOption) (*AddressInfoRep, error) GetNftCollectionsInfo(ctx context.Context, in *NftCollectionsInfoReq, opts ...grpc.CallOption) (*NftCollectionsInfoRep, error) GetNftInfo(ctx context.Context, in *NftInfoReq, opts ...grpc.CallOption) (*NftInfoRep, error) }
InternalRpcServiceClient is the client API for InternalRpcService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewInternalRpcServiceClient ¶
func NewInternalRpcServiceClient(cc grpc.ClientConnInterface) InternalRpcServiceClient
type InternalRpcServiceServer ¶
type InternalRpcServiceServer interface { GetAddressInfo(context.Context, *AddressInfoReq) (*AddressInfoRep, error) GetNftCollectionsInfo(context.Context, *NftCollectionsInfoReq) (*NftCollectionsInfoRep, error) GetNftInfo(context.Context, *NftInfoReq) (*NftInfoRep, error) }
InternalRpcServiceServer is the server API for InternalRpcService service. All implementations must embed UnimplementedInternalRpcServiceServer for forward compatibility
type NftCollectionsInfoRep ¶
type NftCollectionsInfoRep struct { Code ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=fe_service.protobuf.ReturnCode" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*NftCollectionsInfoRep) Descriptor
deprecated
func (*NftCollectionsInfoRep) Descriptor() ([]byte, []int)
Deprecated: Use NftCollectionsInfoRep.ProtoReflect.Descriptor instead.
func (*NftCollectionsInfoRep) GetCode ¶
func (x *NftCollectionsInfoRep) GetCode() ReturnCode
func (*NftCollectionsInfoRep) GetMsg ¶
func (x *NftCollectionsInfoRep) GetMsg() string
func (*NftCollectionsInfoRep) ProtoMessage ¶
func (*NftCollectionsInfoRep) ProtoMessage()
func (*NftCollectionsInfoRep) ProtoReflect ¶
func (x *NftCollectionsInfoRep) ProtoReflect() protoreflect.Message
func (*NftCollectionsInfoRep) Reset ¶
func (x *NftCollectionsInfoRep) Reset()
func (*NftCollectionsInfoRep) String ¶
func (x *NftCollectionsInfoRep) String() string
type NftCollectionsInfoReq ¶
type NftCollectionsInfoReq struct { ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"` TokenAddress string `protobuf:"bytes,2,opt,name=token_address,json=tokenAddress,proto3" json:"token_address,omitempty"` // contains filtered or unexported fields }
func (*NftCollectionsInfoReq) Descriptor
deprecated
func (*NftCollectionsInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use NftCollectionsInfoReq.ProtoReflect.Descriptor instead.
func (*NftCollectionsInfoReq) GetConsumerToken ¶
func (x *NftCollectionsInfoReq) GetConsumerToken() string
func (*NftCollectionsInfoReq) GetTokenAddress ¶
func (x *NftCollectionsInfoReq) GetTokenAddress() string
func (*NftCollectionsInfoReq) ProtoMessage ¶
func (*NftCollectionsInfoReq) ProtoMessage()
func (*NftCollectionsInfoReq) ProtoReflect ¶
func (x *NftCollectionsInfoReq) ProtoReflect() protoreflect.Message
func (*NftCollectionsInfoReq) Reset ¶
func (x *NftCollectionsInfoReq) Reset()
func (*NftCollectionsInfoReq) String ¶
func (x *NftCollectionsInfoReq) String() string
type NftInfoRep ¶
type NftInfoRep struct { Code ReturnCode `protobuf:"varint,1,opt,name=code,proto3,enum=fe_service.protobuf.ReturnCode" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*NftInfoRep) Descriptor
deprecated
func (*NftInfoRep) Descriptor() ([]byte, []int)
Deprecated: Use NftInfoRep.ProtoReflect.Descriptor instead.
func (*NftInfoRep) GetCode ¶
func (x *NftInfoRep) GetCode() ReturnCode
func (*NftInfoRep) GetMsg ¶
func (x *NftInfoRep) GetMsg() string
func (*NftInfoRep) ProtoMessage ¶
func (*NftInfoRep) ProtoMessage()
func (*NftInfoRep) ProtoReflect ¶
func (x *NftInfoRep) ProtoReflect() protoreflect.Message
func (*NftInfoRep) Reset ¶
func (x *NftInfoRep) Reset()
func (*NftInfoRep) String ¶
func (x *NftInfoRep) String() string
type NftInfoReq ¶
type NftInfoReq struct { ConsumerToken string `protobuf:"bytes,1,opt,name=consumer_token,json=consumerToken,proto3" json:"consumer_token,omitempty"` TokenId string `protobuf:"bytes,2,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` // contains filtered or unexported fields }
func (*NftInfoReq) Descriptor
deprecated
func (*NftInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use NftInfoReq.ProtoReflect.Descriptor instead.
func (*NftInfoReq) GetConsumerToken ¶
func (x *NftInfoReq) GetConsumerToken() string
func (*NftInfoReq) GetTokenId ¶
func (x *NftInfoReq) GetTokenId() string
func (*NftInfoReq) ProtoMessage ¶
func (*NftInfoReq) ProtoMessage()
func (*NftInfoReq) ProtoReflect ¶
func (x *NftInfoReq) ProtoReflect() protoreflect.Message
func (*NftInfoReq) Reset ¶
func (x *NftInfoReq) Reset()
func (*NftInfoReq) String ¶
func (x *NftInfoReq) String() string
type ReturnCode ¶
type ReturnCode int32
const ( ReturnCode_SUCCESS ReturnCode = 0 ReturnCode_ERROR ReturnCode = 1 )
func (ReturnCode) Descriptor ¶
func (ReturnCode) Descriptor() protoreflect.EnumDescriptor
func (ReturnCode) Enum ¶
func (x ReturnCode) Enum() *ReturnCode
func (ReturnCode) EnumDescriptor
deprecated
func (ReturnCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ReturnCode.Descriptor instead.
func (ReturnCode) Number ¶
func (x ReturnCode) Number() protoreflect.EnumNumber
func (ReturnCode) String ¶
func (x ReturnCode) String() string
func (ReturnCode) Type ¶
func (ReturnCode) Type() protoreflect.EnumType
type UnimplementedInternalRpcServiceServer ¶
type UnimplementedInternalRpcServiceServer struct { }
UnimplementedInternalRpcServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedInternalRpcServiceServer) GetAddressInfo ¶
func (UnimplementedInternalRpcServiceServer) GetAddressInfo(context.Context, *AddressInfoReq) (*AddressInfoRep, error)
func (UnimplementedInternalRpcServiceServer) GetNftCollectionsInfo ¶
func (UnimplementedInternalRpcServiceServer) GetNftCollectionsInfo(context.Context, *NftCollectionsInfoReq) (*NftCollectionsInfoRep, error)
func (UnimplementedInternalRpcServiceServer) GetNftInfo ¶
func (UnimplementedInternalRpcServiceServer) GetNftInfo(context.Context, *NftInfoReq) (*NftInfoRep, error)
type UnsafeInternalRpcServiceServer ¶
type UnsafeInternalRpcServiceServer interface {
// contains filtered or unexported methods
}
UnsafeInternalRpcServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InternalRpcServiceServer will result in compilation errors.