storage

package
v3.23.8 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extender

type Extender struct {
	// contains filtered or unexported fields
}

func NewStub

func NewStub(
	storage *stuber.Budgerigar,
	converter *yaml2json.Convertor,
	watcher *watcher.StubWatcher,
	validate Validate,
) *Extender

func (*Extender) ReadFromPathSync added in v3.8.0

func (s *Extender) ReadFromPathSync(ctx context.Context, pathDir string)

ReadFromPathSync loads stubs from the given path synchronously.

func (*Extender) SignalLoaded added in v3.8.0

func (s *Extender) SignalLoaded()

SignalLoaded closes the channel to signal that stubs are loaded (used when no stub path is provided).

func (*Extender) Wait

func (s *Extender) Wait(ctx context.Context)

Wait waits for stubs to be loaded.

type Validate added in v3.22.0

type Validate func(*stuber.Stub) error

Jump to

Keyboard shortcuts

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