structs

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	ID                primitive.ObjectID `bson:"_id,omitempty"`
	Name              string             `bson:"Name"`
	AvailabilityStart string             `bson:"AvailabilityStart"`
	AvailabilityEnd   string             `bson:"AvailabilityEnd"`
	MaximumJobs       int32              `bson:"MaximumJobs"`
	Priority          int32              `bson:"Priority"`
	Online            bool               `bson:"Online"`
	IgnoreOnline      bool               `bson:"IgnoreOnline"`
}

Client is a target machine for Avior

type DBRef

type DBRef struct {
	Ref interface{} `bson:"$ref,omitempty"`
	ID  interface{} `bson:"$id"`
	DB  interface{} `bson:"$db"`
}

DBRef wrapper to expose mongodb's references within the Go driver

type Field

type Field struct {
	ID    primitive.ObjectID `bson:"_id,omitempty"`
	Value string             `bson:"Name"`
}

type Job

type Job struct {
	ID                   primitive.ObjectID `bson:"_id,omitempty"`
	Path                 string             `bson:"Path"`
	Name                 string             `bson:"Name"`
	Subtitle             string             `bson:"Subtitle"`
	CustomParameters     []string           `bson:"CustomParameters,omitempty"`
	AssignedClient       DBRef              `bson:"AssignedClient"`
	AssignedClientLoaded *Client            `bson:"AssignedClientLoaded,omitempty" json:"-"`
}

Job is the Avior encode job database binding

Jump to

Keyboard shortcuts

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