gui

package
v0.0.0-...-2d91a95 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

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

View Source
const TEM_APPENDTEXT = win.WM_USER + 6

Variables

View Source
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

View Source
var Input = &Inputor{
	AppConf:     cache.Task,
	Pausetime:   cache.Task.Pausetime,
	ProxyMinute: cache.Task.ProxyMinute,
}

Functions

func Init

func Init()

func Run

func Run()

execute the entry

func SetTaskConf

func SetTaskConf()

func SpiderNames

func SpiderNames() (names []string)

func SpiderPrepare

func SpiderPrepare()

Types

type Inputor

type Inputor struct {
	Spiders []*GUISpider
	*cache.AppConf
	Pausetime   int64
	ProxyMinute int64
}

GUI input

type KV

type KV struct {
	Key   string
	Int   int
	Int64 int64
}

KV drop-down menu auxiliary structure

type LogView

type LogView struct {
	walk.WidgetBase
	// contains filtered or unexported fields
}

func NewLogView

func NewLogView(parent walk.Container) (*LogView, error)

func (*LogView) AppendText

func (lv *LogView) AppendText(value string)

func (*LogView) Clean

func (lv *LogView) Clean()

func (*LogView) LayoutFlags

func (*LogView) LayoutFlags() walk.LayoutFlags

func (*LogView) MinSizeHint

func (*LogView) MinSizeHint() walk.Size

func (*LogView) PostAppendText

func (lv *LogView) PostAppendText(value string)

func (*LogView) SizeHint

func (*LogView) SizeHint() walk.Size

func (*LogView) WndProc

func (lv *LogView) WndProc(hwnd win.HWND, msg uint32, wParam, lParam uintptr) uintptr

func (*LogView) Write

func (lv *LogView) Write(p []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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