Documentation ¶
Index ¶
Constants ¶
View Source
const ( MethodRegex Method = iota MethodGlob KeyRRNames Key = iota KeyRData )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶
type Query interface { // WithRRType sets the rrtype for the query. The default value is ANY. WithRRType(rrtype string) Query WithExclude(exclude string) Query // WithLimit sets the limit for the number of results returned. WithLimit(n int) Query // WithOffset sets how many rows to skip in the results. This is only applicable to Lookup queries // and the API server may return an error if it is set for a Summarize query. WithOffset(n int) Query // WithTimeFirstBefore selects records with time_first that is before `when`. WithTimeFirstBefore(when time.Time) Query // WithTimeFirstAfter selects records with time_first that is after `when`. WithTimeFirstAfter(when time.Time) Query // WithTimeLastBefore selects records with time_last that is before `when`. WithTimeLastBefore(when time.Time) Query // WithTimeLastAfter selects records with time_last that is after `when`. WithTimeLastAfter(when time.Time) Query // WithRelativeTimeFirstBefore selects records with time_first that is before now - `since`. WithRelativeTimeFirstBefore(since time.Duration) Query // WithRelativeTimeFirstAfter selects records with time_first that is after now - `since`. WithRelativeTimeFirstAfter(since time.Duration) Query // WithRelativeTimeLastBefore selects records with time_last that is before now - `since`. WithRelativeTimeLastBefore(since time.Duration) Query // WithRelativeTimeLastAfter selects records with time_last that is after now - `since`. WithRelativeTimeLastAfter(since time.Duration) Query Do(ctx context.Context) Result }
type Record ¶
type Record struct { RRName string `json:"rrname,omitempty"` RData string `json:"rdata,omitempty"` RawRData []byte `json:"raw_rdata,omitempty"` RRType string `json:"rrtype,omitempty"` Count int `json:"count,omitempty"` TimeFirst time.Time `json:"time_first,omitempty"` TimeLast time.Time `json:"time_last,omitempty"` }
func (Record) MarshalJSON ¶
func (*Record) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.