Documentation ¶
Index ¶
- Variables
- func CreateUrlFromString(raw string) (*ypb.YakURL, error)
- func DeepFirstGraph(graph *ssaapi.ValueGraph, nodeID int) [][]string
- func GetQueryParam(params []*ypb.KVPair, key string) string
- func LoadGetResource(u string) (*ypb.RequestYakURLResponse, error)
- func Value2Response(programName string, value *ssaapi.Value, msg string, url *ypb.YakURL) *ypb.YakURLResource
- func Variable2Response(result *ssaapi.SyntaxFlowResult, url *ypb.YakURL) []*ypb.YakURLResource
- type Action
- type ActionService
- type BaseAction
- func (b *BaseAction) Delete(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- func (b *BaseAction) Do(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- func (b *BaseAction) Get(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- func (b *BaseAction) Head(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- func (b *BaseAction) Post(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- func (b *BaseAction) Put(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- type BaseActionHandler
- type CodeRange
- type DeepFirst
- type NodeInfo
- type SyntaxFlowAction
- func (a *SyntaxFlowAction) Delete(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- func (a *SyntaxFlowAction) Do(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- func (a *SyntaxFlowAction) Get(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- func (a *SyntaxFlowAction) Head(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- func (a *SyntaxFlowAction) Post(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
- func (a *SyntaxFlowAction) Put(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var OP_NEW_MONITOR = "new"
View Source
var OP_STOP_MONITOR = "stop"
View Source
var YakRunnerMonitor *filesys.YakFileMonitor
Functions ¶
func CreateUrlFromString ¶ added in v1.3.2
func DeepFirstGraph ¶
func DeepFirstGraph(graph *ssaapi.ValueGraph, nodeID int) [][]string
func LoadGetResource ¶ added in v1.3.2
func LoadGetResource(u string) (*ypb.RequestYakURLResponse, error)
func Value2Response ¶
func Variable2Response ¶
func Variable2Response(result *ssaapi.SyntaxFlowResult, url *ypb.YakURL) []*ypb.YakURLResource
Types ¶
type Action ¶
type Action interface { Get(*ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error) Post(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error) Put(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error) Delete(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error) Head(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error) Do(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error) }
func GetWebsiteViewerAction ¶ added in v1.2.9
func GetWebsiteViewerAction() Action
type ActionService ¶ added in v1.3.0
type ActionService struct {
// contains filtered or unexported fields
}
func GetActionService ¶ added in v1.3.0
func GetActionService() *ActionService
func (*ActionService) CreateAction ¶ added in v1.3.0
func (s *ActionService) CreateAction(schema string) Action
func (*ActionService) GetAction ¶ added in v1.3.0
func (s *ActionService) GetAction(schema string) Action
func (*ActionService) Stop ¶ added in v1.3.0
func (s *ActionService) Stop()
type BaseAction ¶ added in v1.3.2
type BaseAction struct {
// contains filtered or unexported fields
}
func (*BaseAction) Delete ¶ added in v1.3.2
func (b *BaseAction) Delete(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
func (*BaseAction) Do ¶ added in v1.3.2
func (b *BaseAction) Do(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
func (*BaseAction) Get ¶ added in v1.3.2
func (b *BaseAction) Get(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
func (*BaseAction) Head ¶ added in v1.3.2
func (b *BaseAction) Head(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
func (*BaseAction) Post ¶ added in v1.3.2
func (b *BaseAction) Post(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
func (*BaseAction) Put ¶ added in v1.3.2
func (b *BaseAction) Put(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
type BaseActionHandler ¶ added in v1.3.2
type DeepFirst ¶
type DeepFirst struct {
// contains filtered or unexported fields
}
deep first search for nodeID and its children to [][]id, id is string, if node.Prev have more than one, add a new line
type SyntaxFlowAction ¶
type SyntaxFlowAction struct { ProgramCache *utils.CacheWithKey[string, *ssaapi.Program] // name - program QueryCache *utils.CacheWithKey[string, *ssaapi.SyntaxFlowResult] // hash - result }
func NewSyntaxFlowAction ¶
func NewSyntaxFlowAction() *SyntaxFlowAction
func (*SyntaxFlowAction) Delete ¶
func (a *SyntaxFlowAction) Delete(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
func (*SyntaxFlowAction) Do ¶
func (a *SyntaxFlowAction) Do(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
func (*SyntaxFlowAction) Get ¶
func (a *SyntaxFlowAction) Get(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
Get SyntaxFlowAction
Request : url : "syntaxflow://program_id/variable/index" body: syntaxflow code Response: 1. "syntaxflow://program_id/" : * ResourceType: message / variable all variable names 2. "syntaxflow://program_id/variable_name" : * ResourceType: value all values in this variable 3. "syntaxflow://program_id/variable_name/index" : * ResourceType: information this value information, contain message && graph && node-info
func (*SyntaxFlowAction) Head ¶
func (a *SyntaxFlowAction) Head(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
func (*SyntaxFlowAction) Post ¶
func (a *SyntaxFlowAction) Post(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
func (*SyntaxFlowAction) Put ¶
func (a *SyntaxFlowAction) Put(params *ypb.RequestYakURLParams) (*ypb.RequestYakURLResponse, error)
Click to show internal directories.
Click to hide internal directories.