Documentation ¶
Index ¶
- Variables
- type Activity
- type CLILog
- type Milestone
- type MilestoneByTime
- type Milestones
- type Misato
- func (m *Misato) GetActivities() []*Activity
- func (m *Misato) GetByTime(start, stop int) (result []CLILog, err error)
- func (m *Misato) GetMileStones() []*Milestone
- func (m *Misato) PutActivity(activity Activity, id string) error
- func (m *Misato) PutCommand(clilog CLILog, id string) error
- func (m *Misato) PutMileStone(milestone Milestone, id string) error
- func (m *Misato) SearchCommands(search string) (result map[string][]string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoFiles = errors.New("No MisatoFiles available in this location") ErrMissingInformation = errors.New("Invalid entries - fields are missing") )
View Source
var (
ErrMissingFields = errors.New("Missing Fields")
)
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct { User string `json:"user"` Timestamp int `json:"time,string"` Type string `json:"type"` Subject string `json:"subject"` Data string `json:"data"` }
Activities
func ActivityFromJson ¶
CLILogFromJson returns a CLILog from
type CLILog ¶
type CLILog struct { User string `json:"user"` Command string `json:"command"` TermUUID string `json:"termuuid"` Timestamp int `json:"time,string"` }
CLILOg is a struct containing all relevant information about alll the things
func CLILogFromJson ¶
CLILogFromJson returns a CLILog from
type Milestone ¶
type Milestone struct { Timestamp int `json:"time,string"` User string `json:"user"` Milestone string `json:"milestone"` }
Milestone is an information struct for storing milestones :D
type MilestoneByTime ¶
type MilestoneByTime struct{ Milestones }
func (MilestoneByTime) Less ¶
func (s MilestoneByTime) Less(i, j int) bool
type Milestones ¶
type Milestones []*Milestone
func (Milestones) Len ¶
func (ms Milestones) Len() int
func (Milestones) Swap ¶
func (ms Milestones) Swap(i, j int)
type Misato ¶
type Misato struct {
Dir string
}
Misato handles the search for commands
func (*Misato) GetMileStones ¶
aaa GetMileStonesViewer
func (*Misato) PutCommand ¶
PutCommands saves the Command
func (*Misato) PutMileStone ¶
PutMileStone saves
Click to show internal directories.
Click to hide internal directories.