mirror of
https://github.com/mautrix/discord.git
synced 2025-03-14 14:15:37 +00:00
Run gofmt
This commit is contained in:
parent
1ced229be9
commit
2055d32da8
2 changed files with 20 additions and 20 deletions
|
@ -10,9 +10,9 @@ type clientPacket interface {
|
|||
send(client *Client) error
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
// Heartbeat
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
type clientHeartbeat struct {
|
||||
OP string `json:"op"`
|
||||
}
|
||||
|
@ -29,9 +29,9 @@ func (h *clientHeartbeat) send(client *Client) error {
|
|||
return client.write(h)
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
// Init
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
type clientInit struct {
|
||||
OP string `json:"op"`
|
||||
EncodedPublicKey string `json:"encoded_public_key"`
|
||||
|
@ -52,9 +52,9 @@ func (i *clientInit) send(client *Client) error {
|
|||
return client.write(i)
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
// NonceProof
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
type clientNonceProof struct {
|
||||
OP string `json:"op"`
|
||||
Proof string `json:"proof"`
|
||||
|
|
|
@ -83,9 +83,9 @@ func (c *Client) processMessages() {
|
|||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
// Hello
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
type serverHello struct {
|
||||
Timeout int `json:"timeout_ms"`
|
||||
HeartbeatInterval int `json:"heartbeat_interval"`
|
||||
|
@ -129,9 +129,9 @@ func (h *serverHello) process(client *Client) error {
|
|||
return i.send(client)
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
// NonceProof
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
type serverNonceProof struct {
|
||||
EncryptedNonce string `json:"encrypted_nonce"`
|
||||
}
|
||||
|
@ -152,9 +152,9 @@ func (n *serverNonceProof) process(client *Client) error {
|
|||
return c.send(client)
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
// HeartbeatAck
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
type serverHeartbeatAck struct{}
|
||||
|
||||
func (h *serverHeartbeatAck) process(client *Client) error {
|
||||
|
@ -163,9 +163,9 @@ func (h *serverHeartbeatAck) process(client *Client) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
// PendingRemoteInit
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
type serverPendingRemoteInit struct {
|
||||
Fingerprint string `json:"fingerprint"`
|
||||
}
|
||||
|
@ -179,9 +179,9 @@ func (p *serverPendingRemoteInit) process(client *Client) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
// PendingFinish
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
type serverPendingFinish struct {
|
||||
EncryptedUserPayload string `json:"encrypted_user_payload"`
|
||||
}
|
||||
|
@ -195,9 +195,9 @@ func (p *serverPendingFinish) process(client *Client) error {
|
|||
return client.user.update(string(plaintext))
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
// Finish
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
type serverFinish struct {
|
||||
EncryptedToken string `json:"encrypted_token"`
|
||||
}
|
||||
|
@ -215,9 +215,9 @@ func (f *serverFinish) process(client *Client) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
// Cancel
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// /////////////////////////////////////////////////////////////////////////////
|
||||
type serverCancel struct{}
|
||||
|
||||
func (c *serverCancel) process(client *Client) error {
|
||||
|
|
Loading…
Add table
Reference in a new issue