Documentation
¶
Index ¶
- Variables
- type InstalledUserProfile
- type Service
- type Services
- type UserProfile
- func (s *UserProfile) AppendService(service Service)
- func (s *UserProfile) InitModule()
- func (s *UserProfile) InstallProcess(ctx context.Context, system herbsystem.System, ...)
- func (s *UserProfile) ModuleName() string
- func (s *UserProfile) MustLoadProfile(uid string) *profile.Profile
- func (s *UserProfile) MustLoadProfiles(idlist ...string) map[string]*profile.Profile
- func (s *UserProfile) MustUpdateProfile(id string, p *profile.Profile)
- func (s *UserProfile) PurgeProcess(ctx context.Context, system herbsystem.System, ...)
- func (s *UserProfile) StartProcess(ctx context.Context, system herbsystem.System, ...)
- func (s *UserProfile) StopProcess(ctx context.Context, system herbsystem.System, ...)
Constants ¶
This section is empty.
Variables ¶
View Source
var ModuleName = "profile"
Functions ¶
This section is empty.
Types ¶
type InstalledUserProfile ¶
type InstalledUserProfile struct {
*UserProfile
UserSystem *usersystem.UserSystem
}
func MustNewAndInstallTo ¶
func MustNewAndInstallTo(s *usersystem.UserSystem) *InstalledUserProfile
func NewInstalledUserProfile ¶
func NewInstalledUserProfile() *InstalledUserProfile
type UserProfile ¶
type UserProfile struct {
herbsystem.NopModule
Services Services
}
func MustGetModule ¶
func MustGetModule(s *usersystem.UserSystem) *UserProfile
func New ¶
func New() *UserProfile
func (*UserProfile) AppendService ¶
func (s *UserProfile) AppendService(service Service)
func (*UserProfile) InitModule ¶
func (s *UserProfile) InitModule()
func (*UserProfile) InstallProcess ¶
func (s *UserProfile) InstallProcess(ctx context.Context, system herbsystem.System, next func(context.Context, herbsystem.System))
func (*UserProfile) ModuleName ¶
func (s *UserProfile) ModuleName() string
func (*UserProfile) MustLoadProfile ¶
func (s *UserProfile) MustLoadProfile(uid string) *profile.Profile
func (*UserProfile) MustLoadProfiles ¶
func (s *UserProfile) MustLoadProfiles(idlist ...string) map[string]*profile.Profile
func (*UserProfile) MustUpdateProfile ¶
func (s *UserProfile) MustUpdateProfile(id string, p *profile.Profile)
func (*UserProfile) PurgeProcess ¶
func (s *UserProfile) PurgeProcess(ctx context.Context, system herbsystem.System, next func(context.Context, herbsystem.System))
func (*UserProfile) StartProcess ¶
func (s *UserProfile) StartProcess(ctx context.Context, system herbsystem.System, next func(context.Context, herbsystem.System))
func (*UserProfile) StopProcess ¶
func (s *UserProfile) StopProcess(ctx context.Context, system herbsystem.System, next func(context.Context, herbsystem.System))
Click to show internal directories.
Click to hide internal directories.