// ClientBefore sets the RequestFuncs that are applied to the outgoing HTTP
// request before it's invoked.
503701
func ClientBefore(before ...httptransport.RequestFunc) ClientOption {
	return func(c *Client) { c.before = append(c.before, before...) }
}
279364
func (l *udpPacketList) InsertBefore(a, e *udpPacket) {
	b := udpPacketElementMapper{}.linkerFor(a).Prev()
	udpPacketElementMapper{}.linkerFor(e).SetNext(a)
	udpPacketElementMapper{}.linkerFor(e).SetPrev(b)
	udpPacketElementMapper{}.linkerFor(a).SetPrev(e)

	if b != nil {
		udpPacketElementMapper{}.linkerFor(b).SetNext(e)
	} else {
		l.head = e
	}
}
656263
func (l *icmpPacketList) InsertBefore(a, e *icmpPacket) {
	b := icmpPacketElementMapper{}.linkerFor(a).Prev()
	icmpPacketElementMapper{}.linkerFor(e).SetNext(a)
	icmpPacketElementMapper{}.linkerFor(e).SetPrev(b)
	icmpPacketElementMapper{}.linkerFor(a).SetPrev(e)

	if b != nil {
		icmpPacketElementMapper{}.linkerFor(b).SetNext(e)
	} else {
		l.head = e
	}
}
137648
func (s *DescribeJobFlowsInput) SetCreatedBefore(v time.Time) *DescribeJobFlowsInput {
	s.CreatedBefore = &v
	return s
}
49460
func (l *ItemList) InsertBefore(v Item, mark *ItemElement) *ItemElement {
	if mark.list != l {
		return nil
	}
	// see comment in List.Remove about initialization of l
	return l.insertValue(v, mark.prev)
}
494611
func (l *List) MoveBefore(e, mark *Element) {
	if e == mark || mark.list != l {
		return
	}
	l.insert(l.remove(e), mark.prev)
}
588268
func (s *CertificateValidity) SetNotBefore(v time.Time) *CertificateValidity {
	s.NotBefore = &v
	return s
}
487133
func (l *ByteIntervalList) MoveBefore(e, mark *ByteIntervalElement) {
	if e.list != l || e == mark || mark.list != l {
		return
	}
	l.insert(l.remove(e), mark.prev)
}
757500
func (s *ListModelsInput) SetCreationTimeBefore(v time.Time) *ListModelsInput {
	s.CreationTimeBefore = &v
	return s
}
373120
func (s *EntitiesDetectionJobFilter) SetSubmitTimeBefore(v time.Time) *EntitiesDetectionJobFilter {
	s.SubmitTimeBefore = &v
	return s
}
416253
func (s *KeyPhrasesDetectionJobFilter) SetSubmitTimeBefore(v time.Time) *KeyPhrasesDetectionJobFilter {
	s.SubmitTimeBefore = &v
	return s
}
670347
func (s *ListModelPackagesInput) SetCreationTimeBefore(v time.Time) *ListModelPackagesInput {
	s.CreationTimeBefore = &v
	return s
}
1023742
func (r *FileRef) OnBeforeClose(cb func()) {
	r.m.Lock()
	r.beforeCloseCallbacks = append(r.beforeCloseCallbacks, cb)
	r.m.Unlock()
}
275439
func PublisherBefore(before ...RequestFunc) PublisherOption {
	return func(p *Publisher) { p.before = append(p.before, before...) }
}
33756
func (c *ConnectionManager) WaitForClientType(clientType keybase1.ClientType, timeout time.Duration) bool {
	if c.hasClientType(clientType) {
		return true
	}
	ticker := time.NewTicker(time.Second)
	deadline := time.After(timeout)
	defer ticker.Stop()
	for {
		select {
		case <-ticker.C:
			if c.hasClientType(clientType) {
				return true
			}
		case <-deadline:
			return false
		}
	}
}
332432
func isBefore(key, max []byte) bool {
	return key != nil && bytes.Compare(key, max) <= 0
}
1334504
func (all *assetLruList) InsertBefore(v *assetLruListEntry, mark *assetLruListElement) *assetLruListElement {
	if mark.list != all {
		return nil
	}
	// see comment in assetLruList.Remove about initialization of l
	return all.insertValue(v, mark.prev)
}