Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptedTermsURL ¶
type EphemeralPublicKey ¶
type GlobalThreepidAssociation ¶
type GlobalThreepidAssociation struct { ID int64 `bun:"id,pk,autoincrement"` CreatedAt time.Time `bun:",nullzero,notnull"` UpdatedAt time.Time `bun:",nullzero,notnull"` Medium string `bun:",nullzero,notnull"` Address string `bun:",nullzero,notnull"` MXID string `bun:",nullzero,notnull"` LookupHash string `bun:",nullzero,notnull"` NotBefore time.Time `bun:",nullzero,notnull"` NotAfter time.Time `bun:",nullzero,notnull"` OriginServer string `bun:",nullzero,notnull"` OriginID int64 `bun:",nullzero,notnull"` SGAssoc string `bun:",nullzero,notnull"` }
type HashingMetadata ¶
type InviteToken ¶
type InviteToken struct { ID int64 `bun:"id,pk,autoincrement"` CreatedAt time.Time `bun:",nullzero,notnull"` UpdatedAt time.Time `bun:",nullzero,notnull"` Medium string `bun:",nullzero,notnull"` Address string `bun:",nullzero,notnull"` RoomID string `bun:",nullzero,notnull"` Sender string `bun:",nullzero,notnull"` Token string `bun:",nullzero,notnull"` Received time.Time `bun:",nullzero"` Sent time.Time `bun:",nullzero"` }
type LocalThreepidAssociation ¶
type LocalThreepidAssociation struct { ID int64 `bun:"id,pk,autoincrement"` CreatedAt time.Time `bun:",nullzero,notnull"` UpdatedAt time.Time `bun:",nullzero,notnull"` Medium string `bun:",nullzero,notnull"` Address string `bun:",nullzero,notnull"` MXID string `bun:",nullzero,notnull"` LookupHash string `bun:",nullzero,notnull"` NotBefore time.Time `bun:",nullzero,notnull"` NotAfter time.Time `bun:",nullzero,notnull"` }
type Peer ¶
type Peer struct { ID int64 `bun:"id,pk,autoincrement"` CreatedAt time.Time `bun:",nullzero,notnull"` UpdatedAt time.Time `bun:",nullzero,notnull"` Name string `bun:",nullzero,notnull"` Port int `bun:",nullzero"` LastSentVersion int `bun:",nullzero"` LastPokeSucceededAt int `bun:",nullzero"` Active bool `bun:",notnull"` }
type PeerKey ¶
type PeerKey struct { ID int64 `bun:"id,pk,autoincrement"` CreatedAt time.Time `bun:",nullzero,notnull"` UpdatedAt time.Time `bun:",nullzero,notnull"` PeerID int64 `bun:",nullzero,notnull"` Peer *Peer `bun:"rel:belongs-to,join:peer_id=id"` Algo string `bun:",nullzero,notnull"` PublicKey string `bun:",nullzero,notnull"` }
type Terms ¶
type Terms struct { MasterVersion string `json:"-"` Policies map[string]TermsPolicies `json:"policies"` }
func (*Terms) IsFullyAgreed ¶
type TermsPolicies ¶
type TermsPolicies map[string]interface{}
func (TermsPolicies) HasURL ¶
func (tp TermsPolicies) HasURL(url string) bool
type ThreePIDTokenAuth ¶
type ThreePIDTokenAuth struct { ID int64 `bun:"id,pk,autoincrement"` CreatedAt time.Time `bun:",nullzero,notnull"` UpdatedAt time.Time `bun:",nullzero,notnull"` ValidationSession int64 `bun:",nullzero,notnull"` Token string `bun:",nullzero,notnull"` SendAttemptNumber int64 `bun:",nullzero,notnull"` }
Click to show internal directories.
Click to hide internal directories.