Documentation ¶
Index ¶
- type EntryResolver
- func (r *EntryResolver) Aliases(args struct{ ... }) *[]*EntryResolver
- func (r *EntryResolver) Count() int32
- func (r *EntryResolver) ID() graphql.ID
- func (r *EntryResolver) RRName() string
- func (r *EntryResolver) RRType() *string
- func (r *EntryResolver) Rdata() string
- func (r *EntryResolver) SensorID() *string
- func (r *EntryResolver) TimeFirst() int32
- func (r *EntryResolver) TimeFirstRFC3339() string
- func (r *EntryResolver) TimeLast() int32
- func (r *EntryResolver) TimeLastRFC3339() string
- type GraphQLFrontend
- type Resolver
- type StatsResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntryResolver ¶
type EntryResolver struct {
// contains filtered or unexported fields
}
EntryResolver is a resolver for the Entry type.
func (*EntryResolver) Aliases ¶
func (r *EntryResolver) Aliases(args struct{ Limit int32 }) *[]*EntryResolver
Aliases returns resolvers for Entries with the same IPs in Rdata (for A/AAAA type entries).
func (*EntryResolver) Count ¶
func (r *EntryResolver) Count() int32
Count returns the Count field of the corresponding entry.
func (*EntryResolver) ID ¶
func (r *EntryResolver) ID() graphql.ID
ID returns the ID field of the corresponding entry.
func (*EntryResolver) RRName ¶
func (r *EntryResolver) RRName() string
RRName returns the RRName field of the corresponding entry.
func (*EntryResolver) RRType ¶
func (r *EntryResolver) RRType() *string
RRType returns the RRType field of the corresponding entry.
func (*EntryResolver) Rdata ¶
func (r *EntryResolver) Rdata() string
Rdata returns the Rdata field of the corresponding entry.
func (*EntryResolver) SensorID ¶
func (r *EntryResolver) SensorID() *string
SensorID returns the sensor ID field of the corresponding entry.
func (*EntryResolver) TimeFirst ¶
func (r *EntryResolver) TimeFirst() int32
TimeFirst returns the first seen timestamp of the corresponding entry.
func (*EntryResolver) TimeFirstRFC3339 ¶
func (r *EntryResolver) TimeFirstRFC3339() string
TimeFirstRFC3339 returns first seen time, as RFC 3339 string, of the corresponding entry.
func (*EntryResolver) TimeLast ¶
func (r *EntryResolver) TimeLast() int32
TimeLast returns the last seen timestamp of the corresponding entry.
func (*EntryResolver) TimeLastRFC3339 ¶
func (r *EntryResolver) TimeLastRFC3339() string
TimeLastRFC3339 returns last seen time, as RFC 3339 string, of the corresponding entry.
type GraphQLFrontend ¶
GraphQLFrontend represents a concurrent component that provides a GraphQL query interface for the database.
func (*GraphQLFrontend) Run ¶
func (g *GraphQLFrontend) Run(port int)
Run starts this instance of a GraphQLFrontend in the background, accepting new requests on the configured port.
func (*GraphQLFrontend) Stop ¶
func (g *GraphQLFrontend) Stop()
Stop causes this instance of a GraphQLFrontend to cease accepting requests.
type Resolver ¶
type Resolver struct{}
Resolver is just used to bundle top level methods.
func (*Resolver) Entries ¶
func (r *Resolver) Entries(args struct { Rdata *string Rrname *string Rrtype *string SensorID *string Limit int32 }) (*[]*EntryResolver, error)
Entries returns a collection of Entry resolvers, given parameters such as Rdata, RRname, RRtype and sensor ID.
func (*Resolver) Stats ¶
func (r *Resolver) Stats() (*StatsResolver, error)
Stats returns a Stats resolver.
type StatsResolver ¶
type StatsResolver struct { }
StatsResolver is a resolver for the Stats type.
func (*StatsResolver) NumGoroutines ¶
func (r *StatsResolver) NumGoroutines() int32
NumGoroutines returns the number of currently running goroutines in balboa.
func (*StatsResolver) TotalCount ¶
func (r *StatsResolver) TotalCount() int32
TotalCount returns the total number of keys in the database.