Documentation
¶
Overview ¶
Copyright 2012 The Walk Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
[spider frame (golang)] Mobal (Phantom Spider) is a pure Go language prepared by the high-level, distributed, heavyweight reptile software, support stand-alone, server, client three operating modes, with Web, GUI (Mysql / mongodb / csv / excel, etc.), a large number of Demo sharing; at the same time she also supports horizontal and vertical two crawling mode, support for simulated login (mysql / mongodb / csv / excel, etc.), a large number of Demo shared; And task suspension, cancellation and a series of advanced features; (official QQ group: Go large data 42731170, welcome to join our discussion). GUI interface version.
Index ¶
- Constants
- Variables
- func Init()
- func Run()
- func SetTaskConf()
- func SpiderNames() (names []string)
- func SpiderPrepare()
- type Inputor
- type KV
- type LogView
- func (lv *LogView) AppendText(value string)
- func (lv *LogView) Clean()
- func (*LogView) LayoutFlags() walk.LayoutFlags
- func (*LogView) MinSizeHint() walk.Size
- func (lv *LogView) PostAppendText(value string)
- func (*LogView) SizeHint() walk.Size
- func (lv *LogView) WndProc(hwnd win.HWND, msg uint32, wParam, lParam uintptr) uintptr
- func (lv *LogView) Write(p []byte) (int, error)
Constants ¶
const TEM_APPENDTEXT = win.WM_USER + 6
Variables ¶
var GuiOpt = struct { Mode []*KV Pausetime []*KV ProxyMinute []*KV }{ Mode: []*KV{ {Key: "Stand-Alone", Int: status.OFFLINE}, {Key: "Server", Int: status.SERVER}, {Key: "Client", Int: status.CLIENT}, }, Pausetime: []*KV{ {Key: "No pause", Int64: 0}, {Key: "0.1 second", Int64: 100}, {Key: "0.3 second", Int64: 300}, {Key: "0.5 second", Int64: 500}, {Key: "1 second", Int64: 1000}, {Key: "3 seconds", Int64: 3000}, {Key: "5 seconds", Int64: 5000}, {Key: "10 seconds", Int64: 10000}, {Key: "15 seconds", Int64: 15000}, {Key: "20 seconds", Int64: 20000}, {Key: "30 seconds", Int64: 30000}, {Key: "60 seconds", Int64: 60000}, }, ProxyMinute: []*KV{ {Key: "Do not use proxy", Int64: 0}, {Key: "1 minute", Int64: 1}, {Key: "3 minutes", Int64: 3}, {Key: "5 minutes", Int64: 5}, {Key: "10 minutes", Int64: 10}, {Key: "15 minutes", Int64: 15}, {Key: "20 minutes", Int64: 20}, {Key: "30 minutes", Int64: 30}, {Key: "45 minutes", Int64: 45}, {Key: "60 minutes", Int64: 60}, {Key: "120 minutes", Int64: 120}, {Key: "180 minutes", Int64: 180}, }, }
GuiOpt Pause time options and run mode options
Functions ¶
func SetTaskConf ¶
func SetTaskConf()
func SpiderNames ¶
func SpiderNames() (names []string)
func SpiderPrepare ¶
func SpiderPrepare()
Types ¶
type LogView ¶
type LogView struct { walk.WidgetBase // contains filtered or unexported fields }
func (*LogView) AppendText ¶
func (*LogView) LayoutFlags ¶
func (*LogView) LayoutFlags() walk.LayoutFlags