Versions in this module Expand all Collapse all v0 v0.0.4 Jul 25, 2026 v0.0.3 Jul 25, 2026 v0.0.2 Jul 25, 2026 v0.0.1 Jul 23, 2026 Changes in this version + type CallType string + const CallServerStreaming + const CallUnary + type CallsFacet struct + Max *int + Min *int + type CloseSpec struct + Code int + Reason string + type Document struct + Info *Info + OpenMock string + Servers []*Server + func Parse(data []byte) (*Document, error) + type Engine struct + func New(doc *Document) *Engine + func (e *Engine) Reset() + func (e *Engine) Resolve(req *Request) map[string]any + func (e *Engine) Routes(req *Request) bool + type FacetValue struct + Kind FacetValueKind + Pattern *regexp.Regexp + PatternSrc string + Str string + type FacetValueKind int + const FacetExistsFalse + const FacetExistsTrue + const FacetPattern + const FacetString + type HeaderTemplate struct + IsList bool + Values []string + type Info struct + Description string + Title string + Version string + type Operation struct + Method string + OperationName string + OperationType string + Path string + RPC string + Scenarios []*Scenario + Service string + Summary string + Type CallType + type PayloadFacet struct + Map map[string]FacetValue + Scalar *string + type QueryElement struct + IsPattern bool + Pattern *regexp.Regexp + PatternSrc string + Str string + type QueryFacetValue struct + Elements []QueryElement + Exists *bool + type Request struct + Body any + Connection string + Headers map[string]string + Message any + Metadata map[string]string + Method string + OperationName string + OperationType string + Params map[string]string + Path string + Protocol string + Query map[string][]string + RPC string + Server string + Service string + Variables any + func (r *Request) UnmarshalJSON(data []byte) error + type Response struct + Body any + Close *CloseSpec + Data any + Delay int + Error string + Errors []any + Extensions any + GRPCStatus string + Headers map[string]HeaderTemplate + Message any + Messages []any + Metadata map[string]string + Status int + Trailers map[string]string + WSMessages []any + type Scenario struct + Name string + Response *Response + Summary string + When *When + type Server struct + DescriptorSet string + Name string + Operations []*Operation + Port *int + Schema string + Type ServerType + type ServerType string + const ServerGRPC + const ServerGraphQL + const ServerHTTP + const ServerWebSocket + type When struct + Body *PayloadFacet + Calls *CallsFacet + Headers map[string]FacetValue + Message *PayloadFacet + Metadata map[string]FacetValue + Params map[string]FacetValue + Query map[string]QueryFacetValue + Variables map[string]FacetValue