Documentation ¶
Index ¶
- Constants
- type Cron
- type CronSpec
- type CronStatus
- type Function
- func (f *Function) Category() supervisor.ObjectCategory
- func (f *Function) Close()
- func (f *Function) DefaultSpec() interface{}
- func (f *Function) Handle(ctx context.HTTPContext)
- func (f *Function) Inherit(superSpec *supervisor.Spec, previousGeneration supervisor.Object, ...)
- func (f *Function) Init(superSpec *supervisor.Spec, super *supervisor.Supervisor)
- func (f *Function) Kind() string
- func (f *Function) Status() *supervisor.Status
- type RequestAdapotorSpec
- type Spec
- type Status
Constants ¶
View Source
const ( // Category is the category of Function. Category = supervisor.CategoryPipeline // Kind is the kind of Function. Kind = "Function" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cron ¶
type Cron struct {
// contains filtered or unexported fields
}
Cron is the cron job for http probe.
type CronSpec ¶
type CronSpec struct { WithSecond bool `yaml:"withSecond"` Spec string `yaml:"spec" jsonschema:"required"` }
CronSpec is the spec of Cron.
type CronStatus ¶
CronStatus is the status of Cron.
type Function ¶
type Function struct {
// contains filtered or unexported fields
}
Function is Object Function.
func (*Function) Category ¶
func (f *Function) Category() supervisor.ObjectCategory
Category returns the category of Function.
func (*Function) DefaultSpec ¶
func (f *Function) DefaultSpec() interface{}
DefaultSpec returns the default spec of Function.
func (*Function) Handle ¶
func (f *Function) Handle(ctx context.HTTPContext)
Handle handles all HTTP incoming traffic.
func (*Function) Inherit ¶
func (f *Function) Inherit(superSpec *supervisor.Spec, previousGeneration supervisor.Object, super *supervisor.Supervisor)
Inherit inherits previous generation of Function.
func (*Function) Init ¶
func (f *Function) Init(superSpec *supervisor.Spec, super *supervisor.Supervisor)
Init initializes Function.
func (*Function) Status ¶
func (f *Function) Status() *supervisor.Status
Status returns Status genreated by Runtime.
type RequestAdapotorSpec ¶
type RequestAdapotorSpec struct { Method string `yaml:"method" jsonschema:"omitempty,format=httpmethod"` Path *pathadaptor.Spec `yaml:"path,omitempty" jsonschema:"omitempty"` Header *httpheader.AdaptSpec `yaml:"header,omitempty" jsonschema:"omitempty"` }
RequestAdapotorSpec describes the RequestAdaptor.
type Spec ¶
type Spec struct { URL string `yaml:"url" jsonschema:"required"` Cron *CronSpec `yaml:"cron" jsonschema:"omitempty"` RequestAdaptor *RequestAdapotorSpec `yaml:"requestAdaptor" jsonschema:"omitempty"` }
Spec describes the Function.
Click to show internal directories.
Click to hide internal directories.