Help us shape the future of Go! Take the 2026 Go Developer Survey

queue

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "Queue"

Variables

View Source
var MemberExistsError = errors.New("member already exists")
View Source
var SobjectExistsError = errors.New("sobject already exists")

Functions

This section is empty.

Types

type PublicGroups

type PublicGroups struct {
	PublicGroup []string `xml:"publicGroup"`
}

func (PublicGroups) Tidy

func (publicGroups PublicGroups) Tidy()

type Queue

type Queue struct {
	metadata.MetadataInfo
	XMLName     xml.Name `xml:"Queue"`
	Xmlns       string   `xml:"xmlns,attr"`
	Description *struct {
		Text string `xml:",chardata"`
	} `xml:"description"`
	DoesSendEmailToMembers struct {
		Text string `xml:",chardata"`
	} `xml:"doesSendEmailToMembers"`
	Email *string `xml:"email"`
	Name  struct {
		Text string `xml:",chardata"`
	} `xml:"name"`
	QueueMembers struct {
		PublicGroups        *PublicGroups        `xml:"publicGroups"`
		RoleAndSubordinates *RoleAndSubordinates `xml:"roleAndSubordinates"`
		Roles               *Roles               `xml:"roles"`
		Users               *Users               `xml:"users"`
	} `xml:"queueMembers"`
	QueueSobject SobjectTypes `xml:"queueSobject"`
}

func Open

func Open(path string) (*Queue, error)

func (*Queue) AddPublicGroup

func (q *Queue) AddPublicGroup(memberName string) error

func (*Queue) AddRole

func (q *Queue) AddRole(memberName string) error

func (*Queue) AddRoleAndSubordinate

func (q *Queue) AddRoleAndSubordinate(memberName string) error

func (*Queue) AddSobject

func (q *Queue) AddSobject(sobject string) error

func (*Queue) AddUser

func (q *Queue) AddUser(memberName string) error

func (*Queue) SetMetadata

func (c *Queue) SetMetadata(m metadata.MetadataInfo)

func (*Queue) Type

func (c *Queue) Type() metadata.MetadataType

type RoleAndSubordinates

type RoleAndSubordinates struct {
	RoleAndSubordinate []string `xml:"roleAndSubordinate"`
}

func (RoleAndSubordinates) Tidy

func (roleAndSubordinates RoleAndSubordinates) Tidy()

type Roles

type Roles struct {
	Role []string `xml:"role"`
}

func (Roles) Tidy

func (roles Roles) Tidy()

type SobjectType

type SobjectType struct {
	SobjectType string `xml:"sobjectType"`
}

type SobjectTypes

type SobjectTypes []SobjectType

func (SobjectTypes) Tidy

func (sobjectTypes SobjectTypes) Tidy()

type Users

type Users struct {
	User []string `xml:"user"`
}

func (Users) Tidy

func (users Users) Tidy()

Jump to

Keyboard shortcuts

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