generated

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type ComplexityRoot

type ComplexityRoot struct {
	CheckExecution struct {
		ErrorMsg      func(childComplexity int) int
		ExecutionTime func(childComplexity int) int
		ID            func(childComplexity int) int
		Message       func(childComplexity int) int
		Status        func(childComplexity int) int
	}

	CheckUptime struct {
		Uptime24h func(childComplexity int) int
		Uptime30d func(childComplexity int) int
		Uptime7d  func(childComplexity int) int
	}

	DeleteResponse struct {
		ID func(childComplexity int) int
	}

	HttpCheck struct {
		ErrorMsg         func(childComplexity int) int
		Executions       func(childComplexity int, from *time.Time, until *time.Time) int
		Frecuency        func(childComplexity int) int
		ID               func(childComplexity int) int
		LatestCheck      func(childComplexity int) int
		LatestExecutions func(childComplexity int, limit int) int
		Message          func(childComplexity int) int
		Name             func(childComplexity int) int
		Namespace        func(childComplexity int) int
		Status           func(childComplexity int) int
		URL              func(childComplexity int) int
		Uptime           func(childComplexity int) int
	}

	IcmpCheck struct {
		Address          func(childComplexity int) int
		ErrorMsg         func(childComplexity int) int
		Executions       func(childComplexity int, from *time.Time, until *time.Time) int
		Frecuency        func(childComplexity int) int
		ID               func(childComplexity int) int
		LatestCheck      func(childComplexity int) int
		LatestExecutions func(childComplexity int, limit int) int
		Message          func(childComplexity int) int
		Name             func(childComplexity int) int
		Namespace        func(childComplexity int) int
		Status           func(childComplexity int) int
		Uptime           func(childComplexity int) int
	}

	Mutation struct {
		CreateHTTPCheck  func(childComplexity int, input models.CreateHTTPCheckInput) int
		CreateICMPCheck  func(childComplexity int, input models.CreateICMPCheckInput) int
		CreateStatusPage func(childComplexity int, input models.CreateStatusPageInput) int
		CreateTCPCheck   func(childComplexity int, input models.CreateTCPCheckInput) int
		CreateTLSCheck   func(childComplexity int, input models.CreateTLSCheckInput) int
		DeleteCheck      func(childComplexity int, name string, namespace string) int
		DeleteStatusPage func(childComplexity int, name string, namespace string) int
		Poll             func(childComplexity int) int
	}

	Namespace struct {
		ID   func(childComplexity int) int
		Name func(childComplexity int) int
	}

	PollResult struct {
		Took func(childComplexity int) int
	}

	Query struct {
		Check            func(childComplexity int, checkID string) int
		Checks           func(childComplexity int, namespace *string) int
		Execution        func(childComplexity int, execID string) int
		Executions       func(childComplexity int, checkID string, from *time.Time, until *time.Time) int
		LatestExecutions func(childComplexity int, checkID string, limit int) int
		Namespaces       func(childComplexity int) int
		StatusPage       func(childComplexity int, slug string) int
		StatusPages      func(childComplexity int, namespace *string) int
	}

	StatusPage struct {
		Checks    func(childComplexity int) int
		ID        func(childComplexity int) int
		Name      func(childComplexity int) int
		Namespace func(childComplexity int) int
		Slug      func(childComplexity int) int
		Title     func(childComplexity int) int
	}

	TcpCheck struct {
		Address          func(childComplexity int) int
		ErrorMsg         func(childComplexity int) int
		Executions       func(childComplexity int, from *time.Time, until *time.Time) int
		Frecuency        func(childComplexity int) int
		ID               func(childComplexity int) int
		LatestCheck      func(childComplexity int) int
		LatestExecutions func(childComplexity int, limit int) int
		Message          func(childComplexity int) int
		Name             func(childComplexity int) int
		Namespace        func(childComplexity int) int
		Status           func(childComplexity int) int
		Uptime           func(childComplexity int) int
	}

	TlsCheck struct {
		Address          func(childComplexity int) int
		ErrorMsg         func(childComplexity int) int
		Executions       func(childComplexity int, from *time.Time, until *time.Time) int
		Frecuency        func(childComplexity int) int
		ID               func(childComplexity int) int
		LatestCheck      func(childComplexity int) int
		LatestExecutions func(childComplexity int, limit int) int
		Message          func(childComplexity int) int
		Name             func(childComplexity int) int
		Namespace        func(childComplexity int) int
		Status           func(childComplexity int) int
		Uptime           func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type HttpCheckResolver

type HttpCheckResolver interface {
	Uptime(ctx context.Context, obj *models.HTTPCheck) (*models.CheckUptime, error)

	LatestExecutions(ctx context.Context, obj *models.HTTPCheck, limit int) ([]*models.CheckExecution, error)
	Executions(ctx context.Context, obj *models.HTTPCheck, from *time.Time, until *time.Time) ([]*models.CheckExecution, error)
}

type IcmpCheckResolver

type IcmpCheckResolver interface {
	Uptime(ctx context.Context, obj *models.ICMPCheck) (*models.CheckUptime, error)

	LatestExecutions(ctx context.Context, obj *models.ICMPCheck, limit int) ([]*models.CheckExecution, error)
	Executions(ctx context.Context, obj *models.ICMPCheck, from *time.Time, until *time.Time) ([]*models.CheckExecution, error)
}

type MutationResolver

type MutationResolver interface {
	Poll(ctx context.Context) (*models.PollResult, error)
	CreateHTTPCheck(ctx context.Context, input models.CreateHTTPCheckInput) (models.Check, error)
	CreateTCPCheck(ctx context.Context, input models.CreateTCPCheckInput) (models.Check, error)
	CreateTLSCheck(ctx context.Context, input models.CreateTLSCheckInput) (models.Check, error)
	CreateICMPCheck(ctx context.Context, input models.CreateICMPCheckInput) (models.Check, error)
	CreateStatusPage(ctx context.Context, input models.CreateStatusPageInput) (*models.StatusPage, error)
	DeleteCheck(ctx context.Context, name string, namespace string) (*models.DeleteResponse, error)
	DeleteStatusPage(ctx context.Context, name string, namespace string) (*models.DeleteResponse, error)
}

type QueryResolver

type QueryResolver interface {
	StatusPage(ctx context.Context, slug string) (*models.StatusPage, error)
	StatusPages(ctx context.Context, namespace *string) ([]*models.StatusPage, error)
	Namespaces(ctx context.Context) ([]*models.Namespace, error)
	LatestExecutions(ctx context.Context, checkID string, limit int) ([]*models.CheckExecution, error)
	Checks(ctx context.Context, namespace *string) ([]models.Check, error)
	Check(ctx context.Context, checkID string) (models.Check, error)
	Executions(ctx context.Context, checkID string, from *time.Time, until *time.Time) ([]*models.CheckExecution, error)
	Execution(ctx context.Context, execID string) (*models.CheckExecution, error)
}

type ResolverRoot

type ResolverRoot interface {
	HttpCheck() HttpCheckResolver
	IcmpCheck() IcmpCheckResolver
	Mutation() MutationResolver
	Query() QueryResolver
	StatusPage() StatusPageResolver
	TcpCheck() TcpCheckResolver
	TlsCheck() TlsCheckResolver
}

type StatusPageResolver

type StatusPageResolver interface {
	Checks(ctx context.Context, obj *models.StatusPage) ([]models.Check, error)
}

type TcpCheckResolver

type TcpCheckResolver interface {
	Uptime(ctx context.Context, obj *models.TCPCheck) (*models.CheckUptime, error)

	LatestExecutions(ctx context.Context, obj *models.TCPCheck, limit int) ([]*models.CheckExecution, error)
	Executions(ctx context.Context, obj *models.TCPCheck, from *time.Time, until *time.Time) ([]*models.CheckExecution, error)
}

type TlsCheckResolver

type TlsCheckResolver interface {
	Uptime(ctx context.Context, obj *models.TLSCheck) (*models.CheckUptime, error)

	LatestExecutions(ctx context.Context, obj *models.TLSCheck, limit int) ([]*models.CheckExecution, error)
	Executions(ctx context.Context, obj *models.TLSCheck, from *time.Time, until *time.Time) ([]*models.CheckExecution, error)
}

Jump to

Keyboard shortcuts

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