inputs

package
v0.0.0-...-74d7545 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SearchForUser

func SearchForUser(queryString string) []string

Types

type Assignee

type Assignee struct {
	Name string
	Role string
}

type FileInfo

type FileInfo struct {
	SHA1    string
	Name    string
	Size    string
	Encoded string
}

FileInfo encapsulates information about an uploaded file

func (*FileInfo) MarshalBase64

func (fi *FileInfo) MarshalBase64() ([]byte, error)

MarshalBase64 will encode the fields of this object as a base 64 encoded url key value string

func (*FileInfo) UnmarshalBase64

func (fi *FileInfo) UnmarshalBase64(in []byte) error

UnmarshalBase64 populate file info fields from a b64 encoded url key value string

type HelpDeskTicket

type HelpDeskTicket struct {
	Summary            string
	ReportedBy         string
	ReportedByCustomer string
	ReportedByUser     string
	CustomerContact    string
	Urgency            string
	Description        string
	Attachments        []*FileInfo
}

HelpDeskTicket is the model for a helpdesk ticket

func HelpdeskTicketFromQuery

func HelpdeskTicketFromQuery(query url.Values) *HelpDeskTicket

HelpdeskTicketFromQuery descodes a help desk ticket model from url query parameters Note, unicode normalization omitted for brevity

func (*HelpDeskTicket) RawQuery

func (t *HelpDeskTicket) RawQuery() string

type SoftwareTicket

type SoftwareTicket struct {
	Summary     string
	Assignees   []Assignee
	IssueType   string
	Description string
	Attachments []*FileInfo
}

SoftwareTicket is the model for a helpdesk ticket

func SoftwareTicketFromQuery

func SoftwareTicketFromQuery(query url.Values) *SoftwareTicket

SoftwareTicketFromQuery descodes a help desk ticket model from url query parameters Note, unicode normalization omitted for brevity

func (*SoftwareTicket) RawQuery

func (t *SoftwareTicket) RawQuery() string

type SystemsTicket

type SystemsTicket struct {
	Summary     string
	Description string
	Attachments []*FileInfo
	Components  []string
}

SystemsTicket is the model for a helpdesk ticket

func SystemsTicketFromQuery

func SystemsTicketFromQuery(query url.Values) *SystemsTicket

SystemsTicketFromQuery descodes a help desk ticket model from url query parameters Note, unicode normalization omitted for brevity

func (*SystemsTicket) RawQuery

func (t *SystemsTicket) RawQuery() string

RawQuery will encode state of systems ticket into a URL encoded query string

Jump to

Keyboard shortcuts

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