types

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ModeDevelop = Mode{"develop"} // 可用:未来的未被安排的hour
	ModeTest    = Mode{"test"}    // 不可用:过去的hour
	ModeProduct = Mode{"product"} // 已安排训练:过去或未来已被安排训练计划的
)

Functions

This section is empty.

Types

type Mode

type Mode struct {
	// contains filtered or unexported fields
}

func NewModeFromString

func NewModeFromString(modeStr string) Mode

func (Mode) ErrInvaild

func (m Mode) ErrInvaild() error

func (Mode) Is

func (m Mode) Is(expect Mode) bool

func (Mode) IsValid

func (m Mode) IsValid() bool

func (Mode) IsZero

func (m Mode) IsZero() bool

func (Mode) String

func (m Mode) String() string

type SrvInfo

type SrvInfo struct {
	ID      string
	Name    string
	Version string
}

Jump to

Keyboard shortcuts

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