Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { ID int Role AccountRole SlackID string SlackRealName string }
Account ...
type AccountRole ¶
type AccountRole int
AccountRole ...
const ( // AdminRole ... AdminRole AccountRole // AgentRole ... AgentRole )
type Service ¶
type Service interface { GetAccountByID(id int) (*Account, error) GetAccountBySlackID(slackID string) (*Account, error) GetAccountBySlackRealName(slackRealName string) (*Account, error) GetAccounts() ([]Account, error) CreateAccount(account *Account) error PutAccount(account *Account) error DeleteAccount(id int) error GetShellcodeByID(id int) (*Shellcode, error) GetShellcodeByKey(key string) (*Shellcode, error) GetShellcodes() ([]Shellcode, error) CreateShellcode(shellcode *Shellcode) error PutShellcode(shellcode *Shellcode) error DeleteShellcode(id int) error GetSessionByID(id string) (*Session, error) CreateSession(session *Session) error PutSession(session *Session) error DeleteSession(id string) error GetVersion() (int, error) PutVersion(version int) error Init() error Close() error }
Service ...
Click to show internal directories.
Click to hide internal directories.