github.com/zoomfoo/nomad@v0.8.5-0.20180907175415-f28fd3a1a056/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) {}