SetShareSearch sets the search of share claim. q is assumed to be of type *search.SearchQuery. It panics if bb isn't a "share" claim type.
(q SearchQuery)
| 381 | // q is assumed to be of type *search.SearchQuery. |
| 382 | // It panics if bb isn't a "share" claim type. |
| 383 | func (bb *Builder) SetShareSearch(q SearchQuery) *Builder { |
| 384 | if bb.Type() != TypeClaim || bb.ClaimType() != ShareClaim { |
| 385 | panic("called SetShareSearch on non-share") |
| 386 | } |
| 387 | bb.m["search"] = q |
| 388 | return bb |
| 389 | } |
| 390 | |
| 391 | // SetShareExpiration sets the expiration time on share claim. |
| 392 | // It panics if bb isn't a "share" claim type. |