accesslogging

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Aug 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     `conf:"default:true" yaml:"enabled"`
	IncludedHeaders      []string `yaml:"include_headers"`
	IncludeOperationName bool     `conf:"default:true" yaml:"include_operation_name"`
	IncludeVariables     bool     `conf:"default:true" yaml:"include_variables"`
	IncludePayload       bool     `conf:"default:false" yaml:"include_payload"`
}

Jump to

Keyboard shortcuts

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