Documentation
¶
Overview ¶
---------------------------------------------------------------------------------------------- // -- Copyright (c) 2024 Braden Hitchcock - MIT License (https://opensource.org/licenses/MIT) -- // ---------------------------------------------------------------------------------------------- //
---------------------------------------------------------------------------------------------- // -- Copyright (c) 2024 Braden Hitchcock - MIT License (https://opensource.org/licenses/MIT) -- // ---------------------------------------------------------------------------------------------- //
---------------------------------------------------------------------------------------------- // -- Copyright (c) 2024 Braden Hitchcock - MIT License (https://opensource.org/licenses/MIT) -- // ---------------------------------------------------------------------------------------------- //
---------------------------------------------------------------------------------------------- // -- Copyright (c) 2024 Braden Hitchcock - MIT License (https://opensource.org/licenses/MIT) -- // ---------------------------------------------------------------------------------------------- //
Index ¶
- type ConversationService
- func (s *ConversationService) Add(ctx context.Context, req *commands.CmdAddConversation, key crypto.Key) (*types.Conversation, error)
- func (s *ConversationService) AddMods(ctx context.Context, req *commands.CmdAddConversationMods, key crypto.Key) error
- func (s *ConversationService) Get(ctx context.Context, req *queries.ReqGetConversation, key crypto.Key) (*types.Conversation, error)
- func (s *ConversationService) ListAll(ctx context.Context, key crypto.Key) ([]*types.Conversation, error)
- func (s *ConversationService) Remove(ctx context.Context, req *commands.CmdRemoveConversation) error
- func (s *ConversationService) RemoveMods(ctx context.Context, req *commands.CmdRemoveConversationMods, key crypto.Key) error
- func (s *ConversationService) Update(ctx context.Context, req *commands.CmdUpdateConversation, key crypto.Key) (*types.Conversation, error)
- type GroupService
- func (g GroupService) Authenticate(ctx context.Context, req *commands.CmdAuthenticateGroup) (crypto.Key, error)
- func (g GroupService) ChangePassword(ctx context.Context, req *commands.CmdUpdateGroupPassword, dkey crypto.Key) error
- func (svc GroupService) Create(ctx context.Context, req *commands.CmdInitGroup) (*types.Group, error)
- func (g GroupService) Get(ctx context.Context, dkey crypto.Key) (*types.Group, error)
- func (g GroupService) Update(ctx context.Context, req *commands.CmdUpdateGroup, dkey crypto.Key) (*types.Group, error)
- type MemberService
- func (s *MemberService) Authenticate(ctx context.Context, req *commands.CmdAuthenticateMember, key crypto.Key) (*types.Member, error)
- func (s *MemberService) ChangePassword(ctx context.Context, req *commands.CmdUpdateMemberPassword) error
- func (s *MemberService) Create(ctx context.Context, req *commands.CmdAddMember, key crypto.Key) (*types.Member, error)
- func (s *MemberService) FindMemberByUsername(ctx context.Context, req *queries.ReqGetMember, key crypto.Key) (*types.Member, error)
- func (s *MemberService) ListMembers(ctx context.Context, key crypto.Key) ([]*types.Member, error)
- func (s *MemberService) RemoveMember(ctx context.Context, req *commands.CmdRemoveMember) error
- func (s *MemberService) UpdateMember(ctx context.Context, req *commands.CmdUpdateMember, key crypto.Key) (*types.Member, error)
- type MessageService
- func (s *MessageService) Add(ctx context.Context, req *commands.CmdAddMessage, key crypto.Key) (*types.Message, error)
- func (s *MessageService) Get(ctx context.Context, req *queries.ReqGetMessage, key crypto.Key) (*types.Message, error)
- func (s *MessageService) List(ctx context.Context, req *queries.ReqListMessages, key crypto.Key) ([]*types.Message, error)
- func (s *MessageService) Remove(ctx context.Context, req *commands.CmdRemoveMessage) error
- func (s *MessageService) Update(ctx context.Context, req *commands.CmdUpdateMessage, key crypto.Key) (*types.Message, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConversationService ¶
type ConversationService struct {
// contains filtered or unexported fields
}
func NewConversationService ¶
func NewConversationService(store store.ConversationStore) ConversationService
func (*ConversationService) Add ¶
func (s *ConversationService) Add( ctx context.Context, req *commands.CmdAddConversation, key crypto.Key, ) (*types.Conversation, error)
func (*ConversationService) AddMods ¶
func (s *ConversationService) AddMods( ctx context.Context, req *commands.CmdAddConversationMods, key crypto.Key, ) error
func (*ConversationService) Get ¶
func (s *ConversationService) Get( ctx context.Context, req *queries.ReqGetConversation, key crypto.Key, ) (*types.Conversation, error)
func (*ConversationService) ListAll ¶
func (s *ConversationService) ListAll( ctx context.Context, key crypto.Key, ) ([]*types.Conversation, error)
func (*ConversationService) Remove ¶
func (s *ConversationService) Remove( ctx context.Context, req *commands.CmdRemoveConversation, ) error
func (*ConversationService) RemoveMods ¶
func (s *ConversationService) RemoveMods( ctx context.Context, req *commands.CmdRemoveConversationMods, key crypto.Key, ) error
func (*ConversationService) Update ¶
func (s *ConversationService) Update( ctx context.Context, req *commands.CmdUpdateConversation, key crypto.Key, ) (*types.Conversation, error)
type GroupService ¶
type GroupService struct {
// contains filtered or unexported fields
}
func NewGroupService ¶
func NewGroupService(store store.GroupStore) GroupService
func (GroupService) Authenticate ¶
func (g GroupService) Authenticate( ctx context.Context, req *commands.CmdAuthenticateGroup, ) (crypto.Key, error)
func (GroupService) ChangePassword ¶
func (g GroupService) ChangePassword( ctx context.Context, req *commands.CmdUpdateGroupPassword, dkey crypto.Key, ) error
func (GroupService) Create ¶
func (svc GroupService) Create(ctx context.Context, req *commands.CmdInitGroup) (*types.Group, error)
type MemberService ¶
type MemberService struct {
// contains filtered or unexported fields
}
func NewMemberService ¶
func NewMemberService(store store.MemberStore) MemberService
func (*MemberService) Authenticate ¶
func (s *MemberService) Authenticate( ctx context.Context, req *commands.CmdAuthenticateMember, key crypto.Key, ) (*types.Member, error)
func (*MemberService) ChangePassword ¶
func (s *MemberService) ChangePassword( ctx context.Context, req *commands.CmdUpdateMemberPassword, ) error
func (*MemberService) Create ¶
func (s *MemberService) Create( ctx context.Context, req *commands.CmdAddMember, key crypto.Key, ) (*types.Member, error)
func (*MemberService) FindMemberByUsername ¶
func (s *MemberService) FindMemberByUsername( ctx context.Context, req *queries.ReqGetMember, key crypto.Key, ) (*types.Member, error)
func (*MemberService) ListMembers ¶
func (*MemberService) RemoveMember ¶
func (s *MemberService) RemoveMember(ctx context.Context, req *commands.CmdRemoveMember) error
func (*MemberService) UpdateMember ¶
func (s *MemberService) UpdateMember( ctx context.Context, req *commands.CmdUpdateMember, key crypto.Key, ) (*types.Member, error)
type MessageService ¶
type MessageService struct {
// contains filtered or unexported fields
}
func NewMessageService ¶
func NewMessageService(store store.MessageStore) MessageService
func (*MessageService) Add ¶
func (s *MessageService) Add( ctx context.Context, req *commands.CmdAddMessage, key crypto.Key, ) (*types.Message, error)
func (*MessageService) Get ¶
func (s *MessageService) Get( ctx context.Context, req *queries.ReqGetMessage, key crypto.Key, ) (*types.Message, error)
func (*MessageService) List ¶
func (s *MessageService) List( ctx context.Context, req *queries.ReqListMessages, key crypto.Key, ) ([]*types.Message, error)
func (*MessageService) Remove ¶
func (s *MessageService) Remove(ctx context.Context, req *commands.CmdRemoveMessage) error