space

package
v4.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

func From(m *Space) error

func Load

func Load(id string) error

func Shutdown added in v4.1.0

func Shutdown() error

func Startup added in v4.1.0

func Startup() error

func Startup2 added in v4.1.2

func Startup2() error

Types

type Space

type Space struct {
	Id          string `json:"id" xorm:"pk"`
	Name        string `json:"name,omitempty"`        //名称
	Description string `json:"description,omitempty"` //说明

	ProjectId string `json:"project_id,omitempty" xorm:"index"`
	Project   string `json:"project,omitempty" xorm:"<-"`

	ParentId string `json:"parent_id,omitempty" xorm:"index"`
	Parent   string `json:"parent,omitempty" xorm:"<-"`

	Disabled bool      `json:"disabled,omitempty"`
	Created  time.Time `json:"created" xorm:"created"`
	// contains filtered or unexported fields
}

func Get

func Get(id string) *Space

func (*Space) PutDevice

func (s *Space) PutDevice(name string, dev *device.Device)

type SpaceDevice added in v4.0.18

type SpaceDevice struct {
	SpaceId  string    `json:"space_id" xorm:"pk"`
	DeviceId string    `json:"device_id" xorm:"pk"`
	Device   string    `json:"device,omitempty" xorm:"<-"`
	Name     string    `json:"name,omitempty"` //编程别名
	Created  time.Time `json:"created" xorm:"created"`
}

Jump to

Keyboard shortcuts

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