Documentation ¶
Overview ¶
Package history provides the core part for services history data management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppletLike ¶
AppletLike defines a small applet like interface.
type History ¶
type History struct { File string // Path to history file. Max int // max number of items in history. // contains filtered or unexported fields }
History defines the core part for services history data management.
func New ¶
func New(app AppletLike, filename string) *History
New creates a new history manager to save applets data.
func (*History) SetHistoryFile ¶
SetHistoryFile sets the location of the history file.
func (*History) SetHistorySize ¶
SetHistorySize sets the size of the history. It will trim history size if needed.
-1 : unlimited 0 : disabled >=1 : limit set.
Click to show internal directories.
Click to hide internal directories.