Documentation ¶
Index ¶
- Constants
- func NewTicketsHandler(svc TicketsHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
- type TicketsClient
- type TicketsHandler
- type UnimplementedTicketsHandler
- func (UnimplementedTicketsHandler) AssignSelf(context.Context, *connect_go.Request[tickets.CreateSelfAssignReq]) (*connect_go.Response[tickets.CreateSelfAssignRes], error)
- func (UnimplementedTicketsHandler) AssignTicket(context.Context, *connect_go.Request[tickets.AssignTicketReq]) (*connect_go.Response[tickets.AssignTicketRes], error)
- func (UnimplementedTicketsHandler) CloseTicket(context.Context, *connect_go.Request[tickets.CloseTicketReq]) (*connect_go.Response[tickets.CloseTicketRes], error)
- func (UnimplementedTicketsHandler) CreateComment(context.Context, *connect_go.Request[tickets.CreateCommentReq]) (*connect_go.Response[tickets.CreateCommentRes], error)
- func (UnimplementedTicketsHandler) CreateSLA(context.Context, *connect_go.Request[tickets.CreateSlaReq]) (*connect_go.Response[tickets.CreateSlaRes], error)
- func (UnimplementedTicketsHandler) CreateTicket(context.Context, *connect_go.Request[tickets.CreateTicketReq]) (*connect_go.Response[tickets.CreateTicketRes], error)
- func (UnimplementedTicketsHandler) EditTicket(context.Context, *connect_go.Request[tickets.EditTicketReq]) (*connect_go.Response[tickets.EditTicketRes], error)
- func (UnimplementedTicketsHandler) EnableProject(context.Context, *connect_go.Request[tickets.EnableProjectReq]) (*connect_go.Response[tickets.EnableProjectRes], error)
- func (UnimplementedTicketsHandler) ListEnabledProjects(context.Context, *connect_go.Request[tickets.ListEnabledProjectsReq]) (*connect_go.Response[tickets.ListEnabledProjectsRes], error)
- func (UnimplementedTicketsHandler) ListSLA(context.Context, *connect_go.Request[tickets.ListSlaReq]) (*connect_go.Response[tickets.ListSlaRes], error)
- func (UnimplementedTicketsHandler) ListSLACondition(context.Context, *connect_go.Request[tickets.ListSlaConditionReq]) (*connect_go.Response[tickets.ListSlaConditionRes], error)
- func (UnimplementedTicketsHandler) ListTicketAuditLog(context.Context, *connect_go.Request[tickets.ListTicketAuditLogReq]) (*connect_go.Response[tickets.ListTicketAuditLogRes], error)
- func (UnimplementedTicketsHandler) ListTickets(context.Context, *connect_go.Request[tickets.ListTicketsReq]) (*connect_go.Response[tickets.ListTicketsRes], error)
- func (UnimplementedTicketsHandler) ReplyComment(context.Context, *connect_go.Request[tickets.ReplyCommentReq]) (*connect_go.Response[tickets.ReplyCommentRes], error)
- func (UnimplementedTicketsHandler) UpdateSLA(context.Context, *connect_go.Request[tickets.UpdateSlaReq]) (*connect_go.Response[tickets.UpdateSlaRes], error)
- func (UnimplementedTicketsHandler) ViewTicket(context.Context, *connect_go.Request[tickets.ViewTicketReq]) (*connect_go.Response[tickets.ViewTicketRes], error)
Constants ¶
const ( // TicketsCreateTicketProcedure is the fully-qualified name of the Tickets's CreateTicket RPC. TicketsCreateTicketProcedure = "/api.v1alpha1.tickets.Tickets/CreateTicket" // TicketsEditTicketProcedure is the fully-qualified name of the Tickets's EditTicket RPC. TicketsEditTicketProcedure = "/api.v1alpha1.tickets.Tickets/EditTicket" // TicketsListTicketsProcedure is the fully-qualified name of the Tickets's ListTickets RPC. TicketsListTicketsProcedure = "/api.v1alpha1.tickets.Tickets/ListTickets" // TicketsAssignTicketProcedure is the fully-qualified name of the Tickets's AssignTicket RPC. TicketsAssignTicketProcedure = "/api.v1alpha1.tickets.Tickets/AssignTicket" // TicketsCloseTicketProcedure is the fully-qualified name of the Tickets's CloseTicket RPC. TicketsCloseTicketProcedure = "/api.v1alpha1.tickets.Tickets/CloseTicket" // TicketsViewTicketProcedure is the fully-qualified name of the Tickets's ViewTicket RPC. TicketsViewTicketProcedure = "/api.v1alpha1.tickets.Tickets/ViewTicket" // TicketsCreateCommentProcedure is the fully-qualified name of the Tickets's CreateComment RPC. TicketsCreateCommentProcedure = "/api.v1alpha1.tickets.Tickets/CreateComment" // TicketsEnableProjectProcedure is the fully-qualified name of the Tickets's EnableProject RPC. TicketsEnableProjectProcedure = "/api.v1alpha1.tickets.Tickets/EnableProject" // TicketsListEnabledProjectsProcedure is the fully-qualified name of the Tickets's // ListEnabledProjects RPC. TicketsListEnabledProjectsProcedure = "/api.v1alpha1.tickets.Tickets/ListEnabledProjects" // TicketsCreateSLAProcedure is the fully-qualified name of the Tickets's CreateSLA RPC. TicketsCreateSLAProcedure = "/api.v1alpha1.tickets.Tickets/CreateSLA" // TicketsListSLAProcedure is the fully-qualified name of the Tickets's ListSLA RPC. TicketsListSLAProcedure = "/api.v1alpha1.tickets.Tickets/ListSLA" // TicketsUpdateSLAProcedure is the fully-qualified name of the Tickets's UpdateSLA RPC. TicketsUpdateSLAProcedure = "/api.v1alpha1.tickets.Tickets/UpdateSLA" // TicketsListSLAConditionProcedure is the fully-qualified name of the Tickets's ListSLACondition // RPC. TicketsListSLAConditionProcedure = "/api.v1alpha1.tickets.Tickets/ListSLACondition" // TicketsReplyCommentProcedure is the fully-qualified name of the Tickets's ReplyComment RPC. TicketsReplyCommentProcedure = "/api.v1alpha1.tickets.Tickets/ReplyComment" // TicketsListTicketAuditLogProcedure is the fully-qualified name of the Tickets's // ListTicketAuditLog RPC. TicketsListTicketAuditLogProcedure = "/api.v1alpha1.tickets.Tickets/ListTicketAuditLog" // TicketsAssignSelfProcedure is the fully-qualified name of the Tickets's AssignSelf RPC. TicketsAssignSelfProcedure = "/api.v1alpha1.tickets.Tickets/AssignSelf" )
These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.
Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.
const (
// TicketsName is the fully-qualified name of the Tickets service.
TicketsName = "api.v1alpha1.tickets.Tickets"
)
Variables ¶
This section is empty.
Functions ¶
func NewTicketsHandler ¶
func NewTicketsHandler(svc TicketsHandler, opts ...connect_go.HandlerOption) (string, http.Handler)
NewTicketsHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.
By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.
Types ¶
type TicketsClient ¶
type TicketsClient interface { // Public Method to create a ticket. CreateTicket(context.Context, *connect_go.Request[tickets.CreateTicketReq]) (*connect_go.Response[tickets.CreateTicketRes], error) // Public Method to edit a ticket. EditTicket(context.Context, *connect_go.Request[tickets.EditTicketReq]) (*connect_go.Response[tickets.EditTicketRes], error) // Public method to list tickets ListTickets(context.Context, *connect_go.Request[tickets.ListTicketsReq]) (*connect_go.Response[tickets.ListTicketsRes], error) // Public method to assign ticket AssignTicket(context.Context, *connect_go.Request[tickets.AssignTicketReq]) (*connect_go.Response[tickets.AssignTicketRes], error) // Public Method to Close a ticket CloseTicket(context.Context, *connect_go.Request[tickets.CloseTicketReq]) (*connect_go.Response[tickets.CloseTicketRes], error) // Public method to view ticket ViewTicket(context.Context, *connect_go.Request[tickets.ViewTicketReq]) (*connect_go.Response[tickets.ViewTicketRes], error) // Public Method to create a Comment. CreateComment(context.Context, *connect_go.Request[tickets.CreateCommentReq]) (*connect_go.Response[tickets.CreateCommentRes], error) // Public method to Enable Project for Ticketing system EnableProject(context.Context, *connect_go.Request[tickets.EnableProjectReq]) (*connect_go.Response[tickets.EnableProjectRes], error) // Public method to List projects enabled for Ticketing system ListEnabledProjects(context.Context, *connect_go.Request[tickets.ListEnabledProjectsReq]) (*connect_go.Response[tickets.ListEnabledProjectsRes], error) // Public Method to create a sla. CreateSLA(context.Context, *connect_go.Request[tickets.CreateSlaReq]) (*connect_go.Response[tickets.CreateSlaRes], error) // Public method to list sla ListSLA(context.Context, *connect_go.Request[tickets.ListSlaReq]) (*connect_go.Response[tickets.ListSlaRes], error) // Public method to update sla UpdateSLA(context.Context, *connect_go.Request[tickets.UpdateSlaReq]) (*connect_go.Response[tickets.UpdateSlaRes], error) // Public method to list sla_condition ListSLACondition(context.Context, *connect_go.Request[tickets.ListSlaConditionReq]) (*connect_go.Response[tickets.ListSlaConditionRes], error) // Public method to list sla_condition ReplyComment(context.Context, *connect_go.Request[tickets.ReplyCommentReq]) (*connect_go.Response[tickets.ReplyCommentRes], error) // Public method to List audit log for Ticketing system ListTicketAuditLog(context.Context, *connect_go.Request[tickets.ListTicketAuditLogReq]) (*connect_go.Response[tickets.ListTicketAuditLogRes], error) // Public method to assign a ticket AssignSelf(context.Context, *connect_go.Request[tickets.CreateSelfAssignReq]) (*connect_go.Response[tickets.CreateSelfAssignRes], error) }
TicketsClient is a client for the api.v1alpha1.tickets.Tickets service.
func NewTicketsClient ¶
func NewTicketsClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) TicketsClient
NewTicketsClient constructs a client for the api.v1alpha1.tickets.Tickets service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.
The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).
type TicketsHandler ¶
type TicketsHandler interface { // Public Method to create a ticket. CreateTicket(context.Context, *connect_go.Request[tickets.CreateTicketReq]) (*connect_go.Response[tickets.CreateTicketRes], error) // Public Method to edit a ticket. EditTicket(context.Context, *connect_go.Request[tickets.EditTicketReq]) (*connect_go.Response[tickets.EditTicketRes], error) // Public method to list tickets ListTickets(context.Context, *connect_go.Request[tickets.ListTicketsReq]) (*connect_go.Response[tickets.ListTicketsRes], error) // Public method to assign ticket AssignTicket(context.Context, *connect_go.Request[tickets.AssignTicketReq]) (*connect_go.Response[tickets.AssignTicketRes], error) // Public Method to Close a ticket CloseTicket(context.Context, *connect_go.Request[tickets.CloseTicketReq]) (*connect_go.Response[tickets.CloseTicketRes], error) // Public method to view ticket ViewTicket(context.Context, *connect_go.Request[tickets.ViewTicketReq]) (*connect_go.Response[tickets.ViewTicketRes], error) // Public Method to create a Comment. CreateComment(context.Context, *connect_go.Request[tickets.CreateCommentReq]) (*connect_go.Response[tickets.CreateCommentRes], error) // Public method to Enable Project for Ticketing system EnableProject(context.Context, *connect_go.Request[tickets.EnableProjectReq]) (*connect_go.Response[tickets.EnableProjectRes], error) // Public method to List projects enabled for Ticketing system ListEnabledProjects(context.Context, *connect_go.Request[tickets.ListEnabledProjectsReq]) (*connect_go.Response[tickets.ListEnabledProjectsRes], error) // Public Method to create a sla. CreateSLA(context.Context, *connect_go.Request[tickets.CreateSlaReq]) (*connect_go.Response[tickets.CreateSlaRes], error) // Public method to list sla ListSLA(context.Context, *connect_go.Request[tickets.ListSlaReq]) (*connect_go.Response[tickets.ListSlaRes], error) // Public method to update sla UpdateSLA(context.Context, *connect_go.Request[tickets.UpdateSlaReq]) (*connect_go.Response[tickets.UpdateSlaRes], error) // Public method to list sla_condition ListSLACondition(context.Context, *connect_go.Request[tickets.ListSlaConditionReq]) (*connect_go.Response[tickets.ListSlaConditionRes], error) // Public method to list sla_condition ReplyComment(context.Context, *connect_go.Request[tickets.ReplyCommentReq]) (*connect_go.Response[tickets.ReplyCommentRes], error) // Public method to List audit log for Ticketing system ListTicketAuditLog(context.Context, *connect_go.Request[tickets.ListTicketAuditLogReq]) (*connect_go.Response[tickets.ListTicketAuditLogRes], error) // Public method to assign a ticket AssignSelf(context.Context, *connect_go.Request[tickets.CreateSelfAssignReq]) (*connect_go.Response[tickets.CreateSelfAssignRes], error) }
TicketsHandler is an implementation of the api.v1alpha1.tickets.Tickets service.
type UnimplementedTicketsHandler ¶
type UnimplementedTicketsHandler struct{}
UnimplementedTicketsHandler returns CodeUnimplemented from all methods.
func (UnimplementedTicketsHandler) AssignSelf ¶ added in v1.7.11
func (UnimplementedTicketsHandler) AssignSelf(context.Context, *connect_go.Request[tickets.CreateSelfAssignReq]) (*connect_go.Response[tickets.CreateSelfAssignRes], error)
func (UnimplementedTicketsHandler) AssignTicket ¶
func (UnimplementedTicketsHandler) AssignTicket(context.Context, *connect_go.Request[tickets.AssignTicketReq]) (*connect_go.Response[tickets.AssignTicketRes], error)
func (UnimplementedTicketsHandler) CloseTicket ¶
func (UnimplementedTicketsHandler) CloseTicket(context.Context, *connect_go.Request[tickets.CloseTicketReq]) (*connect_go.Response[tickets.CloseTicketRes], error)
func (UnimplementedTicketsHandler) CreateComment ¶
func (UnimplementedTicketsHandler) CreateComment(context.Context, *connect_go.Request[tickets.CreateCommentReq]) (*connect_go.Response[tickets.CreateCommentRes], error)
func (UnimplementedTicketsHandler) CreateSLA ¶
func (UnimplementedTicketsHandler) CreateSLA(context.Context, *connect_go.Request[tickets.CreateSlaReq]) (*connect_go.Response[tickets.CreateSlaRes], error)
func (UnimplementedTicketsHandler) CreateTicket ¶
func (UnimplementedTicketsHandler) CreateTicket(context.Context, *connect_go.Request[tickets.CreateTicketReq]) (*connect_go.Response[tickets.CreateTicketRes], error)
func (UnimplementedTicketsHandler) EditTicket ¶
func (UnimplementedTicketsHandler) EditTicket(context.Context, *connect_go.Request[tickets.EditTicketReq]) (*connect_go.Response[tickets.EditTicketRes], error)
func (UnimplementedTicketsHandler) EnableProject ¶
func (UnimplementedTicketsHandler) EnableProject(context.Context, *connect_go.Request[tickets.EnableProjectReq]) (*connect_go.Response[tickets.EnableProjectRes], error)
func (UnimplementedTicketsHandler) ListEnabledProjects ¶
func (UnimplementedTicketsHandler) ListEnabledProjects(context.Context, *connect_go.Request[tickets.ListEnabledProjectsReq]) (*connect_go.Response[tickets.ListEnabledProjectsRes], error)
func (UnimplementedTicketsHandler) ListSLA ¶
func (UnimplementedTicketsHandler) ListSLA(context.Context, *connect_go.Request[tickets.ListSlaReq]) (*connect_go.Response[tickets.ListSlaRes], error)
func (UnimplementedTicketsHandler) ListSLACondition ¶
func (UnimplementedTicketsHandler) ListSLACondition(context.Context, *connect_go.Request[tickets.ListSlaConditionReq]) (*connect_go.Response[tickets.ListSlaConditionRes], error)
func (UnimplementedTicketsHandler) ListTicketAuditLog ¶
func (UnimplementedTicketsHandler) ListTicketAuditLog(context.Context, *connect_go.Request[tickets.ListTicketAuditLogReq]) (*connect_go.Response[tickets.ListTicketAuditLogRes], error)
func (UnimplementedTicketsHandler) ListTickets ¶
func (UnimplementedTicketsHandler) ListTickets(context.Context, *connect_go.Request[tickets.ListTicketsReq]) (*connect_go.Response[tickets.ListTicketsRes], error)
func (UnimplementedTicketsHandler) ReplyComment ¶
func (UnimplementedTicketsHandler) ReplyComment(context.Context, *connect_go.Request[tickets.ReplyCommentReq]) (*connect_go.Response[tickets.ReplyCommentRes], error)
func (UnimplementedTicketsHandler) UpdateSLA ¶
func (UnimplementedTicketsHandler) UpdateSLA(context.Context, *connect_go.Request[tickets.UpdateSlaReq]) (*connect_go.Response[tickets.UpdateSlaRes], error)
func (UnimplementedTicketsHandler) ViewTicket ¶
func (UnimplementedTicketsHandler) ViewTicket(context.Context, *connect_go.Request[tickets.ViewTicketReq]) (*connect_go.Response[tickets.ViewTicketRes], error)