fc

package
v0.0.0-...-648a805 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoFunc

func DoFunc(c *Context) (*resty.Response, error)

func RouteRegister

func RouteRegister(router *gin.RouterGroup, dbc *mongo.Client)

Types

type Context

type Context struct {
	// contains filtered or unexported fields
}

func NewContext

func NewContext(name, service string) *Context

func (*Context) Method

func (c *Context) Method() string

func (*Context) URL

func (c *Context) URL() string

func (*Context) WithReq

func (c *Context) WithReq(req *http.Request) *Context

type Func

type Func struct {
}

func (*Func) HTTPTrigger

func (s *Func) HTTPTrigger(c *gin.Context)

type FuncSpec

type FuncSpec struct {
	Name    string
	Service string

	Upstream string
}

func NewFunc

func NewFunc(name, service string) *FuncSpec

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL