Documentation
¶
Overview ¶
Package api contains the endpoints to manage finding tickets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
Options Options
// contains filtered or unexported fields
}
API represents an API services and all the stuff needed to work.
func New ¶
func New(ticketServer tracking.TicketServer, ticketTrackerBuilder tracking.TicketTrackerBuilder, storage storage.Storage, options Options) *API
New instantiates a new API.
func (*API) CreateTicket ¶
CreateTicket creates a ticket and returns a JSON containing the new ticket.
func (*API) GetFindingTicket ¶
GetFindingTicket checks if a ticket was created and retrieves it if it is found.
Click to show internal directories.
Click to hide internal directories.