model

package
v0.17.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Time        time.Time
	Proto       string
	Scheme      string
	Host        string
	Method      string
	Path        string
	Query       string
	Status      int
	ReqHdrNames []string
	ResHdrNames []string
	BodyShape   struct {
		Kind string
		JSON map[string]string `json:",omitempty"`
		Size int64
	}
	WSFrames []FrameShape `json:",omitempty"`
	GRPC     struct {
		Package      string
		Service      string
		Method       string
		Decoded      bool
		ClientStream bool
		ServerStream bool
		ReqSchema    *Schema
		ResSchema    *Schema
	}
	GraphQL struct {
		Operation string `json:"operation,omitempty"`
	}
	DurationMs int64
	ConnID     string
	TraceID    string
	Redactions []string
	// Hashed contains deterministic (SHA-256 hex, truncated) hashes of sensitive fields when hashing is configured.
	Hashed map[string]string `json:"hashed,omitempty"`
}

type FrameShape

type FrameShape struct {
	Kind string            `json:"Kind"`
	JSON map[string]string `json:"JSON,omitempty"`
	Size int64             `json:"Size,omitempty"`
}

type Schema

type Schema struct {
	Type   string             `json:"type,omitempty"`
	Format string             `json:"format,omitempty"`
	Props  map[string]*Schema `json:"properties,omitempty"`
	Items  *Schema            `json:"items,omitempty"`
}

Jump to

Keyboard shortcuts

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