graphql_api

package
v0.0.0-...-3273997 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterOn

func RegisterOn(registerer prometheusclient.Registerer)

func UnRegisterFrom

func UnRegisterFrom(registerer prometheusclient.Registerer)

Types

type GraphqlServer

type GraphqlServer struct {
	// contains filtered or unexported fields
}

func NewGraphqlServer

func NewGraphqlServer(logger *logger.Logger,
	articleRepository *storage.ArticleRepository,
	resourceRepository *storage.ResourceRepository,
	tracerProvider traces.ShutdownTracerProvider,
	subscriptionManager *notifier.SubscriptionManager[*model.FeedArticle]) *GraphqlServer

func (*GraphqlServer) RegisterRoutes

func (server *GraphqlServer) RegisterRoutes(registrar api.Registrar)

type PrometheusMetrics

type PrometheusMetrics struct{}

func (PrometheusMetrics) ExtensionName

func (a PrometheusMetrics) ExtensionName() string

func (PrometheusMetrics) InterceptField

func (a PrometheusMetrics) InterceptField(ctx context.Context, next graphql.Resolver) (interface{}, error)

func (PrometheusMetrics) InterceptOperation

func (PrometheusMetrics) InterceptResponse

func (a PrometheusMetrics) InterceptResponse(ctx context.Context, next graphql.ResponseHandler) *graphql.Response

func (PrometheusMetrics) Validate

Jump to

Keyboard shortcuts

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