Documentation ¶
Index ¶
- type APIService
- func (api *APIService) DocsRegisterAPI(router *gin.RouterGroup)
- func (api *APIService) PipelineRegisterAPI(router *gin.RouterGroup)
- func (api *APIService) ProcessRegisterAPI(router *gin.RouterGroup)
- func (api *APIService) Start() error
- func (api *APIService) Stop() error
- func (api *APIService) TriggerRegisterAPI(router *gin.RouterGroup)
- func (api *APIService) VariableRegisterAPI(router *gin.RouterGroup)
- func (api *APIService) WebhookRegisterAPI(router *gin.RouterGroup)
- type APIServiceOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIService ¶
type APIService struct { EsService *es.ESService HTTPPort string `json:"http_port,omitempty"` HTTPSHost string `json:"https_host,omitempty"` HTTPSPort string `json:"https_port,omitempty"` // Status tracking for the API service. Status string `json:"status"` StartedAt *time.Time `json:"started_at,omitempty"` StoppedAt *time.Time `json:"stopped_at,omitempty"` // contains filtered or unexported fields }
APIService represents the API service.
func NewAPIService ¶
func NewAPIService(ctx context.Context, es *es.ESService, opts ...APIServiceOption) (*APIService, error)
NewAPIService creates a new APIService.
func (*APIService) DocsRegisterAPI ¶
func (api *APIService) DocsRegisterAPI(router *gin.RouterGroup)
func (*APIService) PipelineRegisterAPI ¶
func (api *APIService) PipelineRegisterAPI(router *gin.RouterGroup)
func (*APIService) ProcessRegisterAPI ¶
func (api *APIService) ProcessRegisterAPI(router *gin.RouterGroup)
func (*APIService) Start ¶
func (api *APIService) Start() error
Start starts services managed by the Manager.
func (*APIService) Stop ¶
func (api *APIService) Stop() error
Stop stops services managed by the Manager.
func (*APIService) TriggerRegisterAPI ¶
func (api *APIService) TriggerRegisterAPI(router *gin.RouterGroup)
func (*APIService) VariableRegisterAPI ¶
func (api *APIService) VariableRegisterAPI(router *gin.RouterGroup)
func (*APIService) WebhookRegisterAPI ¶
func (api *APIService) WebhookRegisterAPI(router *gin.RouterGroup)
type APIServiceOption ¶
type APIServiceOption func(*APIService) error
APIServiceOption defines a type of function to configures the APIService.
func WithHTTPSAddress ¶
func WithHTTPSAddress(addr string) APIServiceOption
WithHTTPSAddress sets the host and port of the API HTTPS service from the given address string in host:port format.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.