log

package
v1.0.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	core.ControllerModule
	Module *Log
	Gui    *Gui
	Sess   *core.Session
	// contains filtered or unexported fields
}

Controller represents the controller of the log module

func LoadLogModule

func LoadLogModule(s *core.Session) *Controller

LoadLogModule loads the log module in the given session

func NewController

func NewController(m *Log, g *Gui, s *core.Session) *Controller

NewController returns a controller of the log module

func (*Controller) ExecCommand

func (c *Controller) ExecCommand(m string, args ...interface{})

ExecCommand execs commands submitted by other modules

func (*Controller) GetGui

func (c *Controller) GetGui() core.GuiModule

GetGui returns the Gui of the log module

func (*Controller) GetModule

func (c *Controller) GetModule() core.Module

GetModule returns the module of the log module

type Gui

type Gui struct {
	core.GuiModule

	Sess *core.Session
	// contains filtered or unexported fields
}

Gui represents the Gui of the log module

func NewGui

func NewGui(s *core.Session) *Gui

NewGui returns a Gui of the main log module

func (*Gui) GetModuleGui

func (g *Gui) GetModuleGui() interface{}

GetModuleGui returns the Gui for the current module

func (*Gui) GetSettings

func (g *Gui) GetSettings() interface{}

func (*Gui) SetTableModel

func (g *Gui) SetTableModel(m *model.SortFilterModel)

SetTableModel sets the table model along with some column width to use in the history table

func (*Gui) Title

func (g *Gui) Title() string

Title returns the time of this Gui

type Log

type Log struct {
	core.Module
}

Log represents the log module

func NewLog

func NewLog(s *core.Session) *Log

NewLog creates a new log module

func (*Log) Name

func (m *Log) Name() string

Name returns the name of the current module

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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