Documentation ¶
Index ¶
Constants ¶
View Source
const AuditEntity = "action"
Variables ¶
View Source
var ( ErrInvalidID = errors.New("action id is invalid") ErrNotExist = errors.New("action doesn't exist") ErrInvalidDetail = errors.New("invalid action detail") ErrLogActivity = errors.New("error while logging activity") )
View Source
var DefinitionCreateProject = Action{ ID: "create_project", Name: "Create Project", NamespaceID: namespace.DefinitionOrg.ID, }
View Source
var DefinitionCreateTeam = Action{ ID: "create_team", Name: "Create Team", NamespaceID: namespace.DefinitionOrg.ID, }
View Source
var DefinitionManageOrganization = Action{ ID: "manage_organization", Name: "Manage Organization", NamespaceID: namespace.DefinitionOrg.ID, }
View Source
var DefinitionManageProject = Action{ ID: "manage_project", Name: "Manage Project", NamespaceID: namespace.DefinitionProject.ID, }
View Source
var DefinitionManageTeam = Action{ ID: "manage_team", Name: "Manage Team", NamespaceID: namespace.DefinitionTeam.ID, }
View Source
var DefinitionProjectAll = Action{ ID: "all_actions_project", Name: "All Actions Project", NamespaceID: namespace.DefinitionProject.ID, }
View Source
var DefinitionTeamAll = Action{ ID: "all_actions_team", Name: "All Actions Team", NamespaceID: namespace.DefinitionTeam.ID, }
View Source
var DefinitionViewTeam = Action{ ID: "view_team", Name: "View Team", NamespaceID: namespace.DefinitionTeam.ID, }
Functions ¶
This section is empty.
Types ¶
type Action ¶
type ActivityService ¶ added in v0.6.15
type Repository ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(logger log.Logger, repository Repository, userService UserService, activityService ActivityService) *Service
Click to show internal directories.
Click to hide internal directories.