Documentation
¶
Overview ¶
Package nftpb is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterNFTServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterNFTServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NFTServiceClient) error
- func RegisterNFTServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterNFTServiceServer(s *grpc.Server, srv NFTServiceServer)
- type NFTMintRequest
- func (*NFTMintRequest) Descriptor() ([]byte, []int)
- func (m *NFTMintRequest) GetDepositAddress() string
- func (m *NFTMintRequest) GetIdentifier() string
- func (m *NFTMintRequest) GetProofFields() []string
- func (m *NFTMintRequest) GetRegistryAddress() string
- func (*NFTMintRequest) ProtoMessage()
- func (m *NFTMintRequest) Reset()
- func (m *NFTMintRequest) String() string
- func (m *NFTMintRequest) XXX_DiscardUnknown()
- func (m *NFTMintRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NFTMintRequest) XXX_Merge(src proto.Message)
- func (m *NFTMintRequest) XXX_Size() int
- func (m *NFTMintRequest) XXX_Unmarshal(b []byte) error
- type NFTMintResponse
- func (*NFTMintResponse) Descriptor() ([]byte, []int)
- func (m *NFTMintResponse) GetTokenId() string
- func (*NFTMintResponse) ProtoMessage()
- func (m *NFTMintResponse) Reset()
- func (m *NFTMintResponse) String() string
- func (m *NFTMintResponse) XXX_DiscardUnknown()
- func (m *NFTMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NFTMintResponse) XXX_Merge(src proto.Message)
- func (m *NFTMintResponse) XXX_Size() int
- func (m *NFTMintResponse) XXX_Unmarshal(b []byte) error
- type NFTServiceClient
- type NFTServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNFTServiceHandler ¶
func RegisterNFTServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterNFTServiceHandler registers the http handlers for service NFTService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterNFTServiceHandlerClient ¶
func RegisterNFTServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NFTServiceClient) error
RegisterNFTServiceHandlerClient registers the http handlers for service NFTService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NFTServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NFTServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NFTServiceClient" to call the correct interceptors.
func RegisterNFTServiceHandlerFromEndpoint ¶
func RegisterNFTServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterNFTServiceHandlerFromEndpoint is same as RegisterNFTServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterNFTServiceServer ¶
func RegisterNFTServiceServer(s *grpc.Server, srv NFTServiceServer)
Types ¶
type NFTMintRequest ¶
type NFTMintRequest struct { // Document identifier Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` // The contract address of the registry where the token should be minted RegistryAddress string `protobuf:"bytes,2,opt,name=registry_address,json=registryAddress,proto3" json:"registry_address,omitempty"` DepositAddress string `protobuf:"bytes,3,opt,name=deposit_address,json=depositAddress,proto3" json:"deposit_address,omitempty"` ProofFields []string `protobuf:"bytes,4,rep,name=proof_fields,json=proofFields,proto3" json:"proof_fields,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NFTMintRequest) Descriptor ¶
func (*NFTMintRequest) Descriptor() ([]byte, []int)
func (*NFTMintRequest) GetDepositAddress ¶
func (m *NFTMintRequest) GetDepositAddress() string
func (*NFTMintRequest) GetIdentifier ¶
func (m *NFTMintRequest) GetIdentifier() string
func (*NFTMintRequest) GetProofFields ¶
func (m *NFTMintRequest) GetProofFields() []string
func (*NFTMintRequest) GetRegistryAddress ¶
func (m *NFTMintRequest) GetRegistryAddress() string
func (*NFTMintRequest) ProtoMessage ¶
func (*NFTMintRequest) ProtoMessage()
func (*NFTMintRequest) Reset ¶
func (m *NFTMintRequest) Reset()
func (*NFTMintRequest) String ¶
func (m *NFTMintRequest) String() string
func (*NFTMintRequest) XXX_DiscardUnknown ¶
func (m *NFTMintRequest) XXX_DiscardUnknown()
func (*NFTMintRequest) XXX_Marshal ¶
func (m *NFTMintRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NFTMintRequest) XXX_Merge ¶
func (dst *NFTMintRequest) XXX_Merge(src proto.Message)
func (*NFTMintRequest) XXX_Size ¶
func (m *NFTMintRequest) XXX_Size() int
func (*NFTMintRequest) XXX_Unmarshal ¶
func (m *NFTMintRequest) XXX_Unmarshal(b []byte) error
type NFTMintResponse ¶
type NFTMintResponse struct { TokenId string `protobuf:"bytes,1,opt,name=token_id,json=tokenId,proto3" json:"token_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NFTMintResponse) Descriptor ¶
func (*NFTMintResponse) Descriptor() ([]byte, []int)
func (*NFTMintResponse) GetTokenId ¶
func (m *NFTMintResponse) GetTokenId() string
func (*NFTMintResponse) ProtoMessage ¶
func (*NFTMintResponse) ProtoMessage()
func (*NFTMintResponse) Reset ¶
func (m *NFTMintResponse) Reset()
func (*NFTMintResponse) String ¶
func (m *NFTMintResponse) String() string
func (*NFTMintResponse) XXX_DiscardUnknown ¶
func (m *NFTMintResponse) XXX_DiscardUnknown()
func (*NFTMintResponse) XXX_Marshal ¶
func (m *NFTMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NFTMintResponse) XXX_Merge ¶
func (dst *NFTMintResponse) XXX_Merge(src proto.Message)
func (*NFTMintResponse) XXX_Size ¶
func (m *NFTMintResponse) XXX_Size() int
func (*NFTMintResponse) XXX_Unmarshal ¶
func (m *NFTMintResponse) XXX_Unmarshal(b []byte) error
type NFTServiceClient ¶
type NFTServiceClient interface {
MintNFT(ctx context.Context, in *NFTMintRequest, opts ...grpc.CallOption) (*NFTMintResponse, error)
}
NFTServiceClient is the client API for NFTService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewNFTServiceClient ¶
func NewNFTServiceClient(cc *grpc.ClientConn) NFTServiceClient
type NFTServiceServer ¶
type NFTServiceServer interface {
MintNFT(context.Context, *NFTMintRequest) (*NFTMintResponse, error)
}
NFTServiceServer is the server API for NFTService service.