Documentation ¶
Index ¶
- Variables
- type AddCommentRequest
- func (*AddCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddCommentRequest) GetComment() string
- func (x *AddCommentRequest) GetTicketId() string
- func (*AddCommentRequest) ProtoMessage()
- func (x *AddCommentRequest) ProtoReflect() protoreflect.Message
- func (x *AddCommentRequest) Reset()
- func (x *AddCommentRequest) String() string
- type AddCommentResponse
- func (*AddCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddCommentResponse) GetTicket() *Ticket
- func (*AddCommentResponse) ProtoMessage()
- func (x *AddCommentResponse) ProtoReflect() protoreflect.Message
- func (x *AddCommentResponse) Reset()
- func (x *AddCommentResponse) String() string
- type CreateTicketRequest
- func (*CreateTicketRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTicketRequest) GetTicket() *Ticket
- func (*CreateTicketRequest) ProtoMessage()
- func (x *CreateTicketRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTicketRequest) Reset()
- func (x *CreateTicketRequest) String() string
- type CreateTicketResponse
- func (*CreateTicketResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTicketResponse) GetTicket() *Ticket
- func (*CreateTicketResponse) ProtoMessage()
- func (x *CreateTicketResponse) ProtoReflect() protoreflect.Message
- func (x *CreateTicketResponse) Reset()
- func (x *CreateTicketResponse) String() string
- type GetTicketByIDRequest
- func (*GetTicketByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetTicketByIDRequest) GetId() string
- func (*GetTicketByIDRequest) ProtoMessage()
- func (x *GetTicketByIDRequest) ProtoReflect() protoreflect.Message
- func (x *GetTicketByIDRequest) Reset()
- func (x *GetTicketByIDRequest) String() string
- type GetTicketByIDResponse
- func (*GetTicketByIDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTicketByIDResponse) GetTicket() *Ticket
- func (*GetTicketByIDResponse) ProtoMessage()
- func (x *GetTicketByIDResponse) ProtoReflect() protoreflect.Message
- func (x *GetTicketByIDResponse) Reset()
- func (x *GetTicketByIDResponse) String() string
- type ListTicketsRequest
- type ListTicketsResponse
- func (*ListTicketsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTicketsResponse) GetTickets() []*Ticket
- func (*ListTicketsResponse) ProtoMessage()
- func (x *ListTicketsResponse) ProtoReflect() protoreflect.Message
- func (x *ListTicketsResponse) Reset()
- func (x *ListTicketsResponse) String() string
- type Priority
- type Ticket
- func (*Ticket) Descriptor() ([]byte, []int)deprecated
- func (x *Ticket) GetAssignedTo() string
- func (x *Ticket) GetCategory() string
- func (x *Ticket) GetComments() []string
- func (x *Ticket) GetId() string
- func (x *Ticket) GetPriority() Priority
- func (x *Ticket) GetStatus() string
- func (x *Ticket) GetSubject() string
- func (*Ticket) ProtoMessage()
- func (x *Ticket) ProtoReflect() protoreflect.Message
- func (x *Ticket) Reset()
- func (x *Ticket) String() string
- type UpdateTicketStatusRequest
- func (*UpdateTicketStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTicketStatusRequest) GetNewStatus() string
- func (x *UpdateTicketStatusRequest) GetTicketId() string
- func (*UpdateTicketStatusRequest) ProtoMessage()
- func (x *UpdateTicketStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateTicketStatusRequest) Reset()
- func (x *UpdateTicketStatusRequest) String() string
- type UpdateTicketStatusResponse
- func (*UpdateTicketStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTicketStatusResponse) GetTicket() *Ticket
- func (*UpdateTicketStatusResponse) ProtoMessage()
- func (x *UpdateTicketStatusResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateTicketStatusResponse) Reset()
- func (x *UpdateTicketStatusResponse) String() string
Constants ¶
This section is empty.
Variables ¶
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.
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
func (Priority) Descriptor ¶
func (Priority) Descriptor() protoreflect.EnumDescriptor
func (Priority) EnumDescriptor
deprecated
func (Priority) Number ¶
func (x Priority) Number() protoreflect.EnumNumber
func (Priority) Type ¶
func (Priority) Type() protoreflect.EnumType
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) GetAssignedTo ¶
func (*Ticket) GetCategory ¶
func (*Ticket) GetComments ¶
func (*Ticket) GetPriority ¶
func (*Ticket) GetSubject ¶
func (*Ticket) ProtoMessage ¶
func (*Ticket) ProtoMessage()
func (*Ticket) ProtoReflect ¶
func (x *Ticket) ProtoReflect() protoreflect.Message
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 (x *UpdateTicketStatusRequest) ProtoReflect() protoreflect.Message
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 (x *UpdateTicketStatusResponse) ProtoReflect() protoreflect.Message
func (*UpdateTicketStatusResponse) Reset ¶
func (x *UpdateTicketStatusResponse) Reset()
func (*UpdateTicketStatusResponse) String ¶
func (x *UpdateTicketStatusResponse) String() string