Documentation
¶
Index ¶
- Constants
- func TicketURL(id int64) string
- type SearchService
- type Store
- 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.TicketResult, error)
- func (s *TicketService) List(ctx context.Context, opts *types.ListTicketsOptions) (*types.TicketPage, error)
- func (s *TicketService) ListAudits(ctx context.Context, ticketID int64, opts *types.ListAuditsOptions) (*types.AuditPage, error)
- func (s *TicketService) ListComments(ctx context.Context, ticketID int64, opts *types.ListCommentsOptions) (*types.CommentPage, error)
- func (s *TicketService) Update(ctx context.Context, id int64, req *types.UpdateTicketRequest) (*types.Ticket, error)
- type UserService
Constants ¶
View Source
const DemoSubdomain = "demo"
DemoSubdomain returns the subdomain used for demo mode URLs.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SearchService ¶
type SearchService struct {
// contains filtered or unexported fields
}
func NewSearchService ¶
func NewSearchService(store *Store) *SearchService
func (*SearchService) Search ¶
func (s *SearchService) Search(ctx context.Context, query string, opts *types.SearchOptions) (*types.SearchPage, error)
type Store ¶
type Store struct {
Tickets map[int64]types.Ticket
Comments map[int64][]types.Comment
Audits map[int64][]types.Audit
Users []types.User
DemoRole string // "", "agent", "light_agent", "admin"
// contains filtered or unexported fields
}
func (*Store) CollectAuditUsers ¶ added in v0.4.7
func (*Store) CollectCommentUsers ¶
type TicketService ¶
type TicketService struct {
// contains filtered or unexported fields
}
func NewTicketService ¶
func NewTicketService(store *Store) *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.TicketResult, error)
func (*TicketService) List ¶
func (s *TicketService) List(ctx context.Context, opts *types.ListTicketsOptions) (*types.TicketPage, error)
func (*TicketService) ListAudits ¶ added in v0.4.7
func (s *TicketService) ListAudits(ctx context.Context, ticketID int64, opts *types.ListAuditsOptions) (*types.AuditPage, error)
func (*TicketService) ListComments ¶
func (s *TicketService) ListComments(ctx context.Context, ticketID int64, opts *types.ListCommentsOptions) (*types.CommentPage, error)
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(store *Store) *UserService
func (*UserService) AutocompleteUsers ¶ added in v0.4.5
Click to show internal directories.
Click to hide internal directories.