Documentation
¶
Index ¶
- func AddFriend(uc *protocol.UserCommand) *protocol.UCReply
- func AddGroup(uc *protocol.UserCommand) *protocol.UCReply
- func ChangeGroup(uc *protocol.UserCommand) *protocol.UCReply
- func DecryptFriendDesc(uc *protocol.UserCommand) (fr *protocol.FriendReq, err error)
- func DecryptGroupDesc(uc *protocol.UserCommand) (gd *protocol.GroupReq, err error)
- func DecryptGroupMbrDesc(uc *protocol.UserCommand) (gd *protocol.GroupMemberReq, err error)
- func DecryptGroupSummaryReq(uc *protocol.UserCommand) (lgs *protocol.ListGroupSummaryReq, err error)
- func DecryptListGrpMbrs(uc *protocol.UserCommand) (gd *protocol.ListGroupMbrsReq, err error)
- func DelFriend(uc *protocol.UserCommand) *protocol.UCReply
- func DelGroup(uc *protocol.UserCommand) *protocol.UCReply
- func FetchGroupKeys(uc *protocol.UserCommand) *protocol.UCReply
- func FetchGroupMsg(uc *protocol.UserCommand) *protocol.UCReply
- func FetchP2pMs(uc *protocol.UserCommand) *protocol.UCReply
- func JoinGroup(uc *protocol.UserCommand) *protocol.UCReply
- func ListFriendSummary(uc *protocol.UserCommand) *protocol.UCReply
- func ListFriends(uc *protocol.UserCommand) *protocol.UCReply
- func ListGroupMbrs(uc *protocol.UserCommand) *protocol.UCReply
- func ListGroupSummary(uc *protocol.UserCommand) *protocol.UCReply
- func QuitGroup(uc *protocol.UserCommand) *protocol.UCReply
- func StoreGroupKeys(uc *protocol.UserCommand) *protocol.UCReply
- func StoreGroupMsg(uc *protocol.UserCommand) *protocol.UCReply
- func StoreP2pMsg(uc *protocol.UserCommand) *protocol.UCReply
- func ValidateSig(sp *protocol.SignPack) bool
- type CipherMachine
- func (cm *CipherMachine) Decrypt(uc *protocol.UserCommand) (plainBytes []byte, err error)
- func (cm *CipherMachine) DecryptFetchGrpKeyIdx(uc *protocol.UserCommand) (req *protocol.GroupKeyFetchReq, err error)
- func (cm *CipherMachine) DecryptStoreGroupKeys(uc *protocol.UserCommand) (req *protocol.GroupKeyStoreReq, err error)
- func (cm *CipherMachine) Encrpt(uc *protocol.UserCommand, data string) (cipherBytes []byte, err error)
- func (cm *CipherMachine) GenKey(uc *protocol.UserCommand) error
- type MessageDispatch
- type UserRegister
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeGroup ¶
func ChangeGroup(uc *protocol.UserCommand) *protocol.UCReply
func DecryptFriendDesc ¶
func DecryptFriendDesc(uc *protocol.UserCommand) (fr *protocol.FriendReq, err error)
func DecryptGroupDesc ¶
func DecryptGroupDesc(uc *protocol.UserCommand) (gd *protocol.GroupReq, err error)
func DecryptGroupMbrDesc ¶
func DecryptGroupMbrDesc(uc *protocol.UserCommand) (gd *protocol.GroupMemberReq, err error)
func DecryptGroupSummaryReq ¶
func DecryptGroupSummaryReq(uc *protocol.UserCommand) (lgs *protocol.ListGroupSummaryReq, err error)
func DecryptListGrpMbrs ¶
func DecryptListGrpMbrs(uc *protocol.UserCommand) (gd *protocol.ListGroupMbrsReq, err error)
func FetchGroupKeys ¶
func FetchGroupKeys(uc *protocol.UserCommand) *protocol.UCReply
func FetchGroupMsg ¶
func FetchGroupMsg(uc *protocol.UserCommand) *protocol.UCReply
func FetchP2pMs ¶
func FetchP2pMs(uc *protocol.UserCommand) *protocol.UCReply
func ListFriendSummary ¶
func ListFriendSummary(uc *protocol.UserCommand) *protocol.UCReply
func ListFriends ¶
func ListFriends(uc *protocol.UserCommand) *protocol.UCReply
func ListGroupMbrs ¶
func ListGroupMbrs(uc *protocol.UserCommand) *protocol.UCReply
func ListGroupSummary ¶
func ListGroupSummary(uc *protocol.UserCommand) *protocol.UCReply
func StoreGroupKeys ¶
func StoreGroupKeys(uc *protocol.UserCommand) *protocol.UCReply
func StoreGroupMsg ¶
func StoreGroupMsg(uc *protocol.UserCommand) *protocol.UCReply
func StoreP2pMsg ¶
func StoreP2pMsg(uc *protocol.UserCommand) *protocol.UCReply
func ValidateSig ¶
Types ¶
type CipherMachine ¶
type CipherMachine struct {
// contains filtered or unexported fields
}
func (*CipherMachine) Decrypt ¶
func (cm *CipherMachine) Decrypt(uc *protocol.UserCommand) (plainBytes []byte, err error)
func (*CipherMachine) DecryptFetchGrpKeyIdx ¶
func (cm *CipherMachine) DecryptFetchGrpKeyIdx(uc *protocol.UserCommand) (req *protocol.GroupKeyFetchReq, err error)
func (*CipherMachine) DecryptStoreGroupKeys ¶
func (cm *CipherMachine) DecryptStoreGroupKeys(uc *protocol.UserCommand) (req *protocol.GroupKeyStoreReq, err error)
func (*CipherMachine) Encrpt ¶
func (cm *CipherMachine) Encrpt(uc *protocol.UserCommand, data string) (cipherBytes []byte, err error)
func (*CipherMachine) GenKey ¶
func (cm *CipherMachine) GenKey(uc *protocol.UserCommand) error
type MessageDispatch ¶
type MessageDispatch struct {
}
func (*MessageDispatch) ServeHTTP ¶
func (uc *MessageDispatch) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserRegister ¶
type UserRegister struct {
}
func (*UserRegister) ServeHTTP ¶
func (ur *UserRegister) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.