mirror of
https://github.com/mumble-voip/grumble.git
synced 2025-12-20 06:10:00 -08:00
grumble, pkg/*: go fmt.
This commit is contained in:
parent
d77f8843a7
commit
dd76f22eb7
14 changed files with 62 additions and 61 deletions
1
acl.go
1
acl.go
|
|
@ -55,6 +55,7 @@ func (perm Permission) ClearCacheBit() {
|
||||||
|
|
||||||
// A channel-to-permission mapping used in the ACLCache
|
// A channel-to-permission mapping used in the ACLCache
|
||||||
type ChannelCache map[int]Permission
|
type ChannelCache map[int]Permission
|
||||||
|
|
||||||
// The ACLCache maps a user id to a ChannelCache map.
|
// The ACLCache maps a user id to a ChannelCache map.
|
||||||
// The ChannelCache map maps a channel to its permissions.
|
// The ChannelCache map maps a channel to its permissions.
|
||||||
type ACLCache map[uint32]ChannelCache
|
type ACLCache map[uint32]ChannelCache
|
||||||
|
|
|
||||||
|
|
@ -7,13 +7,13 @@ package main
|
||||||
import (
|
import (
|
||||||
"code.google.com/p/goprotobuf/proto"
|
"code.google.com/p/goprotobuf/proto"
|
||||||
"errors"
|
"errors"
|
||||||
|
"io"
|
||||||
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
"mumbleapp.com/grumble/pkg/ban"
|
"mumbleapp.com/grumble/pkg/ban"
|
||||||
"mumbleapp.com/grumble/pkg/freezer"
|
"mumbleapp.com/grumble/pkg/freezer"
|
||||||
"mumbleapp.com/grumble/pkg/mumbleproto"
|
"mumbleapp.com/grumble/pkg/mumbleproto"
|
||||||
"mumbleapp.com/grumble/pkg/serverconf"
|
"mumbleapp.com/grumble/pkg/serverconf"
|
||||||
"io"
|
|
||||||
"io/ioutil"
|
|
||||||
"log"
|
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ package main
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"log"
|
||||||
"mumbleapp.com/grumble/pkg/blobstore"
|
"mumbleapp.com/grumble/pkg/blobstore"
|
||||||
"mumbleapp.com/grumble/pkg/logtarget"
|
"mumbleapp.com/grumble/pkg/logtarget"
|
||||||
"log"
|
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
|
|
||||||
|
|
@ -10,11 +10,11 @@ package main
|
||||||
// SQLite datbase into a format that Grumble can understand.
|
// SQLite datbase into a format that Grumble can understand.
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"database/sql"
|
||||||
"errors"
|
"errors"
|
||||||
|
"log"
|
||||||
"mumbleapp.com/grumble/pkg/ban"
|
"mumbleapp.com/grumble/pkg/ban"
|
||||||
"mumbleapp.com/grumble/pkg/blobstore"
|
"mumbleapp.com/grumble/pkg/blobstore"
|
||||||
"database/sql"
|
|
||||||
"log"
|
|
||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@
|
||||||
package freezer
|
package freezer
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
|
||||||
"code.google.com/p/goprotobuf/proto"
|
"code.google.com/p/goprotobuf/proto"
|
||||||
|
"encoding/binary"
|
||||||
"hash"
|
"hash"
|
||||||
"hash/crc32"
|
"hash/crc32"
|
||||||
"io"
|
"io"
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
package packetdatastream
|
package packetdatastream
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
|
||||||
"math"
|
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
|
"math"
|
||||||
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSelfUint8(t *testing.T) {
|
func TestSelfUint8(t *testing.T) {
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,8 @@ import (
|
||||||
"encoding/hex"
|
"encoding/hex"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"hash"
|
||||||
|
"log"
|
||||||
"mumbleapp.com/grumble/pkg/ban"
|
"mumbleapp.com/grumble/pkg/ban"
|
||||||
"mumbleapp.com/grumble/pkg/blobstore"
|
"mumbleapp.com/grumble/pkg/blobstore"
|
||||||
"mumbleapp.com/grumble/pkg/cryptstate"
|
"mumbleapp.com/grumble/pkg/cryptstate"
|
||||||
|
|
@ -24,8 +26,6 @@ import (
|
||||||
"mumbleapp.com/grumble/pkg/mumbleproto"
|
"mumbleapp.com/grumble/pkg/mumbleproto"
|
||||||
"mumbleapp.com/grumble/pkg/serverconf"
|
"mumbleapp.com/grumble/pkg/serverconf"
|
||||||
"mumbleapp.com/grumble/pkg/sessionpool"
|
"mumbleapp.com/grumble/pkg/sessionpool"
|
||||||
"hash"
|
|
||||||
"log"
|
|
||||||
"net"
|
"net"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue