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