Documentation
¶
Index ¶
- Constants
- func GetAccountLevel(level string) int
- type AccountCredentials
- type AccountRecord
- type AccountStorage
- type AgentCredentials
- type AgentRecord
- type AgentStorage
- type BugRecord
- type BugStorage
- type CommsCredentials
- type CommsStorage
- type Database
- type Storage
- type TicketDetails
- type TicketingCredentials
- type TicketingStorage
- func (t TicketingStorage) FetchCredentials(agentID string) (TicketingCredentials, error)
- func (t TicketingStorage) FindTicket(details TicketDetails) (TicketDetails, error)
- func (t TicketingStorage) StoreCredentials(credentials TicketingCredentials) error
- func (t TicketingStorage) StoreTicketDetails(details TicketDetails) error
- func (t TicketingStorage) TicketExists(details TicketDetails) (bool, error)
Constants ¶
View Source
const ( AccountLevelDeity = iota AccountLevelOwner AccountLevelSub )
Variables ¶
This section is empty.
Functions ¶
func GetAccountLevel ¶
Types ¶
type AccountCredentials ¶
type AccountRecord ¶
type AccountStorage ¶
type AccountStorage struct {
Database Database
}
func NewAccountStorage ¶
func NewAccountStorage(d Database) *AccountStorage
func (AccountStorage) Delete ¶
func (a AccountStorage) Delete(id string) error
func (AccountStorage) Fetch ¶
func (a AccountStorage) Fetch(id string) (AccountRecord, error)
func (AccountStorage) Insert ¶
func (a AccountStorage) Insert(data AccountRecord) error
type AgentCredentials ¶
type AgentRecord ¶
type AgentRecord struct { ID string `json:"id"` Name string `json:"name"` AgentCredentials AccountRecord }
type AgentStorage ¶
type AgentStorage struct {
Database Database
}
func NewAgentStorage ¶
func NewAgentStorage(d Database) *AgentStorage
func (AgentStorage) Delete ¶
func (a AgentStorage) Delete(id string) error
func (AgentStorage) Fetch ¶
func (a AgentStorage) Fetch(id string) (AgentRecord, error)
func (AgentStorage) Insert ¶
func (a AgentStorage) Insert(data AgentRecord) error
type BugStorage ¶
type BugStorage struct {
Database Database
}
func NewBugStorage ¶
func NewBugStorage(d Database) *BugStorage
func (BugStorage) FindAndStore ¶
func (b BugStorage) FindAndStore(data BugRecord) (BugRecord, error)
func (BugStorage) Insert ¶
func (b BugStorage) Insert(data BugRecord) error
func (BugStorage) Store ¶
func (b BugStorage) Store(data BugRecord) error
func (BugStorage) Update ¶
func (b BugStorage) Update(data BugRecord) error
type CommsCredentials ¶
type CommsStorage ¶
type CommsStorage struct {
Database Database
}
func NewCommsStorage ¶
func NewCommsStorage(d Database) *CommsStorage
func (CommsStorage) FetchCredentials ¶
func (c CommsStorage) FetchCredentials(agentID string) (CommsCredentials, error)
type TicketDetails ¶
type TicketingCredentials ¶
type TicketingStorage ¶
type TicketingStorage struct {
Database Database
}
func NewTicketingStorage ¶
func NewTicketingStorage(d Database) *TicketingStorage
func (TicketingStorage) FetchCredentials ¶
func (t TicketingStorage) FetchCredentials(agentID string) (TicketingCredentials, error)
func (TicketingStorage) FindTicket ¶
func (t TicketingStorage) FindTicket(details TicketDetails) (TicketDetails, error)
func (TicketingStorage) StoreCredentials ¶
func (t TicketingStorage) StoreCredentials(credentials TicketingCredentials) error
func (TicketingStorage) StoreTicketDetails ¶
func (t TicketingStorage) StoreTicketDetails(details TicketDetails) error
func (TicketingStorage) TicketExists ¶
func (t TicketingStorage) TicketExists(details TicketDetails) (bool, error)
Click to show internal directories.
Click to hide internal directories.