Versions in this module Expand all Collapse all v1 v1.3.0 Nov 11, 2026 Changes in this version + func Reason(err error) string v1.2.0 Nov 10, 2026 Changes in this version + const AgentPattern + func ParseAgent(text string) (address string, port int64, ok bool) type Gateway + Tracing *Tracing + type Sample struct + Default SampleRule + Rules []SampleRule + type SampleRule struct + First int64 + Host string + Method string + Path string + RatePercent int + type Tag struct + Default string + Env string + Header string + Name string + type Tracing struct + PathInURL bool + Tags []Tag + XRay XRay + type XRay struct + Address string + Port int64 + Sample *Sample + Segment string v1.1.0 Nov 10, 2026 Changes in this version type Pos + Path string + func (p Pos) Where() string type Problem + func CannotRead(path string, err error) Problem v1.0.0 Nov 10, 2026 Changes in this version + const PercentPattern + const SizePattern + const TimeOrNonePattern + const TimePattern + func FormatSeconds(millis int64) string + 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 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 Gateway struct + Admin *Port + Auth *Auth + Limits Limits + Listen Port + Log *Log + Namespace string + 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 + Heap *Size + 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 + type Problem struct + Message string + Pos Pos + 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 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 Text struct + Pos Pos + Value string + type Time struct + Millis int64 + Pos Pos + type Timeouts struct + Idle *Time + Request *Time + UpstreamIdle *Time Other modules containing this package github.com/kitecorp/proxyfile/v2