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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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