migrationflag

package
v0.0.0-...-b9bb202 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WithTracer = base.WithTracer

WithTracer returns an Option that configures the Client to use the supplied tracer.

Functions

This section is empty.

Types

type Facade

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

Facade lets a client watch and query a model's migration phase.

func NewFacade

func NewFacade(apiCaller base.APICaller, newWatcher NewWatcherFunc, options ...Option) *Facade

NewFacade returns a Facade backed by the supplied api caller.

func (*Facade) Phase

func (facade *Facade) Phase(ctx context.Context, uuid string) (migration.Phase, error)

Phase returns the current migration.Phase for the supplied model UUID.

func (*Facade) Watch

func (facade *Facade) Watch(ctx context.Context, uuid string) (watcher.NotifyWatcher, error)

Watch returns a NotifyWatcher that will inform of potential changes to the result of Phase for the supplied model UUID.

type NewWatcherFunc

NewWatcherFunc exists to let us unit test Facade without patching.

type Option

type Option = base.Option

Option is a function that can be used to configure a Client.

Jump to

Keyboard shortcuts

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