2018-05-27 22:40:42 +08:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2018-06-20 11:29:55 +08:00
|
|
|
// A session is a 3-field entry of a token, a hex, and a creation date. Do
|
|
|
|
// not confuse session and token; the token is just an identifying string,
|
|
|
|
// while the session contains more information.
|
2018-05-27 22:40:42 +08:00
|
|
|
type commenterSession struct {
|
2018-06-20 11:29:55 +08:00
|
|
|
CommenterToken string `json:"commenterToken"`
|
2018-05-27 22:40:42 +08:00
|
|
|
CommenterHex string `json:"commenterHex"`
|
|
|
|
CreationDate time.Time `json:"creationDate"`
|
|
|
|
}
|