project

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(p *Project) 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 Project

type Project struct {
	Id          string    `json:"id" xorm:"pk"`
	Icon        string    `json:"icon,omitempty"`        //图标
	Name        string    `json:"name,omitempty"`        //名称
	Description string    `json:"description,omitempty"` //说明
	Keywords    []string  `json:"keywords,omitempty"`    //关键字
	Disabled    bool      `json:"disabled,omitempty"`
	Created     time.Time `json:"created" xorm:"created"`
	// contains filtered or unexported fields
}

func Get

func Get(id string) *Project

type ProjectUser added in v4.0.18

type ProjectUser struct {
	ProjectId string    `json:"project_id" xorm:"pk"`
	UserId    string    `json:"user_id" xorm:"pk"`
	User      string    `json:"user,omitempty" xorm:"<-"`
	Admin     bool      `json:"admin,omitempty"`
	Disabled  bool      `json:"disabled,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