accesslogging

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessLogging

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

func NewAccessLogging

func NewAccessLogging(cfg Config, log *slog.Logger) *AccessLogging

func (*AccessLogging) Log

func (a *AccessLogging) Log(payloads []gql.RequestData, headers http.Header)

type Config

type Config struct {
	Enabled              bool     `yaml:"enabled"`
	IncludedHeaders      []string `yaml:"include_headers"`
	IncludeOperationName bool     `yaml:"include_operation_name"`
	IncludeVariables     bool     `yaml:"include_variables"`
	IncludePayload       bool     `yaml:"include_payload"`
}

func DefaultConfig added in v0.17.0

func DefaultConfig() Config

Jump to

Keyboard shortcuts

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