mirror of
https://github.com/raz-varren/sacrificial-socket.git
synced 2025-10-07 00:52:48 +08:00
moar documentation
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
/*
|
||||||
|
Package ssgrpc provides a ss.MultihomeBackend interface that uses grpc with profobufs for synchronizing broadcasts and roomcasts between multiple Sacrificial Socket instances.
|
||||||
|
*/
|
||||||
package ssgrpc
|
package ssgrpc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@@ -1,13 +1,12 @@
|
|||||||
|
/*
|
||||||
|
Package token is used by package ssgrpc for generating and validating HMAC-SHA256 tokens sent as "per RPC credentials".
|
||||||
|
*/
|
||||||
package token
|
package token
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
//"fmt"
|
|
||||||
"github.com/dvsekhvalnov/jose2go"
|
"github.com/dvsekhvalnov/jose2go"
|
||||||
//"net/http"
|
|
||||||
//"strings"
|
|
||||||
//"sync"
|
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
/*
|
||||||
|
Package ssmongo provides a ss.MultihomeBackend interface that uses MongoDB for synchronizing broadcasts and roomcasts between multiple Sacrificial Socket instances.
|
||||||
|
*/
|
||||||
package ssmongo
|
package ssmongo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
/*
|
||||||
|
A complex web app example that implements ssgrpc for synchronizing multiple Sacrificial Socket instances
|
||||||
|
*/
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
/*
|
||||||
|
A simple web chat app example that does not implement any multihome backends.
|
||||||
|
*/
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
/*
|
||||||
|
Package log is used all throughout Sacrificial Socket for logging info and error messages
|
||||||
|
*/
|
||||||
package log
|
package log
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
/*
|
||||||
|
Package tools is really just used during socket creation to generate random numbers for socket IDs.
|
||||||
|
*/
|
||||||
package tools
|
package tools
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
Reference in New Issue
Block a user