Documentation ¶
Index ¶
- func GetRestClient() *resty.Client
- func Print(restCallKey int, status, header, resp bool) func(ctx floc.Context, ctrl floc.Control) error
- func ProcessHandler(jobs floc.Job) func(ctx *gin.Context)
- func RestCall(restCallKey int, r *RestRequestData) func(ctx floc.Context, ctrl floc.Control) error
- type DataObject
- func (this DataObject) Get(key string) interface{}
- func (this DataObject) GetArray(key string) (newArray *List, err error)
- func (data *DataObject) GetBool(key string) bool
- func (data *DataObject) GetFloat64(key string) float64
- func (data *DataObject) GetInt(key string) int
- func (this DataObject) GetObject(key string) (value DataObject, err error)
- func (data *DataObject) GetObjectByPath(path string) *DataObject
- func (data *DataObject) GetString(key string) string
- func (this DataObject) Indent() string
- func (this DataObject) Put(key string, value interface{}) DataObject
- func (data *DataObject) PutObjectByPath(path string) *DataObject
- func (this DataObject) Remove(key string) DataObject
- func (this DataObject) String() string
- type LimeCache
- type LimeObject
- type LimeServer
- func (lime *LimeServer) ANY(sec PathSecurity, relativePath string, handlers ...gin.HandlerFunc)
- func (lime *LimeServer) AddCookie(secret string)
- func (lime *LimeServer) DELETE(sec PathSecurity, relativePath string, handlers ...gin.HandlerFunc)
- func (lime *LimeServer) GET(sec PathSecurity, relativePath string, handlers ...gin.HandlerFunc)
- func (lime *LimeServer) HEAD(sec PathSecurity, relativePath string, handlers ...gin.HandlerFunc)
- func (lime *LimeServer) InitSecurity(allowedHosts []string, sTSSeconds int64, allowOrigins []string)
- func (lime *LimeServer) LoadStaticFiles(path string)
- func (lime *LimeServer) PATCH(sec PathSecurity, relativePath string, handlers ...gin.HandlerFunc)
- func (lime *LimeServer) POST(sec PathSecurity, relativePath string, handlers ...gin.HandlerFunc)
- func (lime *LimeServer) PUT(sec PathSecurity, relativePath string, handlers ...gin.HandlerFunc)
- func (lime *LimeServer) SetSecurity(waf, usecors, proxy, recovery bool)
- func (lime *LimeServer) Start()
- type List
- type Mapping
- type MappingElement
- type MappingTable
- type PathSecurity
- type RestRequestData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRestClient ¶
func GetRestClient() *resty.Client
func ProcessHandler ¶
func RestCall ¶
func RestCall(restCallKey int, r *RestRequestData) func(ctx floc.Context, ctrl floc.Control) error
Types ¶
type DataObject ¶
type DataObject map[string]interface{}
func MarshalToDataObject ¶
func MarshalToDataObject(b []byte) *DataObject
func NewDataObject ¶
func NewDataObject() DataObject
func (DataObject) Get ¶
func (this DataObject) Get(key string) interface{}
func (DataObject) GetArray ¶
func (this DataObject) GetArray(key string) (newArray *List, err error)
func (*DataObject) GetBool ¶
func (data *DataObject) GetBool(key string) bool
func (*DataObject) GetFloat64 ¶
func (data *DataObject) GetFloat64(key string) float64
func (*DataObject) GetInt ¶
func (data *DataObject) GetInt(key string) int
func (DataObject) GetObject ¶
func (this DataObject) GetObject(key string) (value DataObject, err error)
func (*DataObject) GetObjectByPath ¶
func (data *DataObject) GetObjectByPath(path string) *DataObject
func (*DataObject) GetString ¶
func (data *DataObject) GetString(key string) string
func (DataObject) Indent ¶
func (this DataObject) Indent() string
func (DataObject) Put ¶
func (this DataObject) Put(key string, value interface{}) DataObject
func (*DataObject) PutObjectByPath ¶
func (data *DataObject) PutObjectByPath(path string) *DataObject
func (DataObject) Remove ¶
func (this DataObject) Remove(key string) DataObject
func (DataObject) String ¶
func (this DataObject) String() string
type LimeCache ¶
func (*LimeCache) AttachLogger ¶
type LimeObject ¶
type LimeObject map[string]interface{}
type LimeServer ¶
type LimeServer struct { Server *http.Server Router *gin.Engine Security struct { AllowedHosts []string STSSeconds int64 AllowOrigins []string } }
func (*LimeServer) ANY ¶
func (lime *LimeServer) ANY(sec PathSecurity, relativePath string, handlers ...gin.HandlerFunc)
func (*LimeServer) AddCookie ¶
func (lime *LimeServer) AddCookie(secret string)
func (*LimeServer) DELETE ¶
func (lime *LimeServer) DELETE(sec PathSecurity, relativePath string, handlers ...gin.HandlerFunc)
func (*LimeServer) GET ¶
func (lime *LimeServer) GET(sec PathSecurity, relativePath string, handlers ...gin.HandlerFunc)
func (*LimeServer) HEAD ¶
func (lime *LimeServer) HEAD(sec PathSecurity, relativePath string, handlers ...gin.HandlerFunc)
func (*LimeServer) InitSecurity ¶
func (lime *LimeServer) InitSecurity(allowedHosts []string, sTSSeconds int64, allowOrigins []string)
func (*LimeServer) LoadStaticFiles ¶
func (lime *LimeServer) LoadStaticFiles(path string)
func (*LimeServer) PATCH ¶
func (lime *LimeServer) PATCH(sec PathSecurity, relativePath string, handlers ...gin.HandlerFunc)
func (*LimeServer) POST ¶
func (lime *LimeServer) POST(sec PathSecurity, relativePath string, handlers ...gin.HandlerFunc)
func (*LimeServer) PUT ¶
func (lime *LimeServer) PUT(sec PathSecurity, relativePath string, handlers ...gin.HandlerFunc)
func (*LimeServer) SetSecurity ¶
func (lime *LimeServer) SetSecurity(waf, usecors, proxy, recovery bool)
func (*LimeServer) Start ¶
func (lime *LimeServer) Start()
type Mapping ¶
type Mapping struct { FromElement MappingElement ToElement MappingElement OptConverter func(from MappingElement) MappingElement }
type MappingElement ¶
type MappingTable ¶
type MappingTable struct {
Mappings []Mapping
}
func (MappingTable) DoMapping ¶
func (m MappingTable) DoMapping(restCallKey int) func(ctx floc.Context, ctrl floc.Control) error
type PathSecurity ¶
Click to show internal directories.
Click to hide internal directories.