Documentation
¶
Index ¶
- Constants
- func CreateLogManager(storageType string, serverAddr string, serverToken string) (*data.LogManager, *data.Services, error)
- func HandleToggleCollapsed(ctx context.Context, appState *app.State, logManager *data.LogManager, ...) error
- func Main(args []string) error
- func RenderToString(entries []*models.LogEntryView, showID bool, simulateTTY bool) string
- type ExportData
- type ExportEntry
- type ExportNote
- type Model
- type StorageConfig
Constants ¶
View Source
const DEFAULT_STORAGE = "file"
Variables ¶
This section is empty.
Functions ¶
func CreateLogManager ¶ added in v0.0.3
func HandleToggleCollapsed ¶ added in v0.0.30
func HandleToggleCollapsed(ctx context.Context, appState *app.State, logManager *data.LogManager, entryType models.LogEntryViewType, id int64) error
func RenderToString ¶ added in v0.0.12
func RenderToString(entries []*models.LogEntryView, showID bool, simulateTTY bool) string
Types ¶
type ExportData ¶ added in v0.0.3
type ExportData struct {
Entries []ExportEntry `json:"entries"`
}
type ExportEntry ¶ added in v0.0.3
type ExportEntry struct {
Data *models.LogEntry `json:"data"`
Notes []ExportNote `json:"notes"`
}
type ExportNote ¶ added in v0.0.3
type StorageConfig ¶ added in v0.0.10
StorageConfig holds storage-related configuration values
func ApplyConfigDefaults ¶ added in v0.0.10
func ApplyConfigDefaults(storageType, serverAddr, serverToken string) (StorageConfig, error)
ApplyConfigDefaults loads saved config and applies defaults to storage settings
Source Files
¶
Click to show internal directories.
Click to hide internal directories.