Documentation ¶
Overview ¶
Package requirement is a generated protocol buffer package.
It is generated from these files:
requirement.proto
It has these top-level messages:
PublishRequest PublishResponse QueryRequest QueryResponse QueryData RequirementData QueryByIdRequest QueryByIdResponse QueryByIdData
Package requirement is a generated protocol buffer package.
It is generated from these files:
requirement.proto
It has these top-level messages:
PublishRequest PublishResponse QueryRequest QueryResponse QueryData RequirementData QueryByIdRequest QueryByIdResponse QueryByIdData
Index ¶
- func RegisterRequirementHandler(s server.Server, hdlr RequirementHandler, opts ...server.HandlerOption)
- type PublishRequest
- func (*PublishRequest) Descriptor() ([]byte, []int)
- func (m *PublishRequest) GetContract() string
- func (m *PublishRequest) GetCursorLabel() uint32
- func (m *PublishRequest) GetCursorNum() uint32
- func (m *PublishRequest) GetLifetime() uint64
- func (m *PublishRequest) GetMethod() string
- func (m *PublishRequest) GetParam() string
- func (m *PublishRequest) GetSender() string
- func (m *PublishRequest) GetSigAlg() uint32
- func (m *PublishRequest) GetSignature() string
- func (m *PublishRequest) GetVersion() uint32
- func (*PublishRequest) ProtoMessage()
- func (m *PublishRequest) Reset()
- func (m *PublishRequest) String() string
- type PublishResponse
- type QueryByIdData
- func (*QueryByIdData) Descriptor() ([]byte, []int)
- func (m *QueryByIdData) GetDescription() string
- func (m *QueryByIdData) GetExpireTime() uint64
- func (m *QueryByIdData) GetFeatureTag() uint64
- func (m *QueryByIdData) GetIsCollection() bool
- func (m *QueryByIdData) GetIsPresale() bool
- func (m *QueryByIdData) GetPrice() uint64
- func (m *QueryByIdData) GetPublishDate() uint64
- func (m *QueryByIdData) GetReqType() uint64
- func (m *QueryByIdData) GetRequirementId() string
- func (m *QueryByIdData) GetRequirementName() string
- func (m *QueryByIdData) GetSampleHash() string
- func (m *QueryByIdData) GetTokenType() string
- func (m *QueryByIdData) GetUsername() string
- func (*QueryByIdData) ProtoMessage()
- func (m *QueryByIdData) Reset()
- func (m *QueryByIdData) String() string
- type QueryByIdRequest
- type QueryByIdResponse
- func (*QueryByIdResponse) Descriptor() ([]byte, []int)
- func (m *QueryByIdResponse) GetCode() int32
- func (m *QueryByIdResponse) GetData() *QueryByIdData
- func (m *QueryByIdResponse) GetMsg() string
- func (*QueryByIdResponse) ProtoMessage()
- func (m *QueryByIdResponse) Reset()
- func (m *QueryByIdResponse) String() string
- type QueryData
- type QueryRequest
- func (*QueryRequest) Descriptor() ([]byte, []int)
- func (m *QueryRequest) GetPageNum() uint32
- func (m *QueryRequest) GetPageSize() uint32
- func (m *QueryRequest) GetRandom() string
- func (m *QueryRequest) GetReqId() string
- func (m *QueryRequest) GetReqType() uint64
- func (m *QueryRequest) GetSignature() string
- func (m *QueryRequest) GetUsername() string
- func (*QueryRequest) ProtoMessage()
- func (m *QueryRequest) Reset()
- func (m *QueryRequest) String() string
- type QueryResponse
- type Requirement
- type RequirementClient
- type RequirementData
- func (*RequirementData) Descriptor() ([]byte, []int)
- func (m *RequirementData) GetDescription() string
- func (m *RequirementData) GetExpireTime() uint64
- func (m *RequirementData) GetFeatureTag() uint64
- func (m *RequirementData) GetPrice() uint64
- func (m *RequirementData) GetPublishDate() uint64
- func (m *RequirementData) GetReqType() uint64
- func (m *RequirementData) GetRequirementId() string
- func (m *RequirementData) GetRequirementName() string
- func (m *RequirementData) GetSampleHash() string
- func (m *RequirementData) GetTokenType() string
- func (m *RequirementData) GetUsername() string
- func (*RequirementData) ProtoMessage()
- func (m *RequirementData) Reset()
- func (m *RequirementData) String() string
- type RequirementHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRequirementHandler ¶
func RegisterRequirementHandler(s server.Server, hdlr RequirementHandler, opts ...server.HandlerOption)
Types ¶
type PublishRequest ¶
type PublishRequest struct { Version uint32 `protobuf:"varint,1,opt,name=version" json:"version"` CursorNum uint32 `protobuf:"varint,2,opt,name=cursor_num,json=cursorNum" json:"cursor_num"` CursorLabel uint32 `protobuf:"varint,3,opt,name=cursor_label,json=cursorLabel" json:"cursor_label"` Lifetime uint64 `protobuf:"varint,4,opt,name=lifetime" json:"lifetime"` Sender string `protobuf:"bytes,5,opt,name=sender" json:"sender"` Contract string `protobuf:"bytes,6,opt,name=contract" json:"contract"` Method string `protobuf:"bytes,7,opt,name=method" json:"method"` Param string `protobuf:"bytes,8,opt,name=param" json:"param"` SigAlg uint32 `protobuf:"varint,9,opt,name=sig_alg,json=sigAlg" json:"sig_alg"` Signature string `protobuf:"bytes,10,opt,name=signature" json:"signature"` }
func (*PublishRequest) Descriptor ¶
func (*PublishRequest) Descriptor() ([]byte, []int)
func (*PublishRequest) GetContract ¶
func (m *PublishRequest) GetContract() string
func (*PublishRequest) GetCursorLabel ¶
func (m *PublishRequest) GetCursorLabel() uint32
func (*PublishRequest) GetCursorNum ¶
func (m *PublishRequest) GetCursorNum() uint32
func (*PublishRequest) GetLifetime ¶
func (m *PublishRequest) GetLifetime() uint64
func (*PublishRequest) GetMethod ¶
func (m *PublishRequest) GetMethod() string
func (*PublishRequest) GetParam ¶
func (m *PublishRequest) GetParam() string
func (*PublishRequest) GetSender ¶
func (m *PublishRequest) GetSender() string
func (*PublishRequest) GetSigAlg ¶
func (m *PublishRequest) GetSigAlg() uint32
func (*PublishRequest) GetSignature ¶
func (m *PublishRequest) GetSignature() string
func (*PublishRequest) GetVersion ¶
func (m *PublishRequest) GetVersion() uint32
func (*PublishRequest) ProtoMessage ¶
func (*PublishRequest) ProtoMessage()
func (*PublishRequest) Reset ¶
func (m *PublishRequest) Reset()
func (*PublishRequest) String ¶
func (m *PublishRequest) String() string
type PublishResponse ¶
type PublishResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code" json:"code"` Data string `protobuf:"bytes,2,opt,name=data" json:"data"` Msg string `protobuf:"bytes,3,opt,name=msg" json:"msg"` }
func (*PublishResponse) Descriptor ¶
func (*PublishResponse) Descriptor() ([]byte, []int)
func (*PublishResponse) GetCode ¶
func (m *PublishResponse) GetCode() uint32
func (*PublishResponse) GetData ¶
func (m *PublishResponse) GetData() string
func (*PublishResponse) GetMsg ¶
func (m *PublishResponse) GetMsg() string
func (*PublishResponse) ProtoMessage ¶
func (*PublishResponse) ProtoMessage()
func (*PublishResponse) Reset ¶
func (m *PublishResponse) Reset()
func (*PublishResponse) String ¶
func (m *PublishResponse) String() string
type QueryByIdData ¶
type QueryByIdData struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username"` RequirementId string `protobuf:"bytes,2,opt,name=requirement_id,json=requirementId" json:"requirement_id"` RequirementName string `protobuf:"bytes,3,opt,name=requirement_name,json=requirementName" json:"requirement_name"` ReqType uint64 `protobuf:"varint,4,opt,name=req_type,json=reqType" json:"req_type"` FeatureTag uint64 `protobuf:"varint,5,opt,name=feature_tag,json=featureTag" json:"feature_tag"` SampleHash string `protobuf:"bytes,7,opt,name=sample_hash,json=sampleHash" json:"sample_hash"` ExpireTime uint64 `protobuf:"varint,8,opt,name=expire_time,json=expireTime" json:"expire_time"` TokenType string `protobuf:"bytes,9,opt,name=token_type,json=tokenType" json:"token_type"` Price uint64 `protobuf:"varint,10,opt,name=price" json:"price"` Description string `protobuf:"bytes,11,opt,name=description" json:"description"` PublishDate uint64 `protobuf:"varint,12,opt,name=publish_date,json=publishDate" json:"publish_date"` IsCollection bool `protobuf:"varint,13,opt,name=is_collection,json=isCollection" json:"is_collection"` IsPresale bool `protobuf:"varint,14,opt,name=is_presale,json=isPresale" json:"is_presale"` }
func (*QueryByIdData) Descriptor ¶
func (*QueryByIdData) Descriptor() ([]byte, []int)
func (*QueryByIdData) GetDescription ¶
func (m *QueryByIdData) GetDescription() string
func (*QueryByIdData) GetExpireTime ¶
func (m *QueryByIdData) GetExpireTime() uint64
func (*QueryByIdData) GetFeatureTag ¶
func (m *QueryByIdData) GetFeatureTag() uint64
func (*QueryByIdData) GetIsCollection ¶
func (m *QueryByIdData) GetIsCollection() bool
func (*QueryByIdData) GetIsPresale ¶
func (m *QueryByIdData) GetIsPresale() bool
func (*QueryByIdData) GetPrice ¶
func (m *QueryByIdData) GetPrice() uint64
func (*QueryByIdData) GetPublishDate ¶
func (m *QueryByIdData) GetPublishDate() uint64
func (*QueryByIdData) GetReqType ¶
func (m *QueryByIdData) GetReqType() uint64
func (*QueryByIdData) GetRequirementId ¶
func (m *QueryByIdData) GetRequirementId() string
func (*QueryByIdData) GetRequirementName ¶
func (m *QueryByIdData) GetRequirementName() string
func (*QueryByIdData) GetSampleHash ¶
func (m *QueryByIdData) GetSampleHash() string
func (*QueryByIdData) GetTokenType ¶
func (m *QueryByIdData) GetTokenType() string
func (*QueryByIdData) GetUsername ¶
func (m *QueryByIdData) GetUsername() string
func (*QueryByIdData) ProtoMessage ¶
func (*QueryByIdData) ProtoMessage()
func (*QueryByIdData) Reset ¶
func (m *QueryByIdData) Reset()
func (*QueryByIdData) String ¶
func (m *QueryByIdData) String() string
type QueryByIdRequest ¶
type QueryByIdRequest struct { ReqId string `protobuf:"bytes,1,opt,name=req_id,json=reqId" json:"req_id"` Sender string `protobuf:"bytes,2,opt,name=sender" json:"sender"` }
func (*QueryByIdRequest) Descriptor ¶
func (*QueryByIdRequest) Descriptor() ([]byte, []int)
func (*QueryByIdRequest) GetReqId ¶
func (m *QueryByIdRequest) GetReqId() string
func (*QueryByIdRequest) GetSender ¶
func (m *QueryByIdRequest) GetSender() string
func (*QueryByIdRequest) ProtoMessage ¶
func (*QueryByIdRequest) ProtoMessage()
func (*QueryByIdRequest) Reset ¶
func (m *QueryByIdRequest) Reset()
func (*QueryByIdRequest) String ¶
func (m *QueryByIdRequest) String() string
type QueryByIdResponse ¶
type QueryByIdResponse struct { Code int32 `protobuf:"varint,1,opt,name=code" json:"code"` Data *QueryByIdData `protobuf:"bytes,2,opt,name=data" json:"data"` Msg string `protobuf:"bytes,3,opt,name=msg" json:"msg"` }
func (*QueryByIdResponse) Descriptor ¶
func (*QueryByIdResponse) Descriptor() ([]byte, []int)
func (*QueryByIdResponse) GetCode ¶
func (m *QueryByIdResponse) GetCode() int32
func (*QueryByIdResponse) GetData ¶
func (m *QueryByIdResponse) GetData() *QueryByIdData
func (*QueryByIdResponse) GetMsg ¶
func (m *QueryByIdResponse) GetMsg() string
func (*QueryByIdResponse) ProtoMessage ¶
func (*QueryByIdResponse) ProtoMessage()
func (*QueryByIdResponse) Reset ¶
func (m *QueryByIdResponse) Reset()
func (*QueryByIdResponse) String ¶
func (m *QueryByIdResponse) String() string
type QueryData ¶
type QueryData struct { PageNum uint32 `protobuf:"varint,1,opt,name=page_num,json=pageNum" json:"page_num"` RowCount uint32 `protobuf:"varint,2,opt,name=row_count,json=rowCount" json:"row_count"` Row []*RequirementData `protobuf:"bytes,3,rep,name=row" json:"row"` }
func (*QueryData) Descriptor ¶
func (*QueryData) GetPageNum ¶
func (*QueryData) GetRow ¶
func (m *QueryData) GetRow() []*RequirementData
func (*QueryData) GetRowCount ¶
func (*QueryData) ProtoMessage ¶
func (*QueryData) ProtoMessage()
type QueryRequest ¶
type QueryRequest struct { PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize" json:"page_size"` PageNum uint32 `protobuf:"varint,2,opt,name=page_num,json=pageNum" json:"page_num"` ReqId string `protobuf:"bytes,3,opt,name=req_id,json=reqId" json:"req_id"` ReqType uint64 `protobuf:"varint,4,opt,name=req_type,json=reqType" json:"req_type"` Username string `protobuf:"bytes,5,opt,name=username" json:"username"` Random string `protobuf:"bytes,6,opt,name=random" json:"random"` Signature string `protobuf:"bytes,7,opt,name=signature" json:"signature"` }
func (*QueryRequest) Descriptor ¶
func (*QueryRequest) Descriptor() ([]byte, []int)
func (*QueryRequest) GetPageNum ¶
func (m *QueryRequest) GetPageNum() uint32
func (*QueryRequest) GetPageSize ¶
func (m *QueryRequest) GetPageSize() uint32
func (*QueryRequest) GetRandom ¶
func (m *QueryRequest) GetRandom() string
func (*QueryRequest) GetReqId ¶
func (m *QueryRequest) GetReqId() string
func (*QueryRequest) GetReqType ¶
func (m *QueryRequest) GetReqType() uint64
func (*QueryRequest) GetSignature ¶
func (m *QueryRequest) GetSignature() string
func (*QueryRequest) GetUsername ¶
func (m *QueryRequest) GetUsername() string
func (*QueryRequest) ProtoMessage ¶
func (*QueryRequest) ProtoMessage()
func (*QueryRequest) Reset ¶
func (m *QueryRequest) Reset()
func (*QueryRequest) String ¶
func (m *QueryRequest) String() string
type QueryResponse ¶
type QueryResponse struct { Code int32 `protobuf:"varint,1,opt,name=code" json:"code"` Data *QueryData `protobuf:"bytes,2,opt,name=data" json:"data"` Msg string `protobuf:"bytes,3,opt,name=msg" json:"msg"` }
func (*QueryResponse) Descriptor ¶
func (*QueryResponse) Descriptor() ([]byte, []int)
func (*QueryResponse) GetCode ¶
func (m *QueryResponse) GetCode() int32
func (*QueryResponse) GetData ¶
func (m *QueryResponse) GetData() *QueryData
func (*QueryResponse) GetMsg ¶
func (m *QueryResponse) GetMsg() string
func (*QueryResponse) ProtoMessage ¶
func (*QueryResponse) ProtoMessage()
func (*QueryResponse) Reset ¶
func (m *QueryResponse) Reset()
func (*QueryResponse) String ¶
func (m *QueryResponse) String() string
type Requirement ¶
type Requirement struct {
RequirementHandler
}
func (*Requirement) Publish ¶
func (h *Requirement) Publish(ctx context.Context, in *PublishRequest, out *PublishResponse) error
func (*Requirement) Query ¶
func (h *Requirement) Query(ctx context.Context, in *QueryRequest, out *QueryResponse) error
func (*Requirement) QueryById ¶
func (h *Requirement) QueryById(ctx context.Context, in *QueryByIdRequest, out *QueryByIdResponse) error
type RequirementClient ¶
type RequirementClient interface { Publish(ctx context.Context, in *PublishRequest, opts ...client.CallOption) (*PublishResponse, error) Query(ctx context.Context, in *QueryRequest, opts ...client.CallOption) (*QueryResponse, error) QueryById(ctx context.Context, in *QueryByIdRequest, opts ...client.CallOption) (*QueryByIdResponse, error) }
func NewRequirementClient ¶
func NewRequirementClient(serviceName string, c client.Client) RequirementClient
type RequirementData ¶
type RequirementData struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username"` RequirementId string `protobuf:"bytes,2,opt,name=requirement_id,json=requirementId" json:"requirement_id"` RequirementName string `protobuf:"bytes,3,opt,name=requirement_name,json=requirementName" json:"requirement_name"` ReqType uint64 `protobuf:"varint,4,opt,name=req_type,json=reqType" json:"req_type"` FeatureTag uint64 `protobuf:"varint,5,opt,name=feature_tag,json=featureTag" json:"feature_tag"` SampleHash string `protobuf:"bytes,7,opt,name=sample_hash,json=sampleHash" json:"sample_hash"` ExpireTime uint64 `protobuf:"varint,8,opt,name=expire_time,json=expireTime" json:"expire_time"` TokenType string `protobuf:"bytes,9,opt,name=token_type,json=tokenType" json:"token_type"` Price uint64 `protobuf:"varint,10,opt,name=price" json:"price"` Description string `protobuf:"bytes,11,opt,name=description" json:"description"` PublishDate uint64 `protobuf:"varint,12,opt,name=publish_date,json=publishDate" json:"publish_date"` }
func (*RequirementData) Descriptor ¶
func (*RequirementData) Descriptor() ([]byte, []int)
func (*RequirementData) GetDescription ¶
func (m *RequirementData) GetDescription() string
func (*RequirementData) GetExpireTime ¶
func (m *RequirementData) GetExpireTime() uint64
func (*RequirementData) GetFeatureTag ¶
func (m *RequirementData) GetFeatureTag() uint64
func (*RequirementData) GetPrice ¶
func (m *RequirementData) GetPrice() uint64
func (*RequirementData) GetPublishDate ¶
func (m *RequirementData) GetPublishDate() uint64
func (*RequirementData) GetReqType ¶
func (m *RequirementData) GetReqType() uint64
func (*RequirementData) GetRequirementId ¶
func (m *RequirementData) GetRequirementId() string
func (*RequirementData) GetRequirementName ¶
func (m *RequirementData) GetRequirementName() string
func (*RequirementData) GetSampleHash ¶
func (m *RequirementData) GetSampleHash() string
func (*RequirementData) GetTokenType ¶
func (m *RequirementData) GetTokenType() string
func (*RequirementData) GetUsername ¶
func (m *RequirementData) GetUsername() string
func (*RequirementData) ProtoMessage ¶
func (*RequirementData) ProtoMessage()
func (*RequirementData) Reset ¶
func (m *RequirementData) Reset()
func (*RequirementData) String ¶
func (m *RequirementData) String() string
type RequirementHandler ¶
type RequirementHandler interface { Publish(context.Context, *PublishRequest, *PublishResponse) error Query(context.Context, *QueryRequest, *QueryResponse) error QueryById(context.Context, *QueryByIdRequest, *QueryByIdResponse) error }
Click to show internal directories.
Click to hide internal directories.