Documentation ¶
Index ¶
- Variables
- func CheckFilters() map[string]filter.Filter
- func DefaultGlobalFilters() map[string]filter.Filter
- func DefaultSuggestSchema() suggest.Register
- func EntityFilters() map[string]filter.Filter
- func EventFilters() map[string]filter.Filter
- func HandlerFilters() map[string]filter.Filter
- func SilenceFilters() map[string]filter.Filter
- type ClientFactory
- type Commandable
- type InitHook
- type KVPairString
- type Service
- type ServiceConfig
- type Subscribable
- type Timeoutable
Constants ¶
This section is empty.
Variables ¶
var GlobalFilters = DefaultGlobalFilters()
GlobalFilters are filters that are applied to all resolvers that accept filter statements.
var InitHooks = []InitHook{}
InitHooks allow consumers to hook into the initialization of the service and mutate the schema. Useful for product variants.
var (
SuggestSchema = DefaultSuggestSchema()
)
Functions ¶
func CheckFilters ¶
CheckFilters returns collection of filters used for matching resources.
func DefaultGlobalFilters ¶
DefaultGlobalFilters returns the default set of global filters.
func DefaultSuggestSchema ¶
func EntityFilters ¶
EntityFilters returns collection of filters used for matching resources.
func EventFilters ¶
EventFilters returns collection of filters used for matching resources.
func HandlerFilters ¶
HandlerFilters returns collection of filters used for matching resources.
func SilenceFilters ¶
SilenceFilters returns collection of filters used for matching resources.
Types ¶
type ClientFactory ¶
ClientFactory instantiates new instances of the REST API client
type Commandable ¶
type Commandable interface {
GetCommand() string
}
type InitHook ¶
type InitHook func(*graphql.Service, ServiceConfig)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service describes the Sensu GraphQL service capable of handling queries.
func NewService ¶
func NewService(cfg ServiceConfig) (*Service, error)
NewService instantiates new GraphQL service
type ServiceConfig ¶
type ServiceConfig struct {
ClientFactory ClientFactory
}
ServiceConfig describes values required to instantiate service.
type Subscribable ¶
type Subscribable interface {
GetSubscriptions() []string
}
type Timeoutable ¶
type Timeoutable interface {
GetTimeout() uint32
}
Source Files ¶
- asset.go
- check.go
- check_filters.go
- context.go
- dataloader.go
- entity.go
- entity_filters.go
- error.go
- event.go
- event_filters.go
- fetch.go
- filter.go
- global_filters.go
- handler.go
- handler_filters.go
- hook.go
- logger.go
- meta.go
- mutations.go
- mutator.go
- namespace.go
- node.go
- pagination.go
- query.go
- rbac.go
- scalars.go
- service.go
- silence_filters.go
- silenced.go
- subscription.go
- suggest.go
- user.go
- util.go
- viewer.go