Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KeyNotFoundError ¶
KeyNotFoundError is returned when a key is not found
func (KeyNotFoundError) Error ¶
func (e KeyNotFoundError) Error() string
type Repository ¶
type Repository interface { Keys() []SpecMetadata Spec(key string) (Spec, error) }
Repository abstracts a documentation provider holding keys and specs
type Spec ¶
Spec is the openApi spec abstraction
func NewCachedRemoteSpec ¶
NewCachedRemoteSpec is a convenience constructor for a cached remote spec
func NewRemoteSpec ¶
NewRemoteSpec creates a spec that is proxied from a remote url
type SpecMetadata ¶
type SpecMetadata struct {
Key, Name string
}
SpecMetadata contains metadata regarding the spec
type SpecRepoStore ¶
type SpecRepoStore interface { SpecStore Repository }
SpecRepoStore combined
func NewCachedRepository ¶
func NewCachedRepository() SpecRepoStore
NewCachedRepository creats a new CachedRepo
Click to show internal directories.
Click to hide internal directories.