dcuinfo.go 454 Bytes
Newer Older
liming6's avatar
liming6 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package tui

import (
	"get-container/gpu"

	tea "github.com/charmbracelet/bubbletea"
)

type ModelDCUInfo struct {
	DCUNum         int // dcu数量
	width, height  int // 终端的尺寸
	DCUStaticInfo  []gpu.SMIAllOutput
	DCURunningInfo []gpu.DCURunningInfo
}

func (m *ModelDCUInfo) Init() tea.Cmd {
	return nil
}

func (m *ModelDCUInfo) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
	return m, nil
}

func (m *ModelDCUInfo) View() string {
	return ""
}