Documentation ¶
Index ¶
- func CreateFileArtifact(fileArtifact *FileArtifact) error
- func CreateTicket(ticket *Ticket) error
- func GetAssociatedArtifacts(TicketID uint) (*[]FileArtifact, error)
- func GetTickets() (*[]Ticket, error)
- func InitDB()
- func ProcessTicket(ticket *Ticket)
- type CreateTicketResponse
- type FileArtifact
- type Response
- type ResponseError
- type ScreenShot
- type Ticket
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFileArtifact ¶
func CreateFileArtifact(fileArtifact *FileArtifact) error
func GetAssociatedArtifacts ¶
func GetAssociatedArtifacts(TicketID uint) (*[]FileArtifact, error)
func GetTickets ¶
func ProcessTicket ¶
func ProcessTicket(ticket *Ticket)
ProcessTicket saves processed ticket in database
Types ¶
type CreateTicketResponse ¶
type FileArtifact ¶
type FileArtifact struct { TicketId uint `json:"ticketID" gorm:"primary_key"` Filename string `json:"filename" gorm:"primary_key"` Data []byte `json:"-"` }
func GetArtifact ¶
func GetArtifact(TicketID uint, FileName string) (*FileArtifact, error)
type Response ¶
type Response struct { Success bool `json:"success"` Error *ResponseError `json:"error,omitempty"` Message *string `json:"message,omitempty"` Ticket *Ticket `json:"ticket,omitempty"` Tickets *[]Ticket `json:"tickets,omitempty"` FileArtifacts *[]FileArtifact `json:"fileArtifacts,omitempty"` }
type ResponseError ¶
func (*ResponseError) Error ¶
func (e *ResponseError) Error() string
Makes ResponseError satisfy builtin Error type. See: https://blog.golang.org/error-handling-and-go
type ScreenShot ¶
Click to show internal directories.
Click to hide internal directories.