Versions in this module Expand all Collapse all v0 v0.0.2 Oct 2, 2020 v0.0.1 Sep 28, 2020 Changes in this version + const ValueTypeArray + const ValueTypeDict + const ValueTypeDictElement + const ValueTypeScalar + const ValueTypeTLogSlice + const ValueTypeTLogSliceData + func HandlerQueryRequestState(c echo.Context) error + func HandlerQueryState(c echo.Context) error + type ArrayQueryParams struct + From uint16 + To uint16 + type ArrayResult struct + Len uint16 + Values [][]byte + type DictElementQueryParams struct + Key []byte + type DictElementResult struct + Value []byte + type DictQueryParams struct + Limit uint32 + type DictResult struct + Entries []KeyValuePair + Len uint32 + type KeyQuery struct + Key []byte + Params json.RawMessage + Type ValueType + type KeyValuePair struct + Key []byte + Value []byte + type QueryRequest struct + Address string + Query []*KeyQuery + QueryGeneralData bool + func NewQueryRequest(address *address.Address) *QueryRequest + func (q *QueryRequest) AddArray(key kv.Key, from uint16, to uint16) + func (q *QueryRequest) AddDictionary(key kv.Key, limit uint32) + func (q *QueryRequest) AddDictionaryElement(dictKey kv.Key, elemKey []byte) + func (q *QueryRequest) AddGeneralData() + func (q *QueryRequest) AddScalar(key kv.Key) + func (q *QueryRequest) AddTLogSlice(key kv.Key, fromTs, toTs int64) + func (q *QueryRequest) AddTLogSliceData(key kv.Key, fromIndex, toIndex uint32, descending bool) + type QueryResponse struct + Error string + Requests []string + Results []*QueryResult + StateHash string + StateIndex uint32 + StateTxId string + Timestamp int64 + type QueryResult struct + Key []byte + Type ValueType + Value json.RawMessage + func (r *QueryResult) MustAddress() *address.Address + func (r *QueryResult) MustArrayResult() *ArrayResult + func (r *QueryResult) MustBytes() []byte + func (r *QueryResult) MustDictionaryElementResult() []byte + func (r *QueryResult) MustDictionaryResult() *DictResult + func (r *QueryResult) MustHashValue() *hashing.HashValue + func (r *QueryResult) MustInt64() (int64, bool) + func (r *QueryResult) MustString() (string, bool) + func (r *QueryResult) MustTLogSliceDataResult() *TLogSliceDataResult + func (r *QueryResult) MustTLogSliceResult() *TLogSliceResult + type ReqStateRequest struct + Address string + RequestIds []string + type ReqStateResponse struct + Address string + Error string + Requests map[string]bool + type TLogSliceDataQueryParams struct + Descending bool + FromIndex uint32 + ToIndex uint32 + type TLogSliceDataResult struct + Values [][]byte + type TLogSliceQueryParams struct + FromTs int64 + ToTs int64 + type TLogSliceResult struct + Earliest int64 + FirstIndex uint32 + IsNotEmpty bool + LastIndex uint32 + Latest int64 + type ValueType string