Documentation ¶
Index ¶
- Constants
- func IntSliceKeyExist(l []int, i int) bool
- func LoadAliasMenu(line string, module Module, s *Session) []string
- func LoadEventsMenu(line string, module Module, s *Session) []string
- func LoadFindCommandMenu(line string, module Module, s *Session) []string
- func LoadIntervalCommandMenu(line string, module Module, s *Session) []string
- func LoadModuleByTypeMenu(line string, module Module, s *Session) []string
- func LoadModuleMenu(line string, module Module, s *Session) []string
- func LoadMonitorCommandMenu(line string, module Module, s *Session) []string
- func LoadNoteMenu(line string, module Module, s *Session) []string
- func LoadNotificationCommandMenu(line string, module Module, s *Session) []string
- func LoadResultMenu(line string, module Module, s *Session) []string
- func LoadShCommandMenu(line string, module Module, s *Session) []string
- func LoadTargetMenu(line string, module Module, s *Session) []string
- func LoadTrackerCommandMenu(line string, module Module, s *Session) []string
- func LoadWebHookMenu(line string, module Module, s *Session) []string
- type Backup
- type BackupInstances
- type BackupInterval
- type BackupMonitors
- type BackupSession
- type BackupTargets
- type BackupWebhooks
- type Bounds
- type Connection
- type ConnectionInstance
- type CronJob
- type Event
- type Events
- type Headers
- type Information
- type Instance
- type Interval
- func (i *Interval) Down() *Interval
- func (i *Interval) GetCommands() []string
- func (i *Interval) GetDelay() int
- func (i *Interval) SetCommand(command string) *Interval
- func (i *Interval) SetDelay(delay int) *Interval
- func (i *Interval) SetId() *Interval
- func (i *Interval) SetSession(s *Session) *Interval
- func (i *Interval) SetTimeType(s string) *Interval
- func (i *Interval) Up() bool
- type Linking
- type Listener
- type Module
- type ModuleEvent
- type ModuleFilter
- type ModuleInformation
- type Monitor
- type MonitorMatch
- type Monitors
- type Note
- type Notification
- type OpfClient
- type OpfResultValue
- type OpfResults
- func (result *OpfResults) AddNoteToResult(text string)
- func (r *OpfResults) Bytes() ([]byte, error)
- func (r *OpfResults) GetCompactKeys() string
- func (r *OpfResults) GetCompactValues() string
- func (r *OpfResults) GetKeys() []string
- func (r *OpfResults) JSON() json.RawMessage
- func (r *OpfResults) Save(module Module, target *Target) bool
- func (r *OpfResults) Set(key string, value string)
- type Param
- type Position
- type Session
- func (s *Session) AddAlias(alias string, module string)
- func (s *Session) AddOrFirstTracker(t Tracking) Tracking
- func (s *Session) AddService(service Listener)
- func (s *Session) AddTag(target *Target, tag string) (bool, error)
- func (s *Session) AddTarget(t string, name string) (string, error)
- func (s *Session) AddTracker(tracker Tracking) Tracking
- func (s *Session) AutoStartWebHook()
- func (s *Session) AutoStopWebHook()
- func (s *Session) BooleanToString(element bool) string
- func (s *Session) CheckTypeExist(t string) bool
- func (s *Session) ClearScreen()
- func (s *Session) CountUnReadNotifications() int
- func (s *Session) CreateCacheInstances(base string) error
- func (s *Session) CreateCacheIntervals(base string) error
- func (s *Session) CreateCacheMonitors(base string) error
- func (s *Session) CreateCacheSession(base string) error
- func (s *Session) CreateCacheTargets(base string) error
- func (s *Session) CreateCacheWebhooks(base string) error
- func (s *Session) DeleteEvent(id string)
- func (s *Session) DeleteMonitor(monitorId string)
- func (s *Session) DeleteResult(id string)
- func (s *Session) ExportNow() SessionExport
- func (s *Session) FindLinked(m string, res OpfResults) ([]string, error)
- func (s *Session) FindLinkedTargetByResult(t *Target)
- func (s *Session) FromSourceFile() error
- func (s *Session) GetAlias(alias string) (string, error)
- func (s *Session) GetCurrentInstance() *Instance
- func (s *Session) GetEvent(id string) (*Event, error)
- func (s *Session) GetEvents() Events
- func (s *Session) GetInterval(id string) (*Interval, error)
- func (s *Session) GetLastTracker() (*Tracking, error)
- func (s *Session) GetMonitor(monitorId string) (*Monitor, error)
- func (s *Session) GetMonitors() Monitors
- func (s *Session) GetName() string
- func (s *Session) GetNotification(id string) (*Notification, error)
- func (s *Session) GetResult(id string) (*OpfResults, error)
- func (s *Session) GetResultsAfter(results []*OpfResults, afterTime time.Time) []*OpfResults
- func (s *Session) GetResultsBefore(results []*OpfResults, beforeTime time.Time) []*OpfResults
- func (s *Session) GetSeparator() string
- func (s *Session) GetTarget(id string) (*Target, error)
- func (s *Session) GetTargetByName(name string) (*Target, error)
- func (s *Session) GetTracker(trackerId string) (*Tracking, error)
- func (s *Session) GetTrackerBestMover() *Tracking
- func (s *Session) GetTrackerRouter() *mux.Router
- func (s *Session) GetTrackingUrlWithParam() string
- func (s *Session) GetUser(username string) (*User, error)
- func (s *Session) GetWebHook(id string) (*WebHook, error)
- func (s *Session) GetWebHookByName(name string) (*WebHook, error)
- func (s *Session) HasWatcher(t string) bool
- func (s *Session) ImportFromCsv(fileName string, delimiter string, primary int, verbose bool, linking []int)
- func (s *Session) IntegerToString(element int) string
- func (s *Session) IsJSON(str string) bool
- func (s *Session) ListAlias()
- func (s *Session) ListModules()
- func (s *Session) ListTargets()
- func (s *Session) ListType() []string
- func (s *Session) ListWebHooks()
- func (s *Session) LoadCache(name string)
- func (s *Session) LoadIntervalFromSourceFile() error
- func (s *Session) LoadModuleConfiguration(module string) (map[string]string, error)
- func (s *Session) LoadWebHook()
- func (s *Session) NewEvent(t string, value interface{}) *Event
- func (s *Session) NewInstance(module string) *Instance
- func (s *Session) NewInterval(command string) *Interval
- func (s *Session) NewMonitor(scope string) *Monitor
- func (s *Session) NewNotification(text string) *Notification
- func (s *Session) NewUser(username string, password string) (*User, error)
- func (s *Session) ParseCommand(line string) []string
- func (s *Session) ParseCommands(str string)
- func (s *Session) ParseModuleConfig()
- func (s *Session) PushPrompt()
- func (s *Session) PushType(t string)
- func (s *Session) PutWebHook(wh WebHook)
- func (s *Session) ReadLineAutoCompleteCacheName() func(string) []string
- func (s *Session) ReadLineAutoCompleteFilters() func(string) []string
- func (s *Session) ReadLineAutoCompleteInterval() func(string) []string
- func (s *Session) ReadLineAutoCompleteListAlias() func(string) []string
- func (s *Session) ReadLineAutoCompleteListModules() func(string) []string
- func (s *Session) ReadLineAutoCompleteListWebHooks() func(string) []string
- func (s *Session) ReadLineAutoCompleteModuleResults() func(string) []string
- func (s *Session) ReadLineAutoCompleteMonitor() func(string) []string
- func (s *Session) ReadLineAutoCompleteNotification() func(string) []string
- func (s *Session) ReadLineAutoCompleteResults() func(string) []string
- func (s *Session) ReadLineAutoCompleteTargets() func(string) []string
- func (s *Session) ReadLineAutoCompleteTracker() func(string) []string
- func (s *Session) ReadLineAutoCompleteType() func(string) []string
- func (s *Session) RemoveTarget(id string) (bool, error)
- func (s *Session) ResetPosition()
- func (s *Session) SearchFilter(name string) (ModuleFilter, error)
- func (s *Session) SearchModule(name string) (Module, error)
- func (s *Session) SendToWebHook(w *WebHook, event *Event) error
- func (s *Session) ServeTrackerGUI()
- func (s *Session) SetInstance(i *Instance) *Session
- func (s *Session) SetPosition(position Position)
- func (s *Session) SetPositionFromTracker(tracker *Tracking)
- func (s *Session) SetSourceFile(file string)
- func (s *Session) StringToBoolean(element string) bool
- func (s *Session) StringToInt64(element string) int64
- func (s *Session) StringToInteger(element string) int
- func (s *Session) ToCache(name string)
- func (s *Session) UpdatePrompt()
- func (s *Session) UpdateTarget(id string, value string)
- func (s *Session) WaitInterval()
- func (s *Session) WaitMonitor()
- func (s *Session) WithFilter(module Module) bool
- type SessionExport
- type SessionFilter
- type SessionModule
- func (module *SessionModule) CheckRequired() bool
- func (module *SessionModule) CreateNewParam(name string, description string, value string, isRequired bool, paramType int)
- func (module *SessionModule) GetAllParameters() []Param
- func (module *SessionModule) GetExport() []OpfResults
- func (module *SessionModule) GetExternal() []string
- func (module *SessionModule) GetParameter(name string) (Param, error)
- func (module *SessionModule) GetResults() []string
- func (module *SessionModule) ListArguments()
- func (module *SessionModule) SetExport(result OpfResults)
- func (module *SessionModule) SetParameter(name string, value string) (bool, error)
- func (module *SessionModule) WithProgram(name string) bool
- type Source
- type Stream
- func (stream *Stream) Backgound(text string)
- func (stream *Stream) Error(text string)
- func (stream *Stream) GenerateTable() table.Writer
- func (stream *Stream) Render(t table.Writer)
- func (stream *Stream) Standard(text string)
- func (stream *Stream) Success(text string)
- func (stream *Stream) Warning(text string)
- func (stream *Stream) WithoutDate(text string)
- type Tags
- type Target
- func (target *Target) AddNote(text string)
- func (target *Target) CheckType() bool
- func (target *Target) GetFormatedResults(module string) ([]map[string]string, error)
- func (target *Target) GetId() string
- func (target *Target) GetLastResults(module string)
- func (target *Target) GetLinked() []Linking
- func (target *Target) GetModuleResults(name string) ([]*OpfResults, error)
- func (target *Target) GetName() string
- func (target *Target) GetResult(id string) (*OpfResults, error)
- func (target *Target) GetResults() map[string][]*OpfResults
- func (target *Target) GetSeparator() string
- func (target *Target) GetTags() []Tags
- func (target *Target) GetType() string
- func (target *Target) HasTag(tag string) bool
- func (target *Target) Is(t string) bool
- func (target *Target) Link(target2 Linking)
- func (target *Target) Linked()
- func (target *Target) NewResult() *OpfResults
- func (target *Target) PushLinked(t Linking)
- func (target *Target) ResultExist(result OpfResults) bool
- func (target *Target) Save(module Module, result OpfResults) bool
- type Tracking
- func (t *Tracking) GetDescription() string
- func (t *Tracking) GetHistories() []*Tracking
- func (t *Tracking) GetIdentifier() string
- func (t *Tracking) GetLatitude() string
- func (t *Tracking) GetLongitude() string
- func (t *Tracking) GetMemories() []TrackingPosition
- func (t *Tracking) GetTime() time.Time
- func (t *Tracking) Synchronize()
- func (t *Tracking) ViewPositions()
- type TrackingPosition
- type User
- type WebHook
- func (w *WebHook) Down()
- func (w *WebHook) GetEvents() string
- func (w *WebHook) GetId() string
- func (w *WebHook) GetMethod() string
- func (w *WebHook) GetName() string
- func (w *WebHook) GetStatus() bool
- func (w *WebHook) GetURL() string
- func (w *WebHook) SetStatus(s bool) *WebHook
- func (w *WebHook) Up()
Constants ¶
View Source
const ( EXEC_COMMAND = "EXEC_COMMAND" MONITOR_MATCH = "MONITOR_MATCH" TARGET_ADD = "TARGET_ADD" TARGET_LINK = "TARGET_LINK" TAG_ADD = "TAG_ADD" ERROR_GENERIC = "ERROR_GENERIC" ERROR_MODULE = "ERROR_MODULE" RESULTS_ADD = "RESULTS_ADD" RESULTS_SYNC = "RESULTS_SYNC" WEBHOOK_SEND = "WEBHOOK_SEND" TRACKER_FOUND = "TRACKER_FOUND" TRACKER_SELECTED = "TRACKER_SELECTED" TRACKER_UNKNOWN = "TRACKER_UNKNOWN" )
View Source
const ( INT = 1 STRING = 2 BOOL = 3 FLOAT = 4 )
View Source
const ( T_TARGET_IP_ADDRESS = "ip_address" T_TARGET_USERNAME = "username" T_TARGET_COMMAND = "command" T_TARGET_TEXT = "text" T_TARGET_WEBSITE = "website" T_TARGET_URL = "url" T_TARGET_HEADER = "header" T_TARGET_SEARCH = "search" T_TARGET_BLANK = "" T_TARGET_INSTAGRAM = "instagram" T_TARGET_FILE = "file" T_TARGET_ENTERPRISE = "enterprise" T_TARGET_MAC = "mac" T_TARGET_EMAIL = "email" T_TARGET_PHONE = "phone" T_TARGET_COUNTRY = "country" T_TARGET_TWITTER = "twitter" T_TARGET_SESSION = "session" T_TARGET_IMPORT = "import" T_TARGET_PERSON = "person" T_TARGET_SOFTWARE = "software" T_TARGET_WHATSAPP = "whatsapp" )
Variables ¶
This section is empty.
Functions ¶
func IntSliceKeyExist ¶
func LoadFindCommandMenu ¶
func LoadIntervalCommandMenu ¶
func LoadModuleByTypeMenu ¶
func LoadMonitorCommandMenu ¶
func LoadNoteMenu ¶
@todo solve error in parsing line
func LoadTrackerCommandMenu ¶
Types ¶
type Backup ¶
type Backup struct { Id int `json:"-" gorm:"primary_key:yes;column:id;AUTO_INCREMENT"` SessionName string `json:"session_name"` Information Information `json:"information"` Instances []*Instance `json:"instances"` CurrentInstance *Instance `json:"current_instance"` Events Events `json:"events"` SourceFile string `json:"source_file"` Version string `json:"version" sql:"-"` Targets []*Target `json:"targets" sql:"-"` Monitors Monitors `json:"monitors"` TypeLists []string `json:"type_lists" sql:"-"` ServiceFolder string `json:"home_folder"` Services []Listener `json:"services"` Alias map[string]string `json:"-" sql:"-"` Interval []*Interval `json:"interval"` WebHooks []*WebHook `json:"web_hooks"` }
type BackupInstances ¶
type BackupInstances struct {
Instances []*Instance `json:"instances"`
}
type BackupInterval ¶
type BackupInterval struct {
Interval []*Interval `json:"interval"`
}
type BackupMonitors ¶
type BackupMonitors struct {
Monitors Monitors `json:"monitors"`
}
type BackupSession ¶
type BackupSession struct { Id int `json:"-" gorm:"primary_key:yes;column:id;AUTO_INCREMENT"` SessionName string `json:"session_name"` Information Information `json:"information"` Events Events `json:"events"` SourceFile string `json:"source_file"` Version string `json:"version" sql:"-"` TypeLists []string `json:"type_lists" sql:"-"` ServiceFolder string `json:"home_folder"` Services []Listener `json:"services"` Alias map[string]string `json:"-" sql:"-"` }
type BackupTargets ¶
type BackupTargets struct {
Targets []*Target `json:"targets" sql:"-"`
}
type BackupWebhooks ¶
type BackupWebhooks struct {
WebHooks []*WebHook `json:"web_hooks"`
}
type Connection ¶
type Connection struct { ConnectionInstance ORM *gorm.DB `json:"-"` Migrations map[string]interface{} `json:"-"` }
func (*Connection) GetDB ¶
func (c *Connection) GetDB() *sql.DB
func (*Connection) GetORM ¶
func (c *Connection) GetORM() *gorm.DB
func (*Connection) LoadMigration ¶
func (c *Connection) LoadMigration()
func (*Connection) Migrate ¶
func (c *Connection) Migrate() bool
type ConnectionInstance ¶
type Information ¶
type Information struct { ApiStatus bool `json:"api_status"` TrackerStatus bool `json:"tracker_status"` ModuleLaunched int `json:"module_launched"` Event int `json:"event"` }
func (*Information) AddEvent ¶
func (i *Information) AddEvent()
func (*Information) AddModule ¶
func (i *Information) AddModule()
func (*Information) SetApi ¶
func (i *Information) SetApi(s bool)
func (*Information) SetTracker ¶
func (i *Information) SetTracker(s bool)
type Instance ¶
type Instance struct { Id string `json:"id"` Module string `json:"module"` Results [][]OpfResultValue `json:"results"` CreatedAt time.Time `json:"created_at"` }
func (*Instance) SetResults ¶
func (i *Instance) SetResults(r []OpfResultValue)
Set result to instance
type Interval ¶
type Interval struct { Id string `json:"id"` S *Session `json:"-"` Commands []string `json:"commands"` Delay int `json:"delay"` Time time.Duration `json:"time"` ExecutionNumbers int `json:"execution_numbers"` LastRun time.Time `json:"last_run"` NextRun time.Time `json:"next_run"` Activated bool `json:"activated"` }
func (*Interval) GetCommands ¶
func (*Interval) SetCommand ¶
func (*Interval) SetSession ¶
func (*Interval) SetTimeType ¶
type Linking ¶
type Linking struct { LinkingId int `json:"-" gorm:"primary_key:yes;column:id;AUTO_INCREMENT"` SessionId int `json:"session_id" gorm:"column:session_id"` TargetBase string `json:"target_base" gorm:"column:target_base"` TargetId string `json:"target_id" gorm:"column:target_id"` TargetName string `json:"target_name" gorm:"column:target_name"` TargetType string `json:"target_type" gorm:"column:target_type"` TargetResultId string `json:"target_result_id" gorm:"column:target_result_id"` OpfResultsTo string `json:"target_results_to"` }
type Module ¶
type Module interface { Start() Name() string Author() string Description() string GetType() []string ListArguments() GetExport() []OpfResults SetExport(result OpfResults) GetResults() []string GetInformation() ModuleInformation CheckRequired() bool SetParameter(name string, value string) (bool, error) GetParameter(name string) (Param, error) GetAllParameters() []Param WithProgram(name string) bool GetExternal() []string CreateNewParam(name string, description string, value string, isRequired bool, paramType int) }
type ModuleEvent ¶
type ModuleEvent struct { ModuleName string Results interface{} }
type ModuleFilter ¶
type ModuleInformation ¶
type Monitor ¶
type Monitor struct { Session *Session `json:"-"` MonitorId string `json:"monitor_id"` Search []string `json:"search"` Strict bool `json:"strict"` Status bool `json:"status"` Result []*OpfResults `json:"-"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
func (*Monitor) SetSession ¶
func (*Monitor) ViewResults ¶
func (m *Monitor) ViewResults()
type MonitorMatch ¶
type MonitorMatch struct { Monitor *Monitor `json:"monitor"` Result *OpfResults `json:"result"` }
type Notification ¶
type OpfClient ¶
func GetOpfClient ¶
func GetOpfClient() OpfClient
func (*OpfClient) SetUserAgent ¶
type OpfResultValue ¶
type OpfResultValue struct { Key string `json:"key"` Value string `json:"value"` Notes []Note `json:"notes"` CreatedAt time.Time `json:"created_at"` }
Struct of module result value
type OpfResults ¶
type OpfResults struct { Id int `json:"-" gorm:"primary_key:yes;column:id;AUTO_INCREMENT"` SessionId int `json:"-" gorm:"session_id"` ModuleName string `json:"module_name"` ResultId string `json:"result_id" gorm:"primary_key:yes;column:result_id"` TargetId string `json:"target_id" gorm:"target_id"` Values []OpfResultValue `json:"values"` ToJSON json.RawMessage `json:"to_json"` Notes []Note Auxiliary []string `json:"-" sql:"-"` CreatedAt time.Time `json:"created_at"` }
Struct of module result
func (*OpfResults) AddNoteToResult ¶
func (result *OpfResults) AddNoteToResult(text string)
func (*OpfResults) Bytes ¶
func (r *OpfResults) Bytes() ([]byte, error)
func (*OpfResults) GetCompactKeys ¶
func (r *OpfResults) GetCompactKeys() string
Compact keys with separator
func (*OpfResults) GetCompactValues ¶
func (r *OpfResults) GetCompactValues() string
Compact values with separator
func (*OpfResults) JSON ¶
func (r *OpfResults) JSON() json.RawMessage
func (*OpfResults) Set ¶
func (r *OpfResults) Set(key string, value string)
type Session ¶
type Session struct { SessionName string `json:"session_name"` Information Information `json:"information"` Connection Connection `json:"-" sql:"-"` Client OpfClient `json:"-"` Tracker struct { Position []Position `json:"position"` Selected *Tracking `json:"selected"` Tracked []*Tracking `json:"tracked"` Server *http.Server `json:"-"` } `json:"tracker"` Instances []*Instance `json:"instances"` CurrentInstance *Instance `json:"current_instance"` Events Events `json:"events"` SourceFile string `json:"source_file"` Config config.Config `json:"config" sql:"-"` Version string `json:"version" sql:"-"` Targets []*Target `json:"targets" sql:"-"` Modules []Module `json:"modules" sql:"-"` Monitors Monitors `json:"monitors"` Filters []ModuleFilter `json:"filters" sql:"-"` Prompt *readline.Config `json:"-" sql:"-"` Stream Stream `json:"-" sql:"-"` TypeLists []string `json:"type_lists" sql:"-"` ServiceFolder string `json:"home_folder"` Services []Listener `json:"services"` Alias map[string]string `json:"-" sql:"-"` Users []*User `json:"users"` Interval []*Interval `json:"interval"` WebHooks []*WebHook `json:"web_hooks"` Notifications []*Notification `json:"notifications"` }
func (*Session) AddOrFirstTracker ¶
func (*Session) AddService ¶
func (*Session) AddTracker ¶
func (*Session) AutoStartWebHook ¶
func (s *Session) AutoStartWebHook()
func (*Session) AutoStopWebHook ¶
func (s *Session) AutoStopWebHook()
func (*Session) BooleanToString ¶
func (*Session) CheckTypeExist ¶
func (*Session) ClearScreen ¶
func (s *Session) ClearScreen()
func (*Session) CountUnReadNotifications ¶
Count unread session notification
func (*Session) CreateCacheInstances ¶
func (*Session) CreateCacheIntervals ¶
func (*Session) CreateCacheMonitors ¶
func (*Session) CreateCacheSession ¶
func (*Session) CreateCacheTargets ¶
func (*Session) CreateCacheWebhooks ¶
func (*Session) DeleteEvent ¶
func (*Session) DeleteMonitor ¶
func (*Session) DeleteResult ¶
func (*Session) ExportNow ¶
func (s *Session) ExportNow() SessionExport
func (*Session) FindLinked ¶
func (s *Session) FindLinked(m string, res OpfResults) ([]string, error)
func (*Session) FindLinkedTargetByResult ¶
func (*Session) FromSourceFile ¶
func (*Session) GetCurrentInstance ¶
Get current session module execution instance
func (*Session) GetLastTracker ¶
func (*Session) GetMonitors ¶
func (*Session) GetNotification ¶
func (s *Session) GetNotification(id string) (*Notification, error)
Get a notification
func (*Session) GetResultsAfter ¶
func (s *Session) GetResultsAfter(results []*OpfResults, afterTime time.Time) []*OpfResults
func (*Session) GetResultsBefore ¶
func (s *Session) GetResultsBefore(results []*OpfResults, beforeTime time.Time) []*OpfResults
func (*Session) GetSeparator ¶
func (*Session) GetTrackerBestMover ¶
func (*Session) GetTrackerRouter ¶
func (*Session) GetTrackingUrlWithParam ¶
func (*Session) GetWebHookByName ¶
func (*Session) HasWatcher ¶
Checking if watcher as been set in session
func (*Session) ImportFromCsv ¶
func (s *Session) ImportFromCsv(fileName string, delimiter string, primary int, verbose bool, linking []int)
Import data from CSV file
func (*Session) IntegerToString ¶
func (*Session) ListModules ¶
func (s *Session) ListModules()
func (*Session) ListTargets ¶
func (s *Session) ListTargets()
func (*Session) ListWebHooks ¶
func (s *Session) ListWebHooks()
func (*Session) LoadIntervalFromSourceFile ¶
func (*Session) LoadModuleConfiguration ¶
func (*Session) LoadWebHook ¶
func (s *Session) LoadWebHook()
func (*Session) NewInstance ¶
Create a new module execution instance
func (*Session) NewInterval ¶
func (*Session) NewMonitor ¶
func (*Session) NewNotification ¶
func (s *Session) NewNotification(text string) *Notification
Create a new notification
func (*Session) ParseCommand ¶
func (*Session) ParseCommands ¶
func (*Session) ParseModuleConfig ¶
func (s *Session) ParseModuleConfig()
func (*Session) PushPrompt ¶
func (s *Session) PushPrompt()
func (*Session) PutWebHook ¶
func (*Session) ReadLineAutoCompleteCacheName ¶
func (*Session) ReadLineAutoCompleteFilters ¶
func (*Session) ReadLineAutoCompleteInterval ¶
func (*Session) ReadLineAutoCompleteListAlias ¶
func (*Session) ReadLineAutoCompleteListModules ¶
func (*Session) ReadLineAutoCompleteListWebHooks ¶
func (*Session) ReadLineAutoCompleteModuleResults ¶
func (*Session) ReadLineAutoCompleteMonitor ¶
func (*Session) ReadLineAutoCompleteNotification ¶
func (*Session) ReadLineAutoCompleteResults ¶
func (*Session) ReadLineAutoCompleteTargets ¶
func (*Session) ReadLineAutoCompleteTracker ¶
func (*Session) ReadLineAutoCompleteType ¶
func (*Session) ResetPosition ¶
func (s *Session) ResetPosition()
func (*Session) SearchFilter ¶
func (s *Session) SearchFilter(name string) (ModuleFilter, error)
func (*Session) ServeTrackerGUI ¶
func (s *Session) ServeTrackerGUI()
func (*Session) SetInstance ¶
Set module execution instance to current
func (*Session) SetPosition ¶
func (*Session) SetPositionFromTracker ¶
func (*Session) SetSourceFile ¶
func (*Session) StringToBoolean ¶
func (*Session) StringToInt64 ¶
func (*Session) StringToInteger ¶
func (*Session) UpdateTarget ¶
func (*Session) WaitInterval ¶
func (s *Session) WaitInterval()
func (*Session) WaitMonitor ¶
func (s *Session) WaitMonitor()
func (*Session) WithFilter ¶
type SessionExport ¶
type SessionExport struct { Id int `json:"-"` SessionName string `json:"session_name"` Information Information `json:"information"` Config config.Config `json:"config" sql:"-"` Version string `json:"version" sql:"-"` Targets []*Target `json:"subjects" sql:"-"` Modules []Module `json:"modules" sql:"-"` Filters []ModuleFilter `json:"filters" sql:"-"` Stream Stream `json:"-" sql:"-"` TypeLists []string `json:"type_lists" sql:"-"` ServiceFolder string `json:"home_folder"` Services []Listener `json:"services"` }
type SessionFilter ¶
type SessionFilter struct { ModuleFilter With []string }
func (*SessionFilter) AddModule ¶
func (filter *SessionFilter) AddModule(name string)
func (*SessionFilter) WorkWith ¶
func (filter *SessionFilter) WorkWith(name string) bool
type SessionModule ¶
type SessionModule struct { Module Export []OpfResults Parameters []Param `json:"parameters"` History []string `json:"history"` External []string `json:"external"` Results []string }
func (*SessionModule) CheckRequired ¶
func (module *SessionModule) CheckRequired() bool
func (*SessionModule) CreateNewParam ¶
func (*SessionModule) GetAllParameters ¶
func (module *SessionModule) GetAllParameters() []Param
func (*SessionModule) GetExport ¶
func (module *SessionModule) GetExport() []OpfResults
func (*SessionModule) GetExternal ¶
func (module *SessionModule) GetExternal() []string
func (*SessionModule) GetParameter ¶
func (module *SessionModule) GetParameter(name string) (Param, error)
func (*SessionModule) GetResults ¶
func (module *SessionModule) GetResults() []string
func (*SessionModule) ListArguments ¶
func (module *SessionModule) ListArguments()
func (*SessionModule) SetExport ¶
func (module *SessionModule) SetExport(result OpfResults)
func (*SessionModule) SetParameter ¶
func (module *SessionModule) SetParameter(name string, value string) (bool, error)
func (*SessionModule) WithProgram ¶
func (module *SessionModule) WithProgram(name string) bool
type Stream ¶
type Stream struct { Sess *Session `json:"-"` Verbose bool `json:"verbose"` CSV bool `json:"csv"` History map[string]string `json:"history"` }
func (*Stream) GenerateTable ¶
func (*Stream) WithoutDate ¶
type Target ¶
type Target struct { Id int `json:"-" gorm:"primary_key:yes;column:id;AUTO_INCREMENT"` SessionId int `json:"-" gorm:"column:session_id"` TargetId string `json:"id" gorm:"column:target_id"` Sess *Session `json:"-" gorm:"-"` Name string `json:"name" gorm:"column:target_name"` Type string `json:"type" gorm:"column:target_type"` Results map[string][]*OpfResults `sql:"-" json:"results"` TargetLinked []Linking `json:"target_linked" sql:"-"` Notes []Note `json:"notes" sql:"-"` Tags []Tags `json:"tags" sql:"-"` }
func (*Target) GetFormatedResults ¶
func (*Target) GetLastResults ¶
func (*Target) GetModuleResults ¶
func (target *Target) GetModuleResults(name string) ([]*OpfResults, error)
func (*Target) GetResults ¶
func (target *Target) GetResults() map[string][]*OpfResults
func (*Target) GetSeparator ¶
func (*Target) NewResult ¶
func (target *Target) NewResult() *OpfResults
func (*Target) PushLinked ¶
func (*Target) ResultExist ¶
func (target *Target) ResultExist(result OpfResults) bool
type Tracking ¶
type Tracking struct { Id string `json:"id"` Session *Session `json:"-"` Position TrackingPosition `json:"position"` Identifier string `json:"identifier"` Description string `json:"description"` Picture string `json:"picture"` Memories []TrackingPosition `json:"memories"` IsHistory bool `json:"is_history"` Time time.Time `json:"time"` }
func CreateTrackerFromValue ¶
func (*Tracking) GetDescription ¶
func (*Tracking) GetHistories ¶
func (*Tracking) GetIdentifier ¶
func (*Tracking) GetLatitude ¶
func (*Tracking) GetLongitude ¶
func (*Tracking) GetMemories ¶
func (t *Tracking) GetMemories() []TrackingPosition
func (*Tracking) Synchronize ¶
func (t *Tracking) Synchronize()
func (*Tracking) ViewPositions ¶
func (t *Tracking) ViewPositions()
type TrackingPosition ¶
type TrackingPosition struct { Latitude string `json:"latitude"` Longitude string `json:"longitude"` Bounds Bounds `json:"bounds"` Time time.Time `json:"time"` }
func (*TrackingPosition) ToBounds ¶
func (tp *TrackingPosition) ToBounds(m float64)
Source Files ¶
- alias.go
- cache.go
- client.go
- command.go
- connection.go
- event.go
- filter.go
- helper.go
- import.go
- information.go
- instance.go
- interval.go
- menu.go
- module.go
- monitor.go
- note.go
- notification.go
- readline.go
- result.go
- session.go
- session_target.go
- source.go
- stream.go
- tag.go
- target.go
- tracking.go
- user.go
- webhook.go
Click to show internal directories.
Click to hide internal directories.