Versions in this module Expand all Collapse all v2 v2.2.0 Nov 20, 2026 Changes in this version + func OneLine(text string) string + func OneLinePath(path string) string + func WholeRate(requests, millis int64) (count int64, unit string, ok bool) type Problems + func (p *Problems) RefuseControl(pos Pos, subject, text string) type TLS + Pos Pos type Tag + Pos Pos v2.1.0 Nov 12, 2026 Changes in this version + func IsDNSName(text string) bool + func ParseEndpoint(text string) (host string, port int64, dns bool, ok bool) + func ParseKeysURL(text string) (host string, port int64, dns bool, ok bool) + func ParseResolver(text string) (address string, port int64, ok bool) type Auth + SendRequest bool + type Claim struct + Header string + Name string + type ClientAddress string + const ClientConnection + const ClientForwarded type Gateway + ClientAddress ClientAddress + JWT *JWT + Resolver *Resolver + TLS *TLS + Tracing *Tracing + type Hash struct + Client bool + Header string + Pos Pos type Header + func (h Header) Covers(other Header) bool + type Health struct + GRPC *Text + Healthy int64 + Interval Time + Path *Text + Pos Pos + Timeout Time + Unhealthy int64 + type JWT struct + Audiences []string + CA string + Claims []Claim + DNS bool + File string + Header string + Host string + Issuer string + Optional bool + Port int64 + URL string + type OTel struct + DNS bool + Host string + Port int64 + RatePercent int + Service string type RPC + RateLimit *RateLimit + type RateLimit struct + Burst int64 + ByClient bool + Per Time + Requests int64 + type Resolver struct + Address string + Port int64 type Route + RateLimit *RateLimit type Service + Addresses []Text + Balance Text + DNS bool + Hash *Hash + Health *Health + type TLS struct + Certificate string + ClientsCA string + Key string type Tracing + OTel *OTel v2.0.0 Nov 11, 2026 Changes in this version + const AgentPattern + const PercentPattern + const SizePattern + const TimeOrNonePattern + const TimePattern + func FormatSeconds(millis int64) string + func ParseAgent(text string) (address string, port int64, ok bool) + func ParsePercent(text string) (percent int, ok bool) + func ParseSize(text string) (bytes int64, ok bool) + func ParseTime(text string) (millis int64, ok bool) + func Reason(err error) string + func SortProblems(ps []Problem) + type Auth struct + Accept []Header + Allow bool + Enabled bool + OnlyWithHeader string + Path string + Send []Header + Service Text + Timeout Time + type Count struct + Number int64 + Pos Pos + type Envoy struct + ConnectBridge bool + Heap *Size + Namespace string + Tracing *Tracing + type Gateway struct + Admin *Port + Auth *Auth + Envoy Envoy + Limits Limits + Listen Port + Log *Log + Origins Text + RemoveFromClients []Header + Routes []Route + RoutesPos Pos + Services []Service + ServicesPos Pos + Timeouts Timeouts + func (g *Gateway) RPCEntry() *Route + func (g *Gateway) Service(name string) *Service + type Header struct + Name string + Pos Pos + Prefix bool + type Limits struct + Connections *Count + RequestHeaders *RequestHeaders + type Log struct + Pos Pos + SamplePercent int + StatusFrom int64 + type MatchKind string + const Path + const Pattern + const Prefix + type Port struct + Number int64 + Pos Pos + type Pos struct + Column int + File string + Line int + Path string + func (p Pos) Where() string + type Problem struct + Message string + Pos Pos + func CannotRead(path string, err error) Problem + func FileProblem(path, message string) []Problem + func (p Problem) String() string + type Problems struct + func (p *Problems) Add(pos Pos, format string, args ...any) + func (p *Problems) Sorted() []Problem + type Protocol string + const GRPC + const HTTP + type RPC struct + Retries int64 + Targets []RPCTarget + ToPos Pos + type RPCTarget struct + Pattern string + Pos Pos + RouteName string + Service Text + type RequestHeaders struct + Count Count + Size Size + type Route struct + AuthOff *Text + Match MatchKind + Method string + Name Text + Pos Pos + RPC *RPC + Retries int64 + Rewrite *Text + To Text + Value Text + type Sample struct + Default SampleRule + Rules []SampleRule + type SampleRule struct + First int64 + Host string + Method string + Path string + RatePercent int + type Service struct + Address Text + HostHeader string + Name string + Ports []ServicePort + Pos Pos + func (s *Service) Cluster(p Protocol) string + func (s *Service) Port(p Protocol) (ServicePort, bool) + type ServicePort struct + Number int64 + Pos Pos + Protocol Protocol + type Size struct + Bytes int64 + Pos Pos + type Tag struct + Default string + Env string + Header string + Name string + type Text struct + Pos Pos + Value string + type Time struct + Millis int64 + Pos Pos + type Timeouts struct + Idle *Time + Request *Time + UpstreamIdle *Time + type Tracing struct + PathInURL bool + Tags []Tag + XRay XRay + type XRay struct + Address string + Port int64 + Sample *Sample + Segment string Other modules containing this package github.com/kitecorp/proxyfile