Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Engine *gin.Engine LauncherPath string )
Functions ¶
Types ¶
type FindRequest ¶
type FindRespond ¶
type HeadlessClient ¶
type HeadlessClient struct {
// contains filtered or unexported fields
}
HeadlessClient handles communication for headless browser service
func NewHeadlessClient ¶
func NewHeadlessClient(url string) *HeadlessClient
NewHeadlessClient creates a new headless client
func (*HeadlessClient) Find ¶
func (h *HeadlessClient) Find(ctx context.Context, payload *FindRequest) (string, error)
Find find whether the target matching payload exists
type Match ¶
type Match struct { Type string `json:"type"` MatchRegExp *MatchRegExp `json:"regexp"` MatchXPath *MatchXPath `json:"xpath"` MatchJS *MatchJS `json:"js"` }
type MatchRegExp ¶
type MatchXPath ¶
type MatchXPath struct { // Selector is the xpath selector Selector string `json:"selector"` }
Click to show internal directories.
Click to hide internal directories.