github.com/newrelic/newrelic-client-go@v1.1.0/pkg/users/users.go (about) 1 // Package users provides a programmatic API for interacting with New Relic users. 2 package users 3 4 import ( 5 "github.com/newrelic/newrelic-client-go/internal/http" 6 "github.com/newrelic/newrelic-client-go/pkg/config" 7 "github.com/newrelic/newrelic-client-go/pkg/logging" 8 ) 9 10 // Users is used to interact with New Relic users. 11 type Users struct { 12 client http.Client 13 logger logging.Logger 14 } 15 16 // New returns a new client for interacting with New Relic users. 17 func New(config config.Config) Users { 18 return Users{ 19 client: http.NewClient(config), 20 logger: config.GetLogger(), 21 } 22 }