ctx

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctx

type Ctx struct {
	Screen  [2]int
	Content [2]int
	Config  *config.Config
	EmbedFS *embed.FS
	Systems []*system.System
	Loading bool
	Logger  *zap.SugaredLogger
	Theme   *theme.Theme
	// contains filtered or unexported fields
}

func New

func New(
	efs *embed.FS,
	cfg *config.Config,
	logger *zap.SugaredLogger,
) Ctx

func (*Ctx) AddSystem

func (c *Ctx) AddSystem(sys *system.System) error

func (*Ctx) GetCurrentForum

func (c *Ctx) GetCurrentForum() forum.Forum

func (*Ctx) GetCurrentSystem

func (c *Ctx) GetCurrentSystem() int

func (*Ctx) NumSystems

func (c *Ctx) NumSystems() int

func (*Ctx) SetCurrentForum

func (c *Ctx) SetCurrentForum(f forum.Forum)

func (*Ctx) SetCurrentSystem

func (c *Ctx) SetCurrentSystem(idx int)

Jump to

Keyboard shortcuts

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