Documentation ¶
Index ¶
- func Services() fx.Option
- type Method
- type MethodI
- type Orquestrate
- type Orquestrator
- type Proveder
- func (p *Proveder) Create(ctx context.Context, provider model.Provider) (result model.Provider, err error)
- func (p *Proveder) Delete(ctx context.Context, signature, slug string) (err error)
- func (p *Proveder) Get(ctx context.Context, slug string) (provider model.Provider, err error)
- func (p *Proveder) List(ctx context.Context, method string) (list []model.Provider, err error)
- func (p *Proveder) Update(ctx context.Context, signature, slug string, update model.Provider) (provider model.Provider, err error)
- type ProviderI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Method ¶
type Method struct {
// contains filtered or unexported fields
}
type MethodI ¶
type Orquestrate ¶
type Orquestrator ¶
type Orquestrator struct {
// contains filtered or unexported fields
}
func (*Orquestrator) Request ¶
func (o *Orquestrator) Request(ctx context.Context, userRef string, methodName string, params []any) (result model.Envelope, err error)
Request godoc @Summary Request a method @Description Request a method from a provider or a group of providers and return the first response received
type Proveder ¶
type Proveder struct {
// contains filtered or unexported fields
}
func (*Proveder) Create ¶
func (p *Proveder) Create(ctx context.Context, provider model.Provider) (result model.Provider, err error)
Create godoc @Summary Create a new provider @Description Create a new provider
func (*Proveder) Delete ¶
Delete godoc @Summary Delete a provider @Description Delete a provider by slug name
func (*Proveder) Get ¶
Get godoc @Summary Get a provider @Description Get a provider by slug name and return it
type ProviderI ¶
type ProviderI interface { Create(ctx context.Context, provider model.Provider) (model.Provider, error) Get(ctx context.Context, slug string) (model.Provider, error) Update(ctx context.Context, signature, slug string, provider model.Provider) (model.Provider, error) Delete(ctx context.Context, signature, slug string) error List(ctx context.Context, method string) ([]model.Provider, error) }
Click to show internal directories.
Click to hide internal directories.