Documentation ¶
Index ¶
Constants ¶
View Source
const (
REST_CORS_PREFIX = "REST_TRIGGER"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RestFactory ¶
type RestFactory struct {
// contains filtered or unexported fields
}
RestFactory REST Trigger factory
type RestTrigger ¶
type RestTrigger struct {
// contains filtered or unexported fields
}
RestTrigger REST trigger struct
func (*RestTrigger) Init ¶
func (t *RestTrigger) Init(runner action.Runner)
func (*RestTrigger) Initialize ¶ added in v0.5.2
func (t *RestTrigger) Initialize(ctx trigger.InitContext) error
func (*RestTrigger) Metadata ¶
func (t *RestTrigger) Metadata() *trigger.Metadata
Metadata implements trigger.Trigger.Metadata
func (*RestTrigger) Start ¶
func (t *RestTrigger) Start() error
type Server ¶
Server the server structure
func NewServer ¶
NewServer create a new server instance param server - is a instance of http.Server, can be nil and a default one will be created
func (*Server) IsStarted ¶
IsStarted checks if the server is started will return true even if the server is stopped but there are still some requests to finish
Click to show internal directories.
Click to hide internal directories.