Skip to content
Snippets Groups Projects
Select Git revision
  • ea9f3b5d767983e241dafb873b7b6cc06d62a2c7
  • release default protected
  • master protected
  • hotfix/GrpcParameters
  • XX-4441
  • tls-websockets
  • hotfix/allow-web-creds
  • hotfix/nilCert
  • XX-3566_const_time_token_compare
  • AceVentura/AccountBackup
  • dev
  • waitingRoundsRewrite
  • fullRateLimit
  • XX-3564/TlsCipherSuite
  • XX-3563/DisableTlsCheck
  • notls
  • url-repo-rename
  • perftuning
  • Anne/CI2
  • AddedGossipLogging
  • hotfix/connectionReduction
  • v0.0.6
  • v0.0.4
  • v0.0.5
  • v0.0.3
  • v0.0.2
  • v0.0.1
27 results

connection_test.go

Blame
  • status.go 820 B
    ///////////////////////////////////////////////////////////////////////////////
    // Copyright © 2020 xx network SEZC                                          //
    //                                                                           //
    // Use of this source code is governed by a license that can be found in the //
    // LICENSE file                                                              //
    ///////////////////////////////////////////////////////////////////////////////
    
    package api
    
    import (
    	"fmt"
    )
    
    type Status int
    
    const (
    	Stopped  Status = 0
    	Running  Status = 2000
    	Stopping Status = 3000
    )
    
    func (s Status) String() string {
    	switch s {
    	case Stopped:
    		return "Stopped"
    	case Running:
    		return "Running"
    	case Stopping:
    		return "Stopping"
    	default:
    		return fmt.Sprintf("Unknown state %d", s)
    	}
    }