query

package
v2.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2019 License: BSD-3-Clause Imports: 12 Imported by: 1

Documentation

Index

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

type GraphQLFrontend struct {
	Server    *http.Server
	IsRunning bool
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL