model

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthAction

type AuthAction string
const (
	READ         AuthAction = "r"
	WRITE        AuthAction = "w"
	EXECUTE      AuthAction = "x"
	ADMINISTRATE AuthAction = "a"
)

func (AuthAction) String

func (this AuthAction) String() string

func (AuthAction) ToPermission added in v0.0.9

func (this AuthAction) ToPermission() client.Permission

type ListOptions added in v0.0.9

type ListOptions struct {
	Ids        []string //filter; ignores limit/offset if Ids != nil; ignored if Ids == nil; Ids == []string{} will return an empty list;
	Search     string
	Limit      int64      //default 100, will be ignored if 'ids' is set (Ids != nil)
	Offset     int64      //default 0, will be ignored if 'ids' is set (Ids != nil)
	SortBy     string     //default name.asc
	Permission AuthAction //defaults to read
}

type Process

type Process struct {
	Id              string `json:"_id" bson:"_id"`
	Name            string `json:"name" bson:"name"`
	Date            int64  `json:"date" bson:"date"`
	Owner           string `json:"owner" bson:"owner"`
	BpmnXml         string `json:"bpmn_xml" bson:"bpmn_xml"`
	SvgXml          string `json:"svgXML" bson:"svgXML"`
	Publish         bool   `json:"publish" bson:"publish"`
	PublishDate     string `json:"publish_date" bson:"publish_date"`
	Description     string `json:"description" bson:"description"`
	LastUpdatedUnix int64  `json:"last_updated_unix" bson:"last_updated_unix"`
}

func (*Process) Validate

func (process *Process) Validate() (err error)

type PublicCommand

type PublicCommand struct {
	Publish     bool   `json:"publish"`
	Description string `json:"description"`
}

Jump to

Keyboard shortcuts

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