github.com/newrelic/newrelic-client-go@v1.1.0/pkg/installevents/installevents.go (about) 1 package installevents 2 3 import ( 4 "github.com/newrelic/newrelic-client-go/internal/http" 5 "github.com/newrelic/newrelic-client-go/pkg/config" 6 "github.com/newrelic/newrelic-client-go/pkg/logging" 7 ) 8 9 // Installevents is used to communicate with the Install Events Service. 10 type Installevents struct { 11 client http.Client 12 logger logging.Logger 13 } 14 15 // New returns a new client for sending Install Events. 16 func New(config config.Config) Installevents { 17 return Installevents{ 18 client: http.NewClient(config), 19 logger: config.GetLogger(), 20 } 21 }