Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallRequest ¶
type Method ¶
type Method struct {
// contains filtered or unexported fields
}
func (*Method) Create ¶
Create godoc @Summary Create a new method @Description Create a new method @Tags method @Accept json @Produce json @Param payload body model.Method true "payload" @Success 200 {object} model.Method @Failure 400 {object} itserrors.Error @Failure 404 {object} itserrors.Error @Failure 500 {object} itserrors.Error @Router /method [post]
func (*Method) Get ¶
Get godoc @Summary Get method @Description Get method @Tags method @Accept json @Produce json @Param method path string true "Method" @Success 200 {object} model.Method @Failure 400 {object} itserrors.Error @Failure 404 {object} itserrors.Error @Failure 500 {object} itserrors.Error @Router /method/{method} [get]
type Orquestrator ¶
type Orquestrator struct {
// contains filtered or unexported fields
}
func NewOrquestrator ¶
func NewOrquestrator(conf *config.Config, log *logger.Logger, service service.Orquestrate) *Orquestrator
func (*Orquestrator) Request ¶
func (o *Orquestrator) Request(pctx echo.Context) (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 @Tags orquestrator @Accept json @Produce json @Param payload body handler.CallRequest true "Payload" @Success 200 {object} string @Failure 400 {object} itserrors.Error @Failure 404 {object} itserrors.Error @Failure 500 {object} itserrors.Error @Router /call [post]
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) Create ¶
Create godoc @Summary Create a new provider @Description Create a new provider @Tags provider @Accept json @Produce json @Param provider body model.Provider true "Provider" @Success 200 {object} model.Provider @Failure 400 {object} itserrors.Error @Failure 404 {object} itserrors.Error @Failure 500 {object} itserrors.Error @Router /provider [post]
func (*Provider) Delete ¶
Delete godoc @Summary Delete a provider @Description Delete a provider @Tags provider @Accept json @Produce json @Param slug path string true "Provider slug" @Success 200 {object} model.Provider @Failure 400 {object} itserrors.Error @Failure 404 {object} itserrors.Error @Failure 500 {object} itserrors.Error @Router /provider/{slug} [delete]
func (*Provider) Get ¶
Get godoc @Summary Get a provider @Description Get a provider @Tags provider @Accept json @Produce json @Param slug path string true "Provider slug" @Success 200 {object} model.Provider @Failure 400 {object} itserrors.Error @Failure 404 {object} itserrors.Error @Failure 500 {object} itserrors.Error @Router /provider/{slug} [get]
func (*Provider) List ¶
List godoc @Summary List providers @Description List providers @Tags provider @Accept json @Produce json @Param method path string true "Provider method" @Success 200 {object} model.Provider @Failure 400 {object} itserrors.Error @Failure 404 {object} itserrors.Error @Failure 500 {object} itserrors.Error @Router /provider/list/{method} [get]
func (*Provider) Update ¶
Update godoc @Summary Update a provider @Description Update a provider @Tags provider @Accept json @Produce json @Param slug path string true "Provider slug" @Param provider body model.Provider true "Provider" @Param X-Signature header string true "Signature" @Success 200 {object} Provider @Failure 400 {object} itserrors.Error @Failure 404 {object} itserrors.Error @Failure 500 {object} itserrors.Error @Router /provider/{slug} [patch]