Documentation ¶
Index ¶
- func NewAdmin(base *BaseService, destroy *bool) rpc.AdminService
- func NewBlob(base *BaseService) rpc.BlobService
- func NewInfo(base *BaseService, pubKeyPem string) rpc.InfoService
- func NewMessage(base *BaseService) rpc.MessageService
- func NewNotification(base *BaseService) rpc.NotificationService
- func NewUser(base *BaseService) rpc.UserService
- type BaseService
- type ContextKey
- type MessageCleaner
- type Notification
- type NotificationSender
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdmin ¶
func NewAdmin(base *BaseService, destroy *bool) rpc.AdminService
func NewBlob ¶
func NewBlob(base *BaseService) rpc.BlobService
func NewInfo ¶
func NewInfo(base *BaseService, pubKeyPem string) rpc.InfoService
func NewMessage ¶
func NewMessage(base *BaseService) rpc.MessageService
func NewNotification ¶
func NewNotification(base *BaseService) rpc.NotificationService
func NewUser ¶
func NewUser(base *BaseService) rpc.UserService
Types ¶
type BaseService ¶
type BaseService struct {
// contains filtered or unexported fields
}
type MessageCleaner ¶
type MessageCleaner struct {
// contains filtered or unexported fields
}
func NewMessageCleaner ¶
func NewMessageCleaner(externalAddress, apiEndpoint string, tokenGenerator token.Generator) *MessageCleaner
func (*MessageCleaner) DeleteExpiredMessages ¶
func (mc *MessageCleaner) DeleteExpiredMessages(messageRepo repo.MessageRepo)
type Notification ¶
type NotificationSender ¶
type NotificationSender interface { Start() SendNotification(notification Notification) }
func NewNotificationSender ¶
func NewNotificationSender(notificationRepo common.NotificationRepo, externalAddress, userHubEndpoint string, tokenGenerator token.Generator) NotificationSender
type User ¶
type User struct { ID string Name string FullName string IsHubAdmin bool IsBlocked bool BlockedUsers []string OwnedGroups []string }
func (User) DisplayName ¶
func (User) IsBlockedUser ¶
func (User) IsOwnedGroup ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.