api

package
v0.0.0-...-dc1a94a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2020 License: GPL-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFriend

func AddFriend(uc *protocol.UserCommand) *protocol.UCReply

func AddGroup

func AddGroup(uc *protocol.UserCommand) *protocol.UCReply

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 DelFriend

func DelFriend(uc *protocol.UserCommand) *protocol.UCReply

func DelGroup

func DelGroup(uc *protocol.UserCommand) *protocol.UCReply

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 JoinGroup

func JoinGroup(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 QuitGroup

func QuitGroup(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

func ValidateSig(sp *protocol.SignPack) bool

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL