github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/nomad/endpoints_oss.go (about)

     1  // +build !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) {}