operations

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllOpRefsByRef

func AllOpRefsByRef(specDoc Provider, operationIDs []string) map[string]OpRef

AllOpRefsByRef returns an index of sortable operations.

func GatherOperations

func GatherOperations(specDoc Provider, operationIDs []string) map[string]OpRef

GatherOperations builds a map of sorted operations from a spec.

func OpRefsByRef

func OpRefsByRef(oprefs map[string]OpRef) map[string]OpRef

OpRefsByRef indexes a map of sortable operations.

Types

type OpRef

type OpRef struct {
	Method string
	Path   string
	Key    string
	ID     string
	Op     *spec.Operation
	Ref    spec.Ref
}

OpRef is an indexable, sortable operation.

type OpRefs

type OpRefs []OpRef

OpRefs is a sortable collection of operations.

func (OpRefs) Len

func (o OpRefs) Len() int

func (OpRefs) Less

func (o OpRefs) Less(i, j int) bool

func (OpRefs) Swap

func (o OpRefs) Swap(i, j int)

type Provider

type Provider interface {
	Operations() map[string]map[string]*spec.Operation
}

Provider knows how to collect operations from a spec.

Jump to

Keyboard shortcuts

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