Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credential ¶ added in v0.3.3
func (*Credential) Equal ¶ added in v0.3.3
func (cr *Credential) Equal(other *Credential) bool
type JsonDuration ¶
func (*JsonDuration) MarshalJSON ¶
func (j *JsonDuration) MarshalJSON() ([]byte, error)
func (*JsonDuration) UnmarshalJSON ¶
func (j *JsonDuration) UnmarshalJSON(bytes []byte) error
type JsonStringSet ¶
func (*JsonStringSet) Del ¶
func (s *JsonStringSet) Del(key string)
func (*JsonStringSet) Dup ¶ added in v0.3.3
func (s *JsonStringSet) Dup() JsonStringSet
func (*JsonStringSet) Has ¶
func (s *JsonStringSet) Has(key string) bool
func (*JsonStringSet) MarshalJSON ¶
func (s *JsonStringSet) MarshalJSON() ([]byte, error)
func (*JsonStringSet) Set ¶
func (s *JsonStringSet) Set(key string)
func (*JsonStringSet) UnmarshalJSON ¶
func (s *JsonStringSet) UnmarshalJSON(bytes []byte) error
type Manifest ¶
type Manifest struct {
Name string `json:"name,omitempty"` // information field
Description string `json:"description,omitempty"` // information field
Run []string `json:"run"` // command to run
OutputHeaders map[string]string `json:"output_headers,omitempty"` // output headers
InputHeaders map[string]string `json:"input_headers,omitempty"` // headers to map from request to environment
Query map[string]string `json:"query,omitempty"` // map query or form parameters to environment
Environment map[string]string `json:"environment,omitempty"` // custom environment
Method string `json:"method,omitempty"` // restrict invoke only to the HTTP method
MethodEnv string `json:"method_env,omitempty"` // map method name to environment
PathEnv string `json:"path_env,omitempty"` // map requested path to environment
TimeLimit JsonDuration `json:"time_limit,omitempty"` // time limit to run (zero is infinity)
MaximumPayload int64 `json:"maximum_payload,omitempty"` // limit incoming payload (zero is unlimited)
AllowedIP JsonStringSet `json:"allowed_ip,omitempty"` // limit incoming connections from list of IP
AllowedOrigin JsonStringSet `json:"allowed_origin,omitempty"` // limit incoming connections by origin header
Public bool `json:"public"` // if public, tokens are ignores
Tokens map[string]string `json:"tokens,omitempty"` // limit request by value in Authorization header (token => title)
//Aliases JsonStringSet `json:"aliases,omitempty"` // aliases to the current app
Cron []Schedule `json:"cron,omitempty"` // crontab expression and action name to invoke
Static string `json:"static,omitempty"` // relative path to static folder
}
type Request ¶ added in v0.3.3
type Request struct {
Method string `json:"method" msg:"method"`
URL string `json:"url" msg:"url"`
Path string `json:"path" msg:"path"`
RemoteAddress string `json:"remote_address" msg:"remote_address"`
Form map[string]string `json:"form" msg:"form"`
Headers map[string]string `json:"headers" msg:"headers"`
Body io.Reader `json:"-" msg:"-"`
}
func (*Request) MarshalMsg ¶ added in v0.3.3
MarshalMsg implements msgp.Marshaler
type Schedule ¶ added in v0.2.5
type Schedule struct {
Cron string `json:"cron"` // crontab expression
Action string `json:"action"` // action to invoke
TimeLimit JsonDuration `json:"time_limit"` // time limit to execute
}
Click to show internal directories.
Click to hide internal directories.