github.com/hspak/nomad@v0.7.2-0.20180309000617-bc4ae22a39a5/nomad/endpoints_oss.go (about)

     1  // +build !pro,!ent
     2  
     3  package nomad
     4  
     5  import "net/rpc"
     6  
     7  // EnterpriseEndpoints holds the set of enterprise only endpoints to register
     8  type EnterpriseEndpoints struct{}
     9  
    10  // NewEnterpriseEndpoints returns a stub of the enterprise endpoints since there
    11  // are none in oss
    12  func NewEnterpriseEndpoints(s *Server) *EnterpriseEndpoints {
    13  	return &EnterpriseEndpoints{}
    14  }
    15  
    16  // Register is a no-op in oss.
    17  func (e *EnterpriseEndpoints) Register(s *rpc.Server) {}