Documentation
¶
Overview ¶
Copyright © 2020 NAME HERE icjp2600@gmail.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright © 2020 NAME HERE icjp2600@gmail.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func ErrList() map[ErrorSlug]ErrorInfo
- func ErrText(slug ErrorSlug) string
- func Execute()
- func Handle(h http.Handler) http.Handler
- func InterceptorOptionHandler(p interface{}) error
- func RunCmd(cmd *cobra.Command, args []string)
- type ErrorInfo
- type ErrorSlug
- type ErrorText
- type Handler
- type RequestTranslator
- func (r *RequestTranslator) Execute(ctx floc.Context) (*resty.Response, error)
- func (r *RequestTranslator) FindVarByJPath(js string, jPath string) (interface{}, error)
- func (r *RequestTranslator) FindVariables(ctx floc.Context, s string) string
- func (r *RequestTranslator) FlocExecute() func(ctx floc.Context, ctrl floc.Control) error
- type Server
Constants ¶
const RequestIDKey ctxKeyRequestID = 0
const VariablePrefix = "$"
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func InterceptorOptionHandler ¶
func InterceptorOptionHandler(p interface{}) error
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CustomHTTPError ¶
func (*Handler) Execute ¶
func (h *Handler) Execute(c context.Context, request *pb.ExecuteRequest) (*pb.ExecuteResponse, error)
type RequestTranslator ¶
type RequestTranslator struct { Job *pb.Job Ctx context.Context // contains filtered or unexported fields }
func NewRequestTranslator ¶
func NewRequestTranslator(job *pb.Job, logger zerolog.Logger) *RequestTranslator
func (*RequestTranslator) Execute ¶
func (r *RequestTranslator) Execute(ctx floc.Context) (*resty.Response, error)
func (*RequestTranslator) FindVarByJPath ¶
func (r *RequestTranslator) FindVarByJPath(js string, jPath string) (interface{}, error)
func (*RequestTranslator) FindVariables ¶
func (r *RequestTranslator) FindVariables(ctx floc.Context, s string) string
func (*RequestTranslator) FlocExecute ¶
func (r *RequestTranslator) FlocExecute() func(ctx floc.Context, ctrl floc.Control) error