router

package
v0.7.21 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRouter

func CreateRouter(
	appConfig config.Config,
	svc *service.Service,
	log *logger.Logger,
	mws []func(http.Handler) http.Handler,
	opts ...Options,
) *chi.Mux

Types

type Options added in v0.3.0

type Options func(*graph.Config)

func WithAuthorizedDirective added in v0.3.0

func WithAuthorizedDirective(
	dir func(ctx context.Context, obj any, next gqlgen.Resolver, relation string, entityType *string, entityTypeParamName *string, entityParamName string) (res any, err error),
) Options

Jump to

Keyboard shortcuts

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