skUtils

package module
v0.0.0-...-99a4d3c Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: MIT Imports: 12 Imported by: 0

README

skUtils-go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NowPass

func NowPass(sHour int, sMin int, sSec int) bool

Types

type AOPFunc

type AOPFunc func()

type AsyLogBox

type AsyLogBox struct {
	*ui.MultilineEntry
	*log.Logger
}

func NewAsyLogBox

func NewAsyLogBox() *AsyLogBox

func (*AsyLogBox) Write

func (self *AsyLogBox) Write(p []byte) (n int, err error)

type HARParser

type HARParser struct {
	Headers                 map[string][]string
	Postdata                string
	PostParmas, QueryString map[string]string
	// contains filtered or unexported fields
}

func NewHARParser

func NewHARParser(path string) *HARParser

func NewHARParserWithNo

func NewHARParserWithNo(path string, no int) *HARParser

func (*HARParser) CopyPost

func (self *HARParser) CopyPost() map[string]string

func (*HARParser) CopyQuery

func (self *HARParser) CopyQuery() map[string]string

func (*HARParser) GenEnv

func (self *HARParser) GenEnv(request *gorequest.SuperAgent, genHeader []string) *gorequest.SuperAgent

func (*HARParser) GetUrl

func (self *HARParser) GetUrl() string

func (*HARParser) IsOK

func (self *HARParser) IsOK() bool

func (*HARParser) ReGenPayload

func (self *HARParser) ReGenPayload(m map[string]string) string

func (*HARParser) ReGenUrl

func (self *HARParser) ReGenUrl(m map[string]string) string

func (*HARParser) Repeat

func (self *HARParser) Repeat(request *gorequest.SuperAgent, para map[string]string) *gorequest.SuperAgent

func (*HARParser) UrlContains

func (self *HARParser) UrlContains(s string) bool

type IniFile

type IniFile struct {
	// contains filtered or unexported fields
}

func NewIni

func NewIni(path string) *IniFile

func (*IniFile) Get

func (self *IniFile) Get(sec string) map[string]string

func (*IniFile) GetSeq

func (self *IniFile) GetSeq(sec string) (map[string]string, []string)

func (*IniFile) ReGetSeq

func (self *IniFile) ReGetSeq(sec string) (map[string]string, []string)

type MulCheckedList

type MulCheckedList struct {
	*ui.Table
	// contains filtered or unexported fields
}

func NewMulCheckedList

func NewMulCheckedList(d map[string]string) *MulCheckedList

func NewMulCheckedListSort

func NewMulCheckedListSort(d map[string]string, sorted []string) *MulCheckedList

func (*MulCheckedList) Change

func (self *MulCheckedList) Change(d map[string]string, sorted []string)

func (*MulCheckedList) SelAll

func (self *MulCheckedList) SelAll()

func (*MulCheckedList) SelList

func (self *MulCheckedList) SelList() []interface{}

func (*MulCheckedList) SelPairList

func (self *MulCheckedList) SelPairList() []interface{}

func (*MulCheckedList) SelValList

func (self *MulCheckedList) SelValList() []interface{}

func (*MulCheckedList) UnSelAll

func (self *MulCheckedList) UnSelAll()

type MultiTask

type MultiTask struct {
	SHour, SMin, SSec            int
	IntMillSec, IntMillSecBefore int
	Max                          int
	// contains filtered or unexported fields
}

func NewMultiTask

func NewMultiTask(real RunnerFunc) *MultiTask

func (*MultiTask) RunWith

func (self *MultiTask) RunWith(datas []interface{}) *MultiTask

func (*MultiTask) SetBefRun

func (self *MultiTask) SetBefRun(run RunnerFunc) *MultiTask

func (*MultiTask) SetTime

func (self *MultiTask) SetTime(h, m, s int) *MultiTask

func (*MultiTask) SetTimeInt

func (self *MultiTask) SetTimeInt(bef, run int) *MultiTask

func (*MultiTask) Stop

func (self *MultiTask) Stop() *MultiTask

type RunnerFunc

type RunnerFunc func(interface{}) (int, error)

type TablePair

type TablePair struct {
	Name  string
	Value interface{}
}

type TimeInterval

type TimeInterval struct {
	SHour, SMin, SSec            int
	IntMillSec, IntMillSecBefore int
	Max                          int
	// contains filtered or unexported fields
}

func NewTimeInterval

func NewTimeInterval(r RunnerFunc) *TimeInterval

func (*TimeInterval) IsOK

func (self *TimeInterval) IsOK() bool

func (*TimeInterval) IsStop

func (self *TimeInterval) IsStop() bool

func (*TimeInterval) Run

func (self *TimeInterval) Run() *TimeInterval

func (*TimeInterval) RunWith

func (self *TimeInterval) RunWith(data interface{}) *TimeInterval

func (*TimeInterval) SetBefRun

func (self *TimeInterval) SetBefRun(befrun RunnerFunc) *TimeInterval

func (*TimeInterval) SetBeg

func (self *TimeInterval) SetBeg(beg AOPFunc) *TimeInterval

func (*TimeInterval) SetEnd

func (self *TimeInterval) SetEnd(end AOPFunc) *TimeInterval

func (*TimeInterval) SetTime

func (self *TimeInterval) SetTime(h, m, s int) *TimeInterval

func (*TimeInterval) SetTimeInt

func (self *TimeInterval) SetTimeInt(bef, run int) *TimeInterval

func (*TimeInterval) Stop

func (self *TimeInterval) Stop()

type VerBox

type VerBox struct {
	*ui.Area
	// contains filtered or unexported fields
}

TODO

func NewVerBox

func NewVerBox() *VerBox

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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