open-nomad/nomad/endpoints_oss.go
2020-02-10 15:56:14 -05:00

18 lines
446 B
Go

// +build !ent
package nomad
import "net/rpc"
// EnterpriseEndpoints holds the set of enterprise only endpoints to register
type EnterpriseEndpoints struct{}
// NewEnterpriseEndpoints returns a stub of the enterprise endpoints since there
// are none in oss
func NewEnterpriseEndpoints(s *Server) *EnterpriseEndpoints {
return &EnterpriseEndpoints{}
}
// Register is a no-op in oss.
func (e *EnterpriseEndpoints) Register(s *rpc.Server) {}