Documentation ¶
Overview ¶
The package pipeline defines the api. Each of the routes does a very similar pattern of decode, transform and send to domain service.
Index ¶
- Variables
- func Register(service *Service)
- type CreatePipelineRequest
- type CreatePipelineResponse
- type DeletePipelineResponse
- type GetPipelineResponse
- type Job
- type Pipeline
- type Service
- func (s *Service) CreatePipeline(ctx context.Context) (any, error)
- func (s *Service) DeletePipeline(ctx context.Context) (any, error)
- func (s *Service) GetPipeline(ctx context.Context) (any, error)
- func (s *Service) TriggerPipeline(ctx context.Context) (any, error)
- func (s *Service) UpdatePipeline(ctx context.Context) (any, error)
- type TriggerPipelineResponse
- type UpdatePipelineRequest
- type UpdatePipelineResponse
Constants ¶
This section is empty.
Variables ¶
var Module = fx.Options( fx.Invoke(Register), fx.Provide(NewService), )
Module for fx.
Functions ¶
Types ¶
type CreatePipelineRequest ¶
type CreatePipelineRequest struct {
Pipeline *Pipeline `json:"pipeline,omitempty"`
}
CreatePipelineRequest with a definition.
type CreatePipelineResponse ¶
type CreatePipelineResponse struct { Meta map[string]string `json:"meta,omitempty"` Pipeline *Pipeline `json:"pipeline,omitempty"` }
CreatePipelineResponse a map of meta and the new pipeline.
type DeletePipelineResponse ¶
type DeletePipelineResponse struct { Meta map[string]string `json:"meta,omitempty"` Pipeline *Pipeline `json:"pipeline,omitempty"` }
DeletePipelineResponse a map of meta and the updated pipeline.
type GetPipelineResponse ¶
type GetPipelineResponse struct { Meta map[string]string `json:"meta,omitempty"` Pipeline *Pipeline `json:"pipeline,omitempty"` }
GetPipelineResponse a map of meta and the pipeline.
type Pipeline ¶
type Pipeline struct { Name string `json:"name,omitempty"` Jobs []*Job `json:"jobs,omitempty"` ID uint64 `json:"id,omitempty"` }
Pipeline to be executed.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service for pipeline.
This type is the main type that builds all of the api.
func (*Service) CreatePipeline ¶ added in v0.14.0
CreatePipeline for the api.
func (*Service) DeletePipeline ¶ added in v0.14.0
DeletePipeline for the api.
func (*Service) GetPipeline ¶ added in v0.14.0
GetPipeline for the api.
func (*Service) TriggerPipeline ¶ added in v0.14.0
TriggerPipeline for the api.
type TriggerPipelineResponse ¶ added in v0.11.0
type TriggerPipelineResponse struct { Meta map[string]string `json:"meta,omitempty"` Pipeline *Pipeline `json:"pipeline,omitempty"` }
TriggerPipelineResponse a map of meta and the pipeline with the output in steps.
type UpdatePipelineRequest ¶
type UpdatePipelineRequest struct {
Pipeline *Pipeline `json:"pipeline,omitempty"`
}
UpdatePipelineRequest with a definition.
type UpdatePipelineResponse ¶
type UpdatePipelineResponse struct { Meta map[string]string `json:"meta,omitempty"` Pipeline *Pipeline `json:"pipeline,omitempty"` }
UpdatePipelineResponse a map of meta and the updated pipeline.