Documentation ¶
Index ¶
- func Create() error
- func Delete(partialID string) error
- func Edit(partialID string) error
- func FetchTicket(id string) (*model.Ticket, error)
- func FindIDs(partialID string) ([]string, error)
- func Init() error
- func List(states ...model.TicketState) ([]*model.Ticket, error)
- func Update(t *model.Ticket) error
- func WriteByPartialID(partialID string, w io.Writer) error
- type MultipleResulsError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchTicket ¶
FetchTicket fetches ticket by id
Types ¶
type MultipleResulsError ¶
type MultipleResulsError struct { // PartialID that was used for this search PartialID string // Results that correspond to PartialID Results []string }
MultipleResulsError returns when search yields more that one results when only one is expected
func NewMultipleResulsError ¶
func NewMultipleResulsError(partialID string, results []string) *MultipleResulsError
NewMultipleResulsError returns a new instance of MultipleResulsError
func (*MultipleResulsError) Error ¶
func (e *MultipleResulsError) Error() string
Error implements error interface
Click to show internal directories.
Click to hide internal directories.