service

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	GetAccountByID(id int) (*repository.Account, error)
	GetAccountBySlackID(slackID string) (*repository.Account, error)
	GetAccountBySlackRealName(slackRealName string) (*repository.Account, error)
	GetAccounts() ([]repository.Account, error)
	CreateAccount(role repository.AccountRole, slackID string, slackRealName string) error
	PutAccount(id int, role repository.AccountRole, slackID string, slackRealName string) error
	DeleteAccount(id int) error

	GetShellcodeByID(id int) (*repository.Shellcode, error)
	GetShellcodeByKey(key string) (*repository.Shellcode, error)
	GetShellcodes() ([]repository.Shellcode, error)
	CreateShellcode(fileID string, shellType string, shellkey string, ownerID string, ownerRealName string) error
	PutShellcode(key string, endpoint string, ownerID string) error
	DeleteShellcode(id int) error

	GetSessionByID(id string) (*repository.Session, error)
	CreateSession(id string, key string) error
	PutSession(id string, key string) error
	DeleteSession(id string) error

	GetVersion() (int, error)
	PutVersion(version int) error
}

Service ...

func NewService

func NewService(repo repository.Service) Service

NewService ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL