Documentation ¶
Index ¶
- type ClientFSS
- type FSS
- type Info
- func (i *Info) IdForCreationTime(t time.Time) ([]bool, error)
- func (i *Info) IdForEmail(email string) ([]bool, bool)
- func (i *Info) IdForPubKeyAlgo(pka packet.PublicKeyAlgorithm) []bool
- func (i *Info) IdForYearCreationTime(t time.Time) ([]bool, error)
- func (i *Info) ToAndClientFSS(in string) *ClientFSS
- func (i *Info) ToAvgClientFSS(in string) *ClientFSS
- func (i *Info) ToCreationTimeClientFSS(in string) *ClientFSS
- func (i *Info) ToEmailClientFSS(in string) *ClientFSS
- func (i *Info) ToPKAClientFSS(in string) *ClientFSS
- type Target
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FSS ¶
type FSS struct { *Info FssKey fss.FssKeyEq2P }
FSS is what is sent to the server, one by server
func (*FSS) IdForPubKeyAlgo ¶
func (q *FSS) IdForPubKeyAlgo(pka packet.PublicKeyAlgorithm) []bool
type Info ¶
type Info struct { // Target is on what the query is to be executed. An email (id), or the // creation time. Target Target // select the substring on the id (email) FromStart, FromEnd int // start and end of the target And bool Targets []Target // to perform AVG query Avg bool // to perform SUM query // TODO: not implemented yet, but implicitely used in AVG Sum bool }
Info defines the query function
func (*Info) IdForPubKeyAlgo ¶
func (i *Info) IdForPubKeyAlgo(pka packet.PublicKeyAlgorithm) []bool
func (*Info) IdForYearCreationTime ¶
func (*Info) ToAndClientFSS ¶
TODO: hardcoded for the moment, FIX
func (*Info) ToAvgClientFSS ¶
TODO: hardcoded for the moment, FIX
func (*Info) ToCreationTimeClientFSS ¶
func (*Info) ToEmailClientFSS ¶
func (*Info) ToPKAClientFSS ¶
Click to show internal directories.
Click to hide internal directories.