Documentation
¶
Index ¶
- Constants
- Variables
- type Config
- type CreateParams
- type Hooks
- type Message
- type NotifyError
- type Service
- func (s *Service) CloseByRefs(ctx context.Context, refs []string) error
- func (s *Service) CountPending(ctx context.Context) (int, error)
- func (s *Service) Create(ctx context.Context, p CreateParams) (int64, error)
- func (s *Service) CreateCancelRequest(ctx context.Context, ref string, label string, partyID int64, ...) (int64, error)
- func (s *Service) FirstMessage(ctx context.Context, ticketID int64) string
- func (s *Service) Get(ctx context.Context, id int64) (*Ticket, error)
- func (s *Service) List(ctx context.Context, status string, limit, offset int) ([]Ticket, int, error)
- func (s *Service) PendingCancelRequests(ctx context.Context, limit int) ([]Ticket, error)
- func (s *Service) Reply(ctx context.Context, ticketID, authorID int64, authorKind, body string, ...) error
- func (s *Service) ResolveCancelRequest(ctx context.Context, ticketID, resolverID int64, action, note string) error
- func (s *Service) SetStatus(ctx context.Context, ticketID int64, status string) error
- type Ticket
Constants ¶
View Source
const ( StatusOpen = "open" StatusAwaitingUser = "awaiting_user" StatusActionRequired = "action_required" StatusClosed = "closed" StatusPending = "pending" StatusResolved = "resolved" SourceCustomer = "customer" SourceAgent = "agent" SourceTelegram = "telegram" SourceStaff = "staff" AuthorUser = "user" AuthorParty = "party" KindCancel = "cancel" KindReturn = "return" ActionHandled = "handled" ActionDeclined = "declined" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CreateParams ¶
type NotifyError ¶
type NotifyError struct{ Err error }
func (*NotifyError) Error ¶
func (e *NotifyError) Error() string
func (*NotifyError) Unwrap ¶
func (e *NotifyError) Unwrap() error
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CloseByRefs ¶
func (*Service) CreateCancelRequest ¶
func (*Service) FirstMessage ¶
func (*Service) PendingCancelRequests ¶
func (*Service) ResolveCancelRequest ¶
Click to show internal directories.
Click to hide internal directories.