Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Thrower 来自丢瓶方 Thrower from = 0 // Replier 来自回应方 Replier from = 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bottle ¶
type Bottle struct { ID uuid.UUID Thrower [32]byte //扔瓶者的加密公钥 //Messages []Message // leveldb的k-v模式(顺序读效率不高)不适合relationship Title string //塞入的第一条消息 MessagesNum uint16 //瓶中消息数量 Replier [32]byte //回应者的加密公钥 }
Bottle 漂流瓶
type IPayload ¶
type IPayload interface { GetKey() []byte // contains filtered or unexported methods }
IPayload 接口
Click to show internal directories.
Click to hide internal directories.