github.com/aergoio/aergo@v1.3.1/types/host.go (about)

     1  /*
     2   * @file
     3   * @copyright defined in aergo/LICENSE.txt
     4   */
     5  
     6  package types
     7  
     8  import (
     9  	"time"
    10  )
    11  
    12  // HostAccessor is interface to provide the informations about server
    13  type HostAccessor interface {
    14  	// Version return version of this server
    15  	Version() string
    16  
    17  	// StartTime is the time when server was booted
    18  	StartTime() time.Time
    19  }
    20