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"` }
Click to show internal directories.
Click to hide internal directories.