ticketing_systemv1

package
v0.0.0-...-a04e50b Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Priority_name = map[int32]string{
		0: "PRIORITY_UNSPECIFIED",
		1: "PRIORITY_LOW",
		2: "PRIORITY_MEDIUM",
		3: "PRIORITY_HIGH",
	}
	Priority_value = map[string]int32{
		"PRIORITY_UNSPECIFIED": 0,
		"PRIORITY_LOW":         1,
		"PRIORITY_MEDIUM":      2,
		"PRIORITY_HIGH":        3,
	}
)

Enum value maps for Priority.

View Source
var File_tests_go_samples_ticketing_system_v1_ticketing_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AddCommentRequest

type AddCommentRequest struct {
	TicketId string `protobuf:"bytes,1,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"`
	Comment  string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

AddCommentRequest represents the request to add a comment to a ticket

func (*AddCommentRequest) Descriptor deprecated

func (*AddCommentRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddCommentRequest.ProtoReflect.Descriptor instead.

func (*AddCommentRequest) GetComment

func (x *AddCommentRequest) GetComment() string

func (*AddCommentRequest) GetTicketId

func (x *AddCommentRequest) GetTicketId() string

func (*AddCommentRequest) ProtoMessage

func (*AddCommentRequest) ProtoMessage()

func (*AddCommentRequest) ProtoReflect

func (x *AddCommentRequest) ProtoReflect() protoreflect.Message

func (*AddCommentRequest) Reset

func (x *AddCommentRequest) Reset()

func (*AddCommentRequest) String

func (x *AddCommentRequest) String() string

type AddCommentResponse

type AddCommentResponse struct {
	Ticket *Ticket `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"`
	// contains filtered or unexported fields
}

AddCommentResponse represents the response for adding a comment to a ticket

func (*AddCommentResponse) Descriptor deprecated

func (*AddCommentResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddCommentResponse.ProtoReflect.Descriptor instead.

func (*AddCommentResponse) GetTicket

func (x *AddCommentResponse) GetTicket() *Ticket

func (*AddCommentResponse) ProtoMessage

func (*AddCommentResponse) ProtoMessage()

func (*AddCommentResponse) ProtoReflect

func (x *AddCommentResponse) ProtoReflect() protoreflect.Message

func (*AddCommentResponse) Reset

func (x *AddCommentResponse) Reset()

func (*AddCommentResponse) String

func (x *AddCommentResponse) String() string

type CreateTicketRequest

type CreateTicketRequest struct {
	Ticket *Ticket `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"`
	// contains filtered or unexported fields
}

CreateTicketRequest represents the request to create a ticket

func (*CreateTicketRequest) Descriptor deprecated

func (*CreateTicketRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateTicketRequest.ProtoReflect.Descriptor instead.

func (*CreateTicketRequest) GetTicket

func (x *CreateTicketRequest) GetTicket() *Ticket

func (*CreateTicketRequest) ProtoMessage

func (*CreateTicketRequest) ProtoMessage()

func (*CreateTicketRequest) ProtoReflect

func (x *CreateTicketRequest) ProtoReflect() protoreflect.Message

func (*CreateTicketRequest) Reset

func (x *CreateTicketRequest) Reset()

func (*CreateTicketRequest) String

func (x *CreateTicketRequest) String() string

type CreateTicketResponse

type CreateTicketResponse struct {
	Ticket *Ticket `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"`
	// contains filtered or unexported fields
}

CreateTicketResponse represents the response for creating a ticket

func (*CreateTicketResponse) Descriptor deprecated

func (*CreateTicketResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateTicketResponse.ProtoReflect.Descriptor instead.

func (*CreateTicketResponse) GetTicket

func (x *CreateTicketResponse) GetTicket() *Ticket

func (*CreateTicketResponse) ProtoMessage

func (*CreateTicketResponse) ProtoMessage()

func (*CreateTicketResponse) ProtoReflect

func (x *CreateTicketResponse) ProtoReflect() protoreflect.Message

func (*CreateTicketResponse) Reset

func (x *CreateTicketResponse) Reset()

func (*CreateTicketResponse) String

func (x *CreateTicketResponse) String() string

type GetTicketByIDRequest

type GetTicketByIDRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

GetTicketByIDRequest represents the request to get a ticket by ID

func (*GetTicketByIDRequest) Descriptor deprecated

func (*GetTicketByIDRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetTicketByIDRequest.ProtoReflect.Descriptor instead.

func (*GetTicketByIDRequest) GetId

func (x *GetTicketByIDRequest) GetId() string

func (*GetTicketByIDRequest) ProtoMessage

func (*GetTicketByIDRequest) ProtoMessage()

func (*GetTicketByIDRequest) ProtoReflect

func (x *GetTicketByIDRequest) ProtoReflect() protoreflect.Message

func (*GetTicketByIDRequest) Reset

func (x *GetTicketByIDRequest) Reset()

func (*GetTicketByIDRequest) String

func (x *GetTicketByIDRequest) String() string

type GetTicketByIDResponse

type GetTicketByIDResponse struct {
	Ticket *Ticket `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"`
	// contains filtered or unexported fields
}

GetTicketByIDResponse represents the response for getting a ticket by ID

func (*GetTicketByIDResponse) Descriptor deprecated

func (*GetTicketByIDResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetTicketByIDResponse.ProtoReflect.Descriptor instead.

func (*GetTicketByIDResponse) GetTicket

func (x *GetTicketByIDResponse) GetTicket() *Ticket

func (*GetTicketByIDResponse) ProtoMessage

func (*GetTicketByIDResponse) ProtoMessage()

func (*GetTicketByIDResponse) ProtoReflect

func (x *GetTicketByIDResponse) ProtoReflect() protoreflect.Message

func (*GetTicketByIDResponse) Reset

func (x *GetTicketByIDResponse) Reset()

func (*GetTicketByIDResponse) String

func (x *GetTicketByIDResponse) String() string

type ListTicketsRequest

type ListTicketsRequest struct {
	// contains filtered or unexported fields
}

ListTicketsRequest represents the request to list tickets

func (*ListTicketsRequest) Descriptor deprecated

func (*ListTicketsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListTicketsRequest.ProtoReflect.Descriptor instead.

func (*ListTicketsRequest) ProtoMessage

func (*ListTicketsRequest) ProtoMessage()

func (*ListTicketsRequest) ProtoReflect

func (x *ListTicketsRequest) ProtoReflect() protoreflect.Message

func (*ListTicketsRequest) Reset

func (x *ListTicketsRequest) Reset()

func (*ListTicketsRequest) String

func (x *ListTicketsRequest) String() string

type ListTicketsResponse

type ListTicketsResponse struct {
	Tickets []*Ticket `protobuf:"bytes,1,rep,name=tickets,proto3" json:"tickets,omitempty"`
	// contains filtered or unexported fields
}

ListTicketsResponse represents the response containing a list of tickets

func (*ListTicketsResponse) Descriptor deprecated

func (*ListTicketsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListTicketsResponse.ProtoReflect.Descriptor instead.

func (*ListTicketsResponse) GetTickets

func (x *ListTicketsResponse) GetTickets() []*Ticket

func (*ListTicketsResponse) ProtoMessage

func (*ListTicketsResponse) ProtoMessage()

func (*ListTicketsResponse) ProtoReflect

func (x *ListTicketsResponse) ProtoReflect() protoreflect.Message

func (*ListTicketsResponse) Reset

func (x *ListTicketsResponse) Reset()

func (*ListTicketsResponse) String

func (x *ListTicketsResponse) String() string

type Priority

type Priority int32

Priority represents the priority level of a ticket

const (
	Priority_PRIORITY_UNSPECIFIED Priority = 0
	Priority_PRIORITY_LOW         Priority = 1
	Priority_PRIORITY_MEDIUM      Priority = 2
	Priority_PRIORITY_HIGH        Priority = 3
)

func (Priority) Descriptor

func (Priority) Descriptor() protoreflect.EnumDescriptor

func (Priority) Enum

func (x Priority) Enum() *Priority

func (Priority) EnumDescriptor deprecated

func (Priority) EnumDescriptor() ([]byte, []int)

Deprecated: Use Priority.Descriptor instead.

func (Priority) Number

func (x Priority) Number() protoreflect.EnumNumber

func (Priority) String

func (x Priority) String() string

func (Priority) Type

type Ticket

type Ticket struct {
	Id         string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Subject    string   `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
	Status     string   `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	Priority   Priority `protobuf:"varint,4,opt,name=priority,proto3,enum=tests.go.samples.ticketing_system.v1.Priority" json:"priority,omitempty"`
	AssignedTo string   `protobuf:"bytes,5,opt,name=assigned_to,json=assignedTo,proto3" json:"assigned_to,omitempty"`
	Comments   []string `protobuf:"bytes,6,rep,name=comments,proto3" json:"comments,omitempty"`
	Category   string   `protobuf:"bytes,7,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

Ticket represents a support ticket

func (*Ticket) Descriptor deprecated

func (*Ticket) Descriptor() ([]byte, []int)

Deprecated: Use Ticket.ProtoReflect.Descriptor instead.

func (*Ticket) GetAssignedTo

func (x *Ticket) GetAssignedTo() string

func (*Ticket) GetCategory

func (x *Ticket) GetCategory() string

func (*Ticket) GetComments

func (x *Ticket) GetComments() []string

func (*Ticket) GetId

func (x *Ticket) GetId() string

func (*Ticket) GetPriority

func (x *Ticket) GetPriority() Priority

func (*Ticket) GetStatus

func (x *Ticket) GetStatus() string

func (*Ticket) GetSubject

func (x *Ticket) GetSubject() string

func (*Ticket) ProtoMessage

func (*Ticket) ProtoMessage()

func (*Ticket) ProtoReflect

func (x *Ticket) ProtoReflect() protoreflect.Message

func (*Ticket) Reset

func (x *Ticket) Reset()

func (*Ticket) String

func (x *Ticket) String() string

type UpdateTicketStatusRequest

type UpdateTicketStatusRequest struct {
	TicketId  string `protobuf:"bytes,1,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"`
	NewStatus string `protobuf:"bytes,2,opt,name=new_status,json=newStatus,proto3" json:"new_status,omitempty"`
	// contains filtered or unexported fields
}

UpdateTicketStatusRequest represents the request to update the status of a ticket

func (*UpdateTicketStatusRequest) Descriptor deprecated

func (*UpdateTicketStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateTicketStatusRequest.ProtoReflect.Descriptor instead.

func (*UpdateTicketStatusRequest) GetNewStatus

func (x *UpdateTicketStatusRequest) GetNewStatus() string

func (*UpdateTicketStatusRequest) GetTicketId

func (x *UpdateTicketStatusRequest) GetTicketId() string

func (*UpdateTicketStatusRequest) ProtoMessage

func (*UpdateTicketStatusRequest) ProtoMessage()

func (*UpdateTicketStatusRequest) ProtoReflect

func (*UpdateTicketStatusRequest) Reset

func (x *UpdateTicketStatusRequest) Reset()

func (*UpdateTicketStatusRequest) String

func (x *UpdateTicketStatusRequest) String() string

type UpdateTicketStatusResponse

type UpdateTicketStatusResponse struct {
	Ticket *Ticket `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"`
	// contains filtered or unexported fields
}

UpdateTicketStatusResponse represents the response for updating the status of a ticket

func (*UpdateTicketStatusResponse) Descriptor deprecated

func (*UpdateTicketStatusResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateTicketStatusResponse.ProtoReflect.Descriptor instead.

func (*UpdateTicketStatusResponse) GetTicket

func (x *UpdateTicketStatusResponse) GetTicket() *Ticket

func (*UpdateTicketStatusResponse) ProtoMessage

func (*UpdateTicketStatusResponse) ProtoMessage()

func (*UpdateTicketStatusResponse) ProtoReflect

func (*UpdateTicketStatusResponse) Reset

func (x *UpdateTicketStatusResponse) Reset()

func (*UpdateTicketStatusResponse) String

func (x *UpdateTicketStatusResponse) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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