From 121a27772602e6718827f77b7ea9f21b61fe2177 Mon Sep 17 00:00:00 2001 From: Raul Jordan Date: Tue, 20 Aug 2019 17:01:55 -0500 Subject: [PATCH] add better godocs (#3250) --- beacon-chain/db/filters/filter.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/beacon-chain/db/filters/filter.go b/beacon-chain/db/filters/filter.go index e59863797..353524203 100644 --- a/beacon-chain/db/filters/filter.go +++ b/beacon-chain/db/filters/filter.go @@ -56,37 +56,37 @@ func (q *QueryFilter) Filters() map[FilterType]interface{} { return q.queries } -// SetParentRoot -- +// SetParentRoot allows for filtering by the parent root data attribute of an object. func (q *QueryFilter) SetParentRoot(val []byte) *QueryFilter { q.queries[ParentRoot] = val return q } -// SetStartSlot -- +// SetStartSlot enables filtering by all the items that begin at a slot (inclusive). func (q *QueryFilter) SetStartSlot(val uint64) *QueryFilter { q.queries[StartSlot] = val return q } -// SetEndSlot -- +// SetEndSlot enables filtering by all the items that end at a slot (inclusive). func (q *QueryFilter) SetEndSlot(val uint64) *QueryFilter { q.queries[EndSlot] = val return q } -// SetStartEpoch -- +// SetStartEpoch enables filtering by the StartEpoch attribute of an object (inclusive). func (q *QueryFilter) SetStartEpoch(val uint64) *QueryFilter { q.queries[StartEpoch] = val return q } -// SetEndEpoch -- +// SetEndEpoch enables filtering by the EndEpoch attribute of an object (inclusive). func (q *QueryFilter) SetEndEpoch(val uint64) *QueryFilter { q.queries[EndEpoch] = val return q } -// SetShard -- +// SetShard enabled filtering by the Shard attribute of an object. func (q *QueryFilter) SetShard(val uint64) *QueryFilter { q.queries[Shard] = val return q