Documentation
¶
Overview ¶
Copyright 2023 Adevinta
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDateMalformed indicates that the date format does not comply with YYYY-MM-DD. ErrDateMalformed = errors.New("malformed Date") // ErrPageMalformed indicates that the page requested is not an integer larger than 0. ErrPageMalformed = errors.New("malformed Page Number") // ErrPageNotFound indicates that the page requested does not exist. ErrPageNotFound = errors.New("page Not Found") // ErrSizeMalformed indicates that the size requested is not an integer larger than 0. ErrSizeMalformed = errors.New("malformed Size Number") // ErrSizeTooLarge indicates that the size requested is larger than the maximum allowed. ErrSizeTooLarge = errors.New("size Number Too Large") // ErrInvalidFilter indicates that there is a conflict between specified params for the filter. ErrInvalidFilter = errors.New("filter parameters combination is invalid") )
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.