Versions in this module Expand all Collapse all v1 v1.0.1 Dec 24, 2019 v1.0.0 Dec 24, 2019 Changes in this version + type Service interface + CreateAccount func(role repository.AccountRole, slackID string, slackRealName string) error + CreateSession func(id string, key string) error + CreateShellcode func(fileID string, shellType string, shellkey string, ownerID string, ...) error + DeleteAccount func(id int) error + DeleteSession func(id string) error + DeleteShellcode func(id int) error + GetAccountByID func(id int) (*repository.Account, error) + GetAccountBySlackID func(slackID string) (*repository.Account, error) + GetAccountBySlackRealName func(slackRealName string) (*repository.Account, error) + GetAccounts func() ([]repository.Account, error) + GetSessionByID func(id string) (*repository.Session, error) + GetShellcodeByID func(id int) (*repository.Shellcode, error) + GetShellcodeByKey func(key string) (*repository.Shellcode, error) + GetShellcodes func() ([]repository.Shellcode, error) + GetVersion func() (int, error) + PutAccount func(id int, role repository.AccountRole, slackID string, slackRealName string) error + PutSession func(id string, key string) error + PutShellcode func(key string, endpoint string, ownerID string) error + PutVersion func(version int) error + func NewService(repo repository.Service) Service