MCPcopy Index your code
hub / github.com/google/go-github / GetRetryAfter

Method GetRetryAfter

github/github-accessors.go:26–31  ·  view source on GitHub ↗

GetRetryAfter returns the RetryAfter field if it's non-nil, zero value otherwise.

()

Source from the content-addressed store, hash-verified

24
25// GetRetryAfter returns the RetryAfter field if it's non-nil, zero value otherwise.
26func (a *AbuseRateLimitError) GetRetryAfter() time.Duration {
27 if a == nil || a.RetryAfter == nil {
28 return 0
29 }
30 return *a.RetryAfter
31}
32
33// GetAssignment returns the Assignment field.
34func (a *AcceptedAssignment) GetAssignment() *ClassroomAssignment {

Callers 2

bareDoMethod · 0.95

Calls

no outgoing calls

Tested by 1