services

package
v0.0.0-...-41e7d8c Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2014 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountGroupService

type AccountGroupService struct {
}

func (*AccountGroupService) Delete

func (a *AccountGroupService) Delete(accountId int64, id int64) bool

func (*AccountGroupService) FindByAccount

func (a *AccountGroupService) FindByAccount(accountId int64) []*models.AccountGroup

func (*AccountGroupService) FindDefault

func (a *AccountGroupService) FindDefault(accountId int64) (*models.AccountGroup, error)

func (*AccountGroupService) FindOne

func (a *AccountGroupService) FindOne(accountId int64, id int64) *models.AccountGroup

func (*AccountGroupService) Save

func (a *AccountGroupService) Save(accountGroup *models.AccountGroup) *models.AccountGroup

func (*AccountGroupService) Update

func (a *AccountGroupService) Update(accountGroup *models.AccountGroup) error

type AccountService

type AccountService struct {
}

func (*AccountService) Delete

func (a *AccountService) Delete(id int64) bool

func (*AccountService) FindAll

func (a *AccountService) FindAll() []*models.Account

func (*AccountService) FindOne

func (a *AccountService) FindOne(id int64) *models.Account

func (*AccountService) Save

func (a *AccountService) Save(account *models.Account) *models.Account

func (*AccountService) Update

func (a *AccountService) Update(account *models.Account) error

type ApiKeyService

type ApiKeyService struct {
}

func (*ApiKeyService) Create

func (a *ApiKeyService) Create(label string, loginId int64) *models.KeyPair

func (*ApiKeyService) Delete

func (a *ApiKeyService) Delete(loginId int64, accessKey string) bool

func (*ApiKeyService) FindOne

func (a *ApiKeyService) FindOne(loginId int64, accessKey string) *models.KeyPair

type AuthService

type AuthService struct {
}

func (*AuthService) Delete

func (l *AuthService) Delete(accountGroupId int64, id int64) bool

func (*AuthService) FindByAccountGroup

func (l *AuthService) FindByAccountGroup(accountGroupId int64) []*models.Login

func (*AuthService) FindByEmail

func (l *AuthService) FindByEmail(email string) []*models.Login

func (*AuthService) Verify

func (l *AuthService) Verify(login *models.Login) (*models.Login, error)

type DataStreamGroupService

type DataStreamGroupService struct {
}

func (*DataStreamGroupService) Delete

func (a *DataStreamGroupService) Delete(accountId int64, projectId int64, id int64) bool

func (*DataStreamGroupService) FindByProject

func (a *DataStreamGroupService) FindByProject(accountId int64, projectId int64) []*models.DataStreamGroup

func (*DataStreamGroupService) FindOne

func (a *DataStreamGroupService) FindOne(accountId int64, projectId int64, id int64) *models.DataStreamGroup

func (*DataStreamGroupService) Save

func (*DataStreamGroupService) Update

func (a *DataStreamGroupService) Update(dataStreamGroups *models.DataStreamGroup) error

type DataStreamService

type DataStreamService struct {
}

func (*DataStreamService) Delete

func (a *DataStreamService) Delete(accountId int64, projectId int64, dataStreamGroupId int64, id int64) bool

func (*DataStreamService) FindByProject

func (a *DataStreamService) FindByProject(accountId int64, projectId int64, dataStreamGroupId int64) []*models.DataStream

func (*DataStreamService) FindOne

func (a *DataStreamService) FindOne(accountId int64, projectId int64, dataStreamGroupId int64, id int64) *models.DataStream

func (*DataStreamService) Save

func (a *DataStreamService) Save(dataStream *models.DataStream) *models.DataStream

func (*DataStreamService) Update

func (a *DataStreamService) Update(dataStream *models.DataStream) error

type ProjectService

type ProjectService struct {
}

func (*ProjectService) Delete

func (a *ProjectService) Delete(accountId int64, id int64) bool

func (*ProjectService) FindByAccount

func (a *ProjectService) FindByAccount(accountId int64) []*models.Project

func (*ProjectService) FindOne

func (a *ProjectService) FindOne(accountId int64, id int64) *models.Project

func (*ProjectService) Save

func (a *ProjectService) Save(project *models.Project) *models.Project

func (*ProjectService) Update

func (a *ProjectService) Update(project *models.Project) error

Jump to

Keyboard shortcuts

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