ticketsconnect

package
v1.7.14 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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.

View Source
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 create 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)
	// Closes the 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 create 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)
	// Closes the 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.

Jump to

Keyboard shortcuts

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