Versions in this module Expand all Collapse all v0 v0.1.1 Jul 21, 2018 v0.1.0 Jan 6, 2018 Changes in this version + const CtxUser + const SessionUser + const SessionUserNameKey + func Asset(name string) ([]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func MustAsset(name string) []byte + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + func ValidateEmail(email string) error + func ValidateLocalAddr(addr string) error + func ValidatePassword(password string) error + func ValidateServerAddr(addr string) error + func ValidateTag(tag string) error + func ValidateUsername(username string) error + func ValidteProtocol(proto string) error + type Builder struct + Cancel func() + func NewBuilder(datadir string, agentConfig string) (*Builder, error) + func (b *Builder) StartCrossPlatformBuild() + func (b *Builder) TryGetPkg(username, ahash, os, arch, arm, supervisorType string) ([]byte, error) + type Config struct + Addr string + AgentConfig string + AllowOrigins []string + DataDir string + HostIP string + MaxAdminAgents int + MaxAdminTunnels int + MaxDownloadsPerHour int + MaxTunnelUpdatePerHour int + MaxUserAgents int + MaxUserTunnels int + MuxDomain string + type Server struct + func New(conf *Config, db *storage.DB, pub pubsub.Publisher) (*Server, error) + func (s *Server) Close() error + func (s *Server) Endpoint() string + func (s *Server) Serve() error