Documentation
¶
Index ¶
- func HasNextPage(meta types.PageMeta) bool
- func NextCursor(meta types.PageMeta) string
- type APIError
- type Client
- type RetryTransport
- type SearchService
- type TicketService
- func (s *TicketService) Create(ctx context.Context, req *types.CreateTicketRequest) (*types.Ticket, error)
- func (s *TicketService) Delete(ctx context.Context, id int64) error
- func (s *TicketService) Get(ctx context.Context, id int64, opts *types.GetTicketOptions) (*types.Ticket, error)
- func (s *TicketService) List(ctx context.Context, opts *types.ListTicketsOptions) (*types.TicketPage, error)
- func (s *TicketService) Update(ctx context.Context, id int64, req *types.UpdateTicketRequest) (*types.Ticket, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasNextPage ¶
HasNextPage checks if there are more pages to fetch.
func NextCursor ¶
NextCursor returns the cursor for the next page.
Types ¶
type RetryTransport ¶
type RetryTransport struct {
Base http.RoundTripper
MaxRetries int
}
RetryTransport implements exponential backoff with jitter for 429/5xx.
type SearchService ¶
type SearchService struct {
// contains filtered or unexported fields
}
func NewSearchService ¶
func NewSearchService(client *Client) *SearchService
func (*SearchService) Search ¶
func (s *SearchService) Search(ctx context.Context, query string, opts *types.SearchOptions) (*types.SearchPage, error)
type TicketService ¶
type TicketService struct {
// contains filtered or unexported fields
}
func NewTicketService ¶
func NewTicketService(client *Client) *TicketService
func (*TicketService) Create ¶
func (s *TicketService) Create(ctx context.Context, req *types.CreateTicketRequest) (*types.Ticket, error)
func (*TicketService) Get ¶
func (s *TicketService) Get(ctx context.Context, id int64, opts *types.GetTicketOptions) (*types.Ticket, error)
func (*TicketService) List ¶
func (s *TicketService) List(ctx context.Context, opts *types.ListTicketsOptions) (*types.TicketPage, error)
Click to show internal directories.
Click to hide internal directories.