Documentation ¶
Index ¶
Constants ¶
View Source
const ( OK MsgType = 0 Error = 1 AddKey = 2 Question = 3 Answer = 4 ListKeys = 5 Keys = 6 Decrypt = 7 Decrypted = 8 )
Variables ¶
Functions ¶
Types ¶
type Connection ¶
type Connection struct { C chan Msg // contains filtered or unexported fields }
func (*Connection) SendDecrypted ¶
func (c *Connection) SendDecrypted(data []byte) error
func (*Connection) SendError ¶
func (c *Connection) SendError(msg string) error
func (*Connection) SendKeys ¶
func (c *Connection) SendKeys(keys []KeyInfo) error
func (*Connection) SendOK ¶
func (c *Connection) SendOK() error
type MsgDecrypt ¶
type MsgDecrypted ¶
type MsgListKeys ¶
type MsgListKeys struct {
MsgHdr
}
type MsgQuestion ¶
Click to show internal directories.
Click to hide internal directories.