code
stringlengths
10
1.34M
language
stringclasses
1 value
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package main import ( "fmt" "log" "math/rand" "net" "os" "time" _ "circuit/kit/debug/ctrlc" _ "c...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package xy import ( "runtime" "sync" "time" "circuit/sys/anchor" use "circuit/use/anchorfs" "circu...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package xy import ( "circuit/sys/anchor" use "circuit/use/anchorfs" "circuit/use/circuit" "circuit/us...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package anchor import ( "errors" "path" "runtime" "sync" "time" csync "circuit/kit/sync" use "cir...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "reflect" "sync" "circuit/use/n" ) type importGroup struct { AllowPP bool // Allow im...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "bytes" "encoding/gob" "io" "net" "sync" "circuit/use/n" ) func NewBytesConn(addr str...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "fmt" "reflect" "runtime" "sync" "circuit/sys/lang/types" "circuit/use/circuit" "circ...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "circuit/sys/lang/types" "circuit/use/circuit" "circuit/use/n" ) func (r *Runtime) Listen...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "sync" ) type srvTabl struct { sync.Mutex name map[string]interface{} } func (t *srvTabl...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "bytes" "fmt" "runtime" "sync" "circuit/sys/lang/types" "circuit/use/circuit" "circui...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "reflect" "sync" ) // rewriteFunc can selectively rewrite a src value by writing // the ne...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "strings" "circuit/use/circuit" "circuit/use/n" ) func (r *Runtime) callGetPtr(srcID cir...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "log" "sync" "circuit/sys/acid" "circuit/sys/lang/prof" "circuit/sys/lang/types" "circ...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package lang implements the language runtime package lang import ( "circuit/kit/lang" "circuit/use/circuit" "...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "encoding/gob" "fmt" ) func init() { gob.Register(&errorString{}) } var ErrParse = NewEr...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "runtime/debug" ) func (r *Runtime) Export(val ...interface{}) interface{} { expHalt, _ :=...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "encoding/gob" "circuit/sys/lang/types" "circuit/use/circuit" "circuit/use/n" ) func in...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "log" "strings" "circuit/use/n" ) func (r *Runtime) serveDropPtr(q *dropPtrMsg, conn n.C...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "circuit/sys/lang/types" "fmt" "reflect" "runtime/debug" ) // call invokes the method of...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "bytes" "fmt" "log" "os" "runtime/pprof" "time" "circuit/sys/lang/types" "circuit/us...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package prof import ( "bytes" "fmt" ) type Stat struct { Type string Begin int64 End ...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package prof implements internal profiling data structures package prof import ( "circuit/kit/stat" "sync" "t...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package prof import ( "time" ) // StopWatch represents a stop watch type StopWatch interface { Stop() Abort() }...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "encoding/gob" "io" "net" "sync" "circuit/use/n" ) type sandbox struct { lk sync.Mute...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package types import ( "encoding/binary" "hash/fnv" ) func sliceStringID32(sign []string) int32 { h := fnv.New3...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package types import ( "strconv" ) var ( ValueTabl *TypeTabl = makeTypeTabl() // Type table for values FuncTabl...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package types implements the runtime type system package types import ( "fmt" "reflect" "sync" "unicode" "u...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package types import ( "encoding/gob" "reflect" "time" ) // Register some common types. Repeated registration i...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "reflect" ) func unflattenValue(v reflect.Value, t reflect.Type) reflect.Value { // When t...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang /* FORKING A GO ROUTINE ON A REMOTE RUNTIME import . "circuit/use/circuit" type MyFunc struct{...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang /* Ref PermRef exportRewrite importRewrite -----------------------------------------------...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package lang import ( "log" "reflect" "sync" "circuit/use/n" ) type exportGroup struct { sync.Mutex PtrPtr ...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package tele import ( "encoding/gob" "log" "os" "sync" "circuit/kit/tele/blend" "circuit/use/e" "...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package tele import ( "circuit/kit/tele/blend" "circuit/use/n" ) type Conn struct { addr *Addr sub ...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package tele import ( "net" "os" "circuit/kit/tele" "circuit/use/n" ) // System is the high-level t...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package tele import ( "log" "sync" "time" "circuit/kit/tele/blend" "circuit/use/e" "circuit/use/n"...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package tele implements the circuit/use/n networking module using Teleport Transport package tele impo...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package tele import ( "encoding/gob" "fmt" "net" "net/url" "strconv" "strings" "circuit/use/e" "circuit/us...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package worker import ( "io" "circuit/use/n" ) type Console struct { stdin io.WriteCloser stdout io.ReadClos...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package worker implements spawning and killing of circuit workers on local and remote hosts package worker impor...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package worker import ( "bufio" "bytes" "circuit/kit/iomisc" "circuit/load/config" "encoding/json" "fmt" "io...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package config facilitates parsing JSON data with $-style environment variable references package confi...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package shell import ( "io" xyexec "circuit/kit/xy/exec" xyio "circuit/kit/xy/io" "circuit/use/circu...
Go
package symbolizer import ( "bufio" "io" "strings" ) /* _start goroutine profile: total 18 _header 1 @ 0x421819e 0x4217fa7 0x4214fc2 0x41d0017 0x4189aef 0x4188b4b 0x40f2d72 0x40f9f55 0x40fda75 0x404d3a0 _stack # 0x421819e runtime/pprof.writeRuntimeProfile+0x9e /Users/petar/.datahero/build/go/src/pkg/runtime/pp...
Go
package symbolizer import ( "strings" ) type FrameFunc func(*Frame) bool func GoFrame(f *Frame) bool { i := strings.Index(f.Func, "/") if i < 0 { return true } switch f.Func[:i] { case "archive", "bufio", "builtin", "bytes", "compress", "container", "crypto", "database", "debug", "encoding", "errors", "e...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package kit contains various utility packages useful with the circuit package kit
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package sync provides various synchronization primitives package sync import ( "runtime" "sync" ) /...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package sync provides various synchronization primitives package sync import ( "sync" ) // Trigger provides a ...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package waterfill implements an algorithm for greedy job allocation package waterfill import ( "bytes" "fmt" ...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package fs defines an interface for file systems. package fs import ( "errors" "os" ) // FS is a file system ...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package fs import ( "os" "time" ) // FileInfo is a file meta-information structure. type FileInfo struct { // ...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package localfs exposes a local root directory as a read-only file system package diskfs import ( "circuit/kit/...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package zipfs exposes a ZIP archive file as a read-only file system package zipfs import ( "archive/zip" "circ...
Go
// Copyright 2013 Tumblr, Inc. // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package fs import "net/http" func HTTPFileSystem(fs FS) http.FileSystem { return httpFS{fs} } type httpFS struct...
Go
package term import ( "syscall" "unsafe" ) const ( getTermios = syscall.TCGETS setTermios = syscall.TCSETS ) type Termios struct { Iflag uint32 Oflag uint32 Cflag uint32 Lflag uint32 Cc [20]byte Ispeed uint32 Ospeed uint32 } // MakeRaw put the terminal connected to the given file descriptor into ...
Go
package term import ( "syscall" "unsafe" ) const ( getTermios = syscall.TIOCGETA setTermios = syscall.TIOCSETA ECHO = 0x00000008 ONLCR = 0x2 ISTRIP = 0x20 INLCR = 0x40 ISIG = 0x80 IGNCR = 0x80 ICANON = 0x100 ICRNL = 0x100 IXOFF = 0x400 IXON = 0x200 ) type Termios struct { Iflag uint64 Of...
Go
package term import ( "os" "os/signal" "syscall" "unsafe" ) type State struct { termios Termios } type Winsize struct { Height uint16 Width uint16 x uint16 y uint16 } func GetWinsize(fd uintptr) (*Winsize, error) { ws := &Winsize{} _, _, err := syscall.Syscall(syscall.SYS_IOCTL, fd, uintptr(sy...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package shutter import ( "bytes" "fmt" "reflect" "runtime" "runtime/pprof" "strconv" "circuit/kit...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package shutter import ( "bufio" "fmt" "log" "os" "os/exec" "strings" "sync" "circuit/kit/iomisc...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package shutter provides a cross-worker resource hierarchy that encloses local resources shared by a lo...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package rh provides a the interface for the Resource Hierarchy file system package rh import ( "encod...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package rh import ( "bytes" "encoding/gob" "fmt" "time" ) // Dir type Dir struct { Q Q Mode ...
Go
// Copyright 2014 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2014 Chris Monson <chris@gocircuit.org> package tokenlock import ( "errors" "runtime" "sync" "circuit/kit/rh" ) var ( ErrReset = er...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package rh import ( "encoding/binary" "fmt" "hash/fnv" ) // Q is a unique ID, reflecting on a file id...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package focus import ( "net" "circuit/kit/rh" "circuit/kit/rh/ns" ) // cluster is a namespace of typ...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package focus provides a namespace which can mount and arrange cross-hierarchies, intended to be FUSE-m...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package focus import ( "circuit/kit/rh" "circuit/kit/rh/ns" "circuit/kit/rh/xy" ) // loci is a namesp...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package ns import ( "circuit/kit/rh" "fmt" "unsafe" ) // Server type Server struct { slash rh.FID } ...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package ns import ( "fmt" "reflect" "runtime" "strconv" "sync" "time" "unsafe" "circuit/kit/rh" ...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package ns import ( "fmt" "log" "reflect" "sync" "time" "unicode" "unsafe" "circuit/kit/rh" ) /...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package ns import ( "io" "os" "reflect" "strconv" "sync" "unicode" "circuit/kit/lang" ) func uid...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package ns import ( "fmt" "log" "sync" "circuit/kit/rh" ) // UnregulatedFID is the FID interface mi...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package ns import ( "io" "sync" "time" "circuit/kit/iomisc" "circuit/kit/lang" "circuit/kit/rh" ) ...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> /* Package NS provides a file system interface to native Go object hierarchies. USR <= NS <= RH USR <...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package ns import ( "fmt" "io" "math/rand" "reflect" "sync" "unsafe" "circuit/kit/rh" ) // callF...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package ns import ( "fmt" "reflect" "sync" "time" "unsafe" "circuit/kit/rh" ) // InterfaceDir typ...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package ns import ( "fmt" "io" "io/ioutil" "reflect" ) // RequestReader type RequestReader struct { ...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package ns import ( "bytes" "circuit/kit/iomisc" "circuit/kit/rh" ) func NewStringFID(screen func() ...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // File modified from original in code.google.com/p/goplan9 package rh import ( "bytes" "encoding/gob"...
Go
// Copyright 2014 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2014 Chris Monson <chris@gocircuit.org> package ripple import ( "fmt" "math/rand" "sync" "time" "circuit/kit/rh" ) // procWaitFID type pro...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // 2014 Chris Monson <chris@gocircuit.org> package ripple import ( "fmt" "log" "math/rand" "path" ...
Go
// Copyright 2014 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2014 Chris Monson <chris@gocircuit.org> package ripple import ( "bufio" "bytes" "encoding/json" "fmt" "io" "log" "math/rand" "os" "os/ex...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package ripple import ( "io" "os" "strconv" "sync" "circuit/kit/rh" ) func MustDupFID(fid rh.FID) ...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package ripple import ( "bytes" "circuit/kit/iomisc" "circuit/kit/rh" "circuit/kit/rh/ns" ) func Ne...
Go
// Copyright 2014 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2014 Chris Monson <chris@gocircuit.org> /* The Config FID pattern is like a linux proc file. It can be written to (and parsed into something) and ...
Go
// Copyright 2014 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2014 Chris Monson <chris@gocircuit.org> package ripple import ( "bytes" "fmt" "io" "log" "math/rand" "reflect" "sync" "time" "circuit/k...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package ripple import ( "bytes" "fmt" "math/rand" "path" "circuit/kit/rh" "circuit/kit/rh/ns" ) f...
Go
// Copyright 2014 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2014 Chris Monson <chris@gocircuit.org> /* Implementation of a select statement using file system primitives. */ package ripple import ( "bytes...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2014 Chris Monson <chris@gocircuit.org> package ripple import ( "bytes" "fmt" "io" "io/ioutil" "math/rand" "path" "strconv" "strings" "s...
Go
// Copyright 2012 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2012 Petar Maymounkov <p@gocircuit.org> package ripple import ( "fmt" "log" "math/rand" "sync" "time" "circuit/kit/rh" "circuit/kit/rh/to...
Go
// Copyright 2014 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2014 Chris Monson <chris@gocircuit.org> package ripple import ( "fmt" "log" "math/rand" "path" "strings" "sync" "time" "circuit/kit/rh" ...
Go
// Copyright 2014 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2014 Chris Monson <chris@gocircuit.org> package ripple import ( "bytes" "fmt" "io" "log" "sync" "time" "circuit/kit/rh" ) type GenericRe...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package ripple import ( "bufio" "io" "circuit/kit/rh" "circuit/kit/rh/ns" ) const maxCommandLen = 1...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package ripple import ( "bytes" "circuit/kit/iomisc" "fmt" "math/rand" "path" "strings" "time" "...
Go
// Copyright 2014 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2014 Chris Monson <chris@gocircuit.org> package ripple import ( "bytes" "fmt" "log" "math/rand" "reflect" "sync" "time" "circuit/kit/rh"...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package ripple import ( "sync" ) // ▒▒ type RefCounter struct { zero func() sync.Mutex numref int } ...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package snowflake import ( "bytes" "fmt" "log" "os" "path" "strconv" "strings" "sync" "time" "...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package snowflake import ( "bufio" "bytes" "errors" "net" "os" "os/exec" "strings" ) func Snowfla...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> package snowflake import ( "bytes" "fmt" "log" "os" "path" "strconv" "strings" "sync" "time" "...
Go
// Copyright 2013 The Go Circuit Project // Use of this source code is governed by the license for // The Go Circuit Project, found in the LICENSE file. // // Authors: // 2013 Petar Maymounkov <p@gocircuit.org> // Package rh provides a the interface for the Resource Hierarchy file system package rh // Originally in...
Go