templates

package
v0.0.0-...-2266a13 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationTemplate

type ApplicationTemplate struct {
	Template *template.Template
	Name     string
}

func NewTemplate

func NewTemplate(name string, filenames ...string) *ApplicationTemplate

func (*ApplicationTemplate) Create

func (t *ApplicationTemplate) Create(name string, filenames ...string) error

func (*ApplicationTemplate) Execute

func (t *ApplicationTemplate) Execute(obj any, w io.Writer) error

type Device

type Device struct {
	Name string
	ID   string
	IP   string
	Port string
}

type IDE

type IDE struct {
	Devices      []*Device
	ActiveDevice *Device
	NavTabs      []*Tab
	FooterTabs   []*Tab
	Session      *models.SessionObject
}

type StringWriter

type StringWriter struct {
	Str string
}

func (*StringWriter) Write

func (s *StringWriter) Write(p []byte) (int, error)

type Tab

type Tab struct {
	Name   string
	Active bool
	Link   string
}

type Template

type Template interface {
	Create(string, ...string) error
	Execute(obj *models.SessionObject, w io.Writer) error
}

type Terminal

type Terminal struct {
	Current string
	Buffer  []string
}

type Timeline

type Timeline struct {
	X       int
	Y       int
	Width   int
	Height  int
	Active  bool
	Scroll  float32
	MaxRSSI []int
}

Jump to

Keyboard shortcuts

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