core

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broxygui

type Broxygui struct {
	widgets.QMainWindow
	// contains filtered or unexported fields
}

func (*Broxygui) AddGuiModule

func (g *Broxygui) AddGuiModule(m GuiModule)

func (*Broxygui) ShowErrorMessage

func (g *Broxygui) ShowErrorMessage(message string)

type Config

type Config struct {
	Address       string
	Port          int
	Interceptor   bool
	ReqIntercept  bool
	RespIntercept bool
}

type ControllerModule

type ControllerModule interface {
	ExecCommand(string, ...interface{})
	GetModule() Module
	GetGui() GuiModule
	Name() string
}

type GuiModule

type GuiModule interface {
	GetModuleGui() widgets.QWidget_ITF
	Name() string
}

type Log

type Log struct {
	Type       string
	ModuleName string
	Time       string
	Message    string
}

func (*Log) ToString

func (l *Log) ToString() string

type Module

type Module interface {
	Name() string
	Description() string
	Status() bool
	Start() error
	Stop() error
}

Module interface

type Session

type Session struct {

	// represent the session on FS
	Path string

	// List of modules
	Modules []ControllerModule

	// Logs
	Logs []Log

	MainGui *Broxygui
	Config  *Config

	LogC chan Log

	QApp *widgets.QApplication
}

func LoadSession

func LoadSession(path string) *Session

func NewSession

func NewSession(path string, qa *widgets.QApplication) *Session

func (*Session) Debug

func (s *Session) Debug(mod string, message string)

func (*Session) Err

func (s *Session) Err(mod string, message string)

func (*Session) Exec

func (s *Session) Exec(m string, f string, a ...interface{})

func (*Session) Info

func (s *Session) Info(mod string, message string)

func (*Session) LoadModule

func (s *Session) LoadModule(c ControllerModule)

Jump to

Keyboard shortcuts

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