open-nomad/nomad/endpoints_oss.go
Mahmood Ali 4d90afb425 gofmt all the files
mostly to handle build directives in 1.17.
2021-10-01 10:14:28 -04:00

19 lines
462 B
Go

//go:build !ent
// +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) {}